Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
version: v1
title: RESTful API (JSON) Message Status 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: MessageStatus
paths:
/api/MessageStatus/{id}:
get:
tags:
- MessageStatus
summary: Query the message status
description: Query message status based on the unique 'Message Id' (supplied during the create/send)
operationId: MessageStatus_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/MessageStatus'
text/json:
schema:
$ref: '#/components/schemas/MessageStatus'
application/xml:
schema:
$ref: '#/components/schemas/MessageStatus'
text/xml:
schema:
$ref: '#/components/schemas/MessageStatus'
deprecated: false
security:
- oauth2:
- ''
components:
schemas:
MessageStatus:
description: Message Status resource (object)
required:
- MessageID
- StatusCode
- StatusText
type: object
properties:
MessageID:
description: A unique message identifier supplied by the user when submitting the message. It is only possible to read status for messages which have a messageID set (supplied)
type: string
StatusCode:
format: int32
description: The last know status code for the message. This status can change over time (and will be reflected in this message status returned)
type: integer
StatusText:
description: A natural language description of the status
type: string
ReceivedOnUTCDateTime:
format: date-time
description: UTC datetime when the message was accepted from you
type: string
RequiredDeliveryOnUTCDateTime:
format: date-time
description: UTC datetime when the request was scheduled to be deliver
type: string
DispatchedOnUTCDateTime:
format: date-time
description: UTC datetime when the request was dispatched to an apropriate operator
type: string
DeliveredOnUTCDateTime:
format: date-time
description: UTC datetime when the request was actually delivered to the phone/device
type: string
LastKnownStatusOnUTCDateTime:
format: date-time
description: UTC datetime of the last known status (reflected in this status code)
type: string
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