Skip to content

Latest commit

 

History

History
86 lines (86 loc) · 2.91 KB

Get the MO received messages..md

File metadata and controls

86 lines (86 loc) · 2.91 KB

Get the MO received messages.

This feature is available only for French customers!. Returns a list (limited to max. 100 entries) of MO messages received for the give type which could be STOP or CONTACT or OTHER; type is a mandatory parameter, the other are optional.

Remember to provide the authentication HTTP headers as described in the Authenticate using a session key and the Authenticate using a user token sections.
All the query string parameters in URL must be UTF-8 URL Encoded.

HTTP Headers

user_key / Session_key

HTTP Method

GET

HTTP Request

https://app.gateway.smsend.it/API/v1.0/REST/mosmshistory?type=TYPE&from=FROMDATE&to=TODATE&pageNumber=PAGE&pageSize=SIZE

Parameters

Parameter Type Description Required Default
type String (“STOP” or “CONTACT” or “OTHER”) Type of the MO and could be one of STOP, CONTACT or OTHER Yes -
from Date(yyyyMMddHHmmss) Return results from the given date No -
to Date(yyyyMMddHHmmss) Return results up to the given date No -
timezone Timezone(IANA time zone) Optional timezone applied to from or to dates No -
pageNumber Int Return the given results page No 1
pageSize Int The number of results in a page No 10

Returns

Code Description
200 The list of received MO messages of type, with the specified time constraints (if any) and paging
400 Other errors, details are in the body
401 [Unauthorized] User_key, Token or Session_key are invalid or not provided, ot if the user is not French
404 [Not found] The User_key was not found