One API

Query status of a message

get
  • Response will contain status information for any channel relevant to the message.

  • The timestamp field indicates the time of the last status change.

  • If the message is in an unknown state (message not found), the format is different (since there is no channel) and the timestamp should be set to the current time as it is presently unknown at the time of the request.

Authorizations
AuthorizationstringRequired
Path parameters
omniMessageIdstringRequired

Omni message id

Responses
chevron-right
200

Success

application/json
get
/v1/message/{omniMessageId}

Send one or more messages

post

Note that on message send responses, there are two possible locations for error information: one for global level (where entire payload is rejected) and one where a message level reject is applicable. Errors Tablearrow-up-right Message Status Tablearrow-up-right Supported content types and limitationsarrow-up-right

Authorizations
AuthorizationstringRequired
Body

One api send message request

Responses
post
/v1/message

Send Business Read status notification

post
Authorizations
AuthorizationstringRequired
Body

Send Business Read Status notification request

Responses
post
/v1/notification

Get media file metadata

get

Response returns metadata of uploaded media

Authorizations
AuthorizationstringRequired
Path parameters
fileIdstringRequired

ID of the file that was returned in media upload request

Responses
chevron-right
200

Success

application/json
expirationTimeinteger · int64Optional
broadcastAllowedbooleanOptional
get
/v1/media/{fileId}

Media Download

get
  • Media file will be available for download for 30 days

  • The response body will contain:

    • the binary media data if it is not client side encrypted

    • the encrypted binary media data if client side encrypted

  • The download URL is specified in the moMedia event in the downloadUrl parameter of the files object array

Authorizations
AuthorizationstringRequired
Query parameters
fileIdstringRequired

ID of the file that is presented in MO Callbacks

sourcestring · enumOptional

If encryption is client, value should be 'client'

Possible values:
sha256HashstringRequired

Hash of file that is presented in MO Callbacks

Responses
chevron-right
200

Success

*/*
string · binaryOptional
get
/v1/media

Upload media file for One Api

post
  • Uploaded media file will be available for message sending for 30 days after uploading

  • The body must contain the binary media data

  • Media size limit is 30MB

Supported content types and limitationsarrow-up-right

Authorizations
AuthorizationstringRequired
Query parameters
tostringOptional

Field that marks this upload file for delivery to a single destination user. Limits message sending to only this number

broadcastAllowedbooleanOptional
fileNamestringRequired

File name of the file being uploaded

encryptionKeystringOptional
kmsArnstringOptional
encryptionCipherstringOptional
sha256FileHashstringOptional
Header parameters
Content-TypestringRequired

Content type of file

Example: image/jpg
Body
objectOptional
Responses
post
/v1/media

Return information about account balance

get
Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

Success

application/json
balancenumberOptional
currencystringOptional
get
/v1/balance

Last updated