Download OpenAPI specification:
| x-api-key | string Example: {{API_KEY}} |
| to | string Phone number |
| message | string Message text |
{- "to": "905550000000",
- "message": "Your confirmation code is: 123456"
}{- "success": true,
- "data": "f688348d-2d9b-4568-a17e-b96e6b5c1475"
}| page required | integer >= 1 Example: page=1 Response page |
| limit required | integer >= 0 Example: limit=100 Number of items per page |
| startDate | string <date-time> Example: startDate=2025-12-03T00:00:00Z |
| endDate | string <date-time> Example: endDate=2025-12-10T00:00:00Z |
| completed | boolean Example: completed=true |
| text | string Example: text=code |
| x-api-key | string Example: {{API_KEY}} |
{- "success": true,
- "data": {
- "items": [
- {
- "id": "cebbe29a-e9e3-42f0-ad1b-12c99bca067d",
- "completed": false,
- "sampleMessageText": "Your confirmation code is: 123456",
- "createdAt": "2025-12-29T19:03:34.286Z",
- "stats": {
- "validSize": 3,
- "invalidSize": 0,
- "nOfPending": 3,
- "nOfWaiting": 0,
- "nOfCompleted": 0,
- "nOfFailed": 0,
- "nOfRefunded": 0,
- "totalCost": 3,
- "totalRefunded": 0
}
}, - {
- "id": "410bc79f-f751-46b9-9b93-ceb3fdcea049",
- "completed": false,
- "sampleMessageText": "Your confirmation code is: 123456",
- "createdAt": "2025-12-29T19:03:19.674Z",
- "stats": {
- "validSize": 3,
- "invalidSize": 0,
- "nOfPending": 3,
- "nOfWaiting": 0,
- "nOfCompleted": 0,
- "nOfFailed": 0,
- "nOfRefunded": 0,
- "totalCost": 3,
- "totalRefunded": 0
}
}, - {
- "id": "f688348d-2d9b-4568-a17e-b96e6b5c1475",
- "completed": false,
- "sampleMessageText": "Your confirmation code is: 123456",
- "createdAt": "2025-12-29T19:02:59.424Z",
- "stats": {
- "validSize": 1,
- "invalidSize": 0,
- "nOfPending": 1,
- "nOfWaiting": 0,
- "nOfCompleted": 0,
- "nOfFailed": 0,
- "nOfRefunded": 0,
- "totalCost": 1,
- "totalRefunded": 0
}
}
], - "total": 3,
- "page": 1,
- "limit": 100,
- "totalPages": 1
}
}| x-api-key | string Example: {{API_KEY}} |
| to | Array of strings List of phone numbers |
| message | string Message text |
{- "to": [
- "905550000000",
- "905550000001",
- "905550000002"
], - "message": "Your confirmation code is: 123456"
}{- "success": true,
- "data": "410bc79f-f751-46b9-9b93-ceb3fdcea049"
}| x-api-key | string Example: {{API_KEY}} |
| to | string Phone number |
| message | string Message text |
[- {
- "to": "905550000000",
- "message": "Your confirmation code is: 123456"
}, - {
- "to": "905550000001",
- "message": "Your confirmation code is: 234567"
}, - {
- "to": "905550000002",
- "message": "Your confirmation code is: 345678"
}
]{- "success": true,
- "data": "cebbe29a-e9e3-42f0-ad1b-12c99bca067d"
}| id required | string Example: cebbe29a-e9e3-42f0-ad1b-12c99bca067d |
| x-api-key | any Example: {{API_KEY}} |
{- "success": true,
- "data": {
- "id": "cebbe29a-e9e3-42f0-ad1b-12c99bca067d",
- "completed": false,
- "sampleMessageText": "Your confirmation code is: 123456",
- "createdAt": "2025-12-29T19:03:34.286Z",
- "stats": {
- "validSize": 3,
- "invalidSize": 0,
- "nOfPending": 3,
- "nOfWaiting": 0,
- "nOfCompleted": 0,
- "nOfFailed": 0,
- "nOfRefunded": 0,
- "totalCost": 3,
- "totalRefunded": 0
}
}
}| id required | string Example: cebbe29a-e9e3-42f0-ad1b-12c99bca067d |
| page required | integer >= 1 Example: page=1 Response page |
| limit required | integer >= 0 Example: limit=100 Items per page |
| status | string Enum: "sent" "not_sent" "failed" "waiting" "no_signal" "pending" Example: status=pending Message status |
| text | string Example: text=code Message text |
| x-api-key | any Example: {{YAZSANA_API_KEY}} |
{- "success": true,
- "data": {
- "items": [
- {
- "id": "5d12ac35-590b-4247-ad82-e48955275e59",
- "status": "pending",
- "reason": null,
- "network": "unknown",
- "from": "default",
- "to": "905550000002",
- "message": "Your confirmation code is: 345678",
- "cost": 1,
- "refunded": false,
- "createdAt": "2025-12-29T19:03:34.294Z"
}, - {
- "id": "70eb9d83-de2e-48df-ae71-cf45499bbdd6",
- "status": "pending",
- "reason": null,
- "network": "unknown",
- "from": "default",
- "to": "905550000001",
- "message": "Your confirmation code is: 234567",
- "cost": 1,
- "refunded": false,
- "createdAt": "2025-12-29T19:03:34.294Z"
}, - {
- "id": "98664fa1-1077-489d-bc33-165d7597aa81",
- "status": "pending",
- "reason": null,
- "network": "unknown",
- "from": "default",
- "to": "905550000000",
- "message": "Your confirmation code is: 123456",
- "cost": 1,
- "refunded": false,
- "createdAt": "2025-12-29T19:03:34.294Z"
}
], - "total": 3,
- "page": 1,
- "limit": 100,
- "totalPages": 1
}
}