Download OpenAPI specification:
Customer API (API key based auth). Use x-api-key on every request. Optionally send x-org-id to run requests under organization context.
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
{- "success": true,
- "data": {
- "id": "c397b946-287e-45a8-85a4-f371e6dd3837",
- "username": "mark",
- "email": "mark@yazsana.com",
- "createdAt": "2026-03-10T10:22:31.338Z"
}
}Use this endpoint to discover allowed x-org-id values.
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
{- "success": true,
- "data": [
- {
- "id": "7f2d51ea-b166-4a45-9f06-4524be51e4c1",
- "name": "Main Organization",
- "state": true,
- "memberCredit": "120.000000",
- "permissions": [
- "organization.sms.read",
- "organization.sms.send",
- "organization.users.read"
]
}
]
}Returns selectable services for SMS sending. unitPrice is the final effective price after all pricing rules.
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
| x-org-id | string <uuid> Example: {{ORG_ID}} Optional organization context. Must belong to API key owner. |
[- {
- "id": "bb59f6f7-dc35-47c9-8874-673ad4f70518",
- "name": "BobSMS",
- "type": "sms",
- "currency": "USD",
- "unitPrice": "1.000000"
}
]Without x-org-id it charges user credit. With x-org-id it charges organization member credit.
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
| x-org-id | string <uuid> Example: {{ORG_ID}} Optional organization context. Must belong to API key owner. |
| to required | string Phone number in 905xx... format |
| message required | string <= 160 characters |
| serviceId required | string <uuid> |
{- "to": "905550000000",
- "message": "Your confirmation code is: 123456",
- "serviceId": "bb59f6f7-dc35-47c9-8874-673ad4f70518"
}{- "success": true,
- "data": "f688348d-2d9b-4568-a17e-b96e6b5c1475"
}| page | integer >= 0 Default: 0 |
| limit | integer >= 1 Default: 10 Example: limit=20 |
| startDate | string <date-time> Example: startDate=2026-03-01T00:00:00Z |
| endDate | string <date-time> Example: endDate=2026-03-10T23:59:59Z |
| completed | boolean |
| text | string Example: text=confirmation |
| source | string Enum: "api" "panel" Example: source=api |
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
| x-org-id | string <uuid> Example: {{ORG_ID}} Optional organization context. Must belong to API key owner. |
{- "success": true,
- "data": {
- "items": [
- {
- "id": "cebbe29a-e9e3-42f0-ad1b-12c99bca067d",
- "completed": false,
- "sampleMessageText": "Your confirmation code is: 123456",
- "createdAt": "2026-03-10T20:03:34.286Z",
- "stats": {
- "validSize": 3,
- "invalidSize": 0,
- "nOfPending": 3,
- "nOfWaiting": 0,
- "nOfCompleted": 0,
- "nOfFailed": 0,
- "nOfRefunded": 0,
- "totalCost": "3",
- "totalRefunded": "0"
}
}
], - "total": 1,
- "page": 0,
- "limit": 20,
- "totalPages": 1
}
}Sends same message to multiple phone numbers.
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
| x-org-id | string <uuid> Example: {{ORG_ID}} Optional organization context. Must belong to API key owner. |
| to required | Array of strings |
| message required | string <= 160 characters |
| serviceId required | string <uuid> |
{- "to": [
- "905550000000",
- "905550000001",
- "905550000002"
], - "message": "Campaign is live. Visit now.",
- "serviceId": "bb59f6f7-dc35-47c9-8874-673ad4f70518"
}{- "success": true,
- "data": "410bc79f-f751-46b9-9b93-ceb3fdcea049"
}| id required | string <uuid> Example: cebbe29a-e9e3-42f0-ad1b-12c99bca067d |
| page | integer >= 0 Default: 0 |
| limit | integer >= 1 Default: 10 Example: limit=100 |
| text | string Example: text=confirmation |
| status | string Enum: "pending" "sent" "not_sent" "waiting" "no_signal" Example: status=pending |
| x-api-key required | string Example: {{API_KEY}} API key of the customer user |
| x-org-id | string <uuid> Example: {{ORG_ID}} Optional organization context. Must belong to API key owner. |
{- "success": true,
- "data": {
- "items": [
- {
- "id": "98664fa1-1077-489d-bc33-165d7597aa81",
- "to": "905550000000",
- "message": "Your confirmation code is: 123456",
- "status": "pending",
- "network": "unknown",
- "refunded": false,
- "createdAt": "2026-03-10T20:03:34.294Z"
}
], - "total": 1,
- "page": 0,
- "limit": 100,
- "totalPages": 1
}
}