SureSMS Message API
The Message API from SureSMS — 2 operation(s) for message.
The Message API from SureSMS — 2 operation(s) for message.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/suresms:suresms-message-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
version: v1
title: RESTful API (JSON) Message API
description: 'REST API is an easy and standardized way to work with SureSMS SMS gateway.
The API uses RESTful protocol, OAuth2 (password) for authentication and responses are in JSON format.
You can use JavaScript (and other programming languages) to GET (query), POST (send) or DELETE your messages.'
servers:
- url: https://apiv2.suresms.com/json
tags:
- name: Message
paths:
/api/Message/{id}:
get:
tags:
- Message
summary: Query messages by 'Id'
description: Query the messages (in your message store) based on the unique 'Message Id'
operationId: Message_Get
parameters:
- name: id
in: path
description: ''
required: true
schema:
type: string
responses:
'404':
description: Not Found
'200':
description: Message successfully retrieved
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
text/json:
schema:
$ref: '#/components/schemas/Message'
application/xml:
schema:
$ref: '#/components/schemas/Message'
text/xml:
schema:
$ref: '#/components/schemas/Message'
'401':
description: Authorization has been denied for this request.
deprecated: false
security:
- oauth2:
- ''
delete:
tags:
- Message
summary: Delete a message
description: Deletes the message (based on its unique 'id'). If the message has not been sent, the delete message will make sure it never is sent (i.e. all pending actions will be terminated).
operationId: Message_Delete
parameters:
- name: id
in: path
description: ''
required: true
schema:
type: string
responses:
'400':
description: Bad Request
'200':
description: Message deleted successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Object'
text/json:
schema:
$ref: '#/components/schemas/Object'
application/xml:
schema:
$ref: '#/components/schemas/Object'
text/xml:
schema:
$ref: '#/components/schemas/Object'
deprecated: false
security:
- oauth2:
- ''
/api/Message:
post:
tags:
- Message
summary: Send a message
description: Sends a text message to specific number(s) (make sure to add a 'unique' ID to track its status later)
operationId: Message_Post
responses:
'400':
description: Bad Request
'200':
description: Message sent successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Object'
text/json:
schema:
$ref: '#/components/schemas/Object'
application/xml:
schema:
$ref: '#/components/schemas/Object'
text/xml:
schema:
$ref: '#/components/schemas/Object'
deprecated: false
security:
- oauth2:
- ''
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Message'
text/json:
schema:
$ref: '#/components/schemas/Message'
application/xml:
schema:
$ref: '#/components/schemas/Message'
text/xml:
schema:
$ref: '#/components/schemas/Message'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Message'
required: true
components:
schemas:
Object:
type: object
properties: {}
Message:
description: Message resource (object)
required:
- MessageID
- MessageText
- ToPhoneNumbers
type: object
properties:
MessageID:
description: A unique message identifier supplied by the user which is used to track and query messages (maximum is 50 chars)
type: string
MessageText:
description: The contents, text of the message (maximum is 4000 chars)
type: string
ToPhoneNumbers:
description: Phone Number (or numbers) the message is sent to (the recipient). Numbers (if more than one) should be separated with the semicolon (';')
type: string
SenderID:
description: "The name or alias of the sender that will actually be displayed on the receiving device. \n The default 'account sender' will be used if no value is supplied"
type: string
SendAsFlash:
description: The message is delivered as a Flash message. The default value is 'False'
type: boolean
HasCallBackURL:
description: If supplied the URL will be invoked ('called') after the message is sent (or message has reached its destination?). The default is 'empty'
type: string
RequiredDeliveryUTCDateTime:
format: date-time
description: Scheduled to be delivered at the specified UTC time. The default value is 'now' (immediate)
type: string
ScheduleDaily:
description: Scheduled to be delivered daily. The default value is 'false' (no scheduling)
type: boolean
ScheduleDailyExceptWeekend:
description: Scheduled to be delivered on working days only. The default value is 'false' (no scheduling)
type: boolean
ScheduleWeekly:
description: Scheduled to be delivered weekly. The default value is 'false' (no scheduling)
type: boolean
ScheduleMonthly:
description: Scheduled to be delivered monthly. The default value is 'false' (no scheduling)
type: boolean
ScheduleYearly:
description: Scheduled to be delivered every year. The default value is 'false' (no scheduling)
type: boolean
securitySchemes:
oauth2:
type: oauth2
flows:
password:
scopes:
read: Read access to protected resources
write: Write access to protected resources
tokenUrl: json/token
description: OAuth2 Password Grant