Send transactional SMS messages to users using the Antryk SMS Service. This endpoint allows you to deliver alerts, notifications, reminders, and other time-sensitive messages directly to a user’s mobile device. It is optimized for high deliverability and low latency, making it ideal for real-time communication use cases. Authentication is handled securely via headers, ensuring your API credentials are never exposed in the request body.Documentation Index
Fetch the complete documentation index at: https://docs.antryk.com/llms.txt
Use this file to discover all available pages before exploring further.
For Node.js applications, it is recommended to use the official
@antryk/sdk. The SDK simplifies
SMS sending by handling authentication, validation, retries, and error
handling internally.Authentication is handled via headers (
x-access-key, x-secret-key). The
request body should only contain SMS-related fields such as recipient number,
message body, and service ID.New SMS Sending Approach (Recommended)
This is the recommended and modern approach for sending SMS messages:- Authentication is passed via headers instead of request body.
- Request body contains only SMS-related parameters.
- mproved security and cleaner API design.
- Easier backend integration and maintenance.
⚠️ The older approach (passing
accessKey and secretKey in the request
body) may still work for backward compatibility, but it is strongly
recommended to migrate to header-based authentication.Request Parameters
Your Antryk access key used for API authentication.
Your Antryk secret key used to securely authorize requests.
Recipient phone number in E.164 format (e.g.
+919876543210). Only one number
is supported per request.The SMS message content. Maximum length is 1600 characters.
UUID v4 identifier of your configured SMS service.
Examples
Example: YOUR_ACCESS_KEY
Example: YOUR_SECRET_KEY
Example: +919876543210
Example: Your verification code is 482193
Example: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
Additional Notes This endpoint is suitable for transactional messaging
such as alerts, reminders, and confirmations. Avoid sending promotional or spam messages to maintain high deliverability rates. Always protect API credentials and use server-side integrations or the SDK for better security and reliability.Response
Returns a confirmation that the SMS request has been accepted for delivery.Note: When using the SDK, result.data is null for standard SMS send operations.
Error Scenarios
- 401 invalid credentials – Invalid
x-access-keyorx-secret-key - 400 invalid_recipient – Phone number is missing or incorrectly formatted
- 404 service_not_found –
serviceIdmissing, revoked, or disabled - 429 rate_limited – service exceeds per-minute quota or Too many requests in a short peroid
- 500 provider_unavailable – upstream SMS provider outage; retry with backoff

