Skip to content

Get all jobs for given criteria.

Request

Get a list of job IDs for a specified time period and corresponding to the other optional filters.

Security
httpBasicAuth
Query
jobIdsOnlybooleanrequired

Return only jobIDs. Currently only 'true' is supported.

Default:true
fromTsstring, (date-time)

From timestamp (ISO-8601). The interval between fromTs and toTs can be a maximum of 30 days.

Example:fromTs=2022-06-13T00:00:00+02:00
toTsstring, (date-time)

To timestamp (ISO-8601). The interval between fromTs and toTs can be a maximum of 30 days.

Example:toTs=2022-06-20T00:00:00+02:00
openboolean

Return only open jobs.

Default:false
offsetinteger, (int64), >= 0

Parameter used for pagination. Retrieve a subset of records starting with the offset value.

Default:0
limitinteger, (int64), [ 1 .. 1000 ]

Limit number of results returned. Value must be between 0 and 1000.

Default:100
curl -i -X GET \
  -u '<username>:<password>' \
  'https://developers.retarus.com/_mock/sms/sms4a-api/jobs?jobIdsOnly=true&fromTs=2022-06-13T00%3A00%3A00%2B02%3A00&toTs=2022-06-20T00%3A00%3A00%2B02%3A00&open=false&offset=0&limit=100'

Responses

List jobs successful.

Bodyapplication/json
Array [
jobIdstringread-only
Example:"J.20220928-125820.020-0l8likuetGNOTM4A4U"
srcstringread-only

Sender ID.

Example:"retarus"
encodingstringread-only
Enum:"standard""utf-16"
billcodestringread-only
Example:"Campaign123"
statusRequestedbooleanread-only

Delivery notification requested.

flashbooleanread-only
Example:false
validityMininteger, (int64)read-only

Validity of the SMS in minutes.

Example:2880
customerRefstringread-only

Recommended max. 64 characters.

Example:"InternalID: ABC1234 Tag: Marketing"
qosstringread-only

Quality of Service.

Enum:"EXPRESS""NORMAL"
Example:"NORMAL"
receiptTsstring, (date-time)read-only

Timestamp indicating when the job was received by Retarus (iso-8601).

Example:"2022-09-01T10:25:00.000Z"
finishedTsstring, (date-time)read-only

Timestamp indicating when the SMS received its final status (iso-8601).

Example:"2022-09-30T10:25:00.000Z"
recipientIdsArray of stringsread-only
Example:
[ "S.20220928-125820.022-0l8likueyRB3CT8FTG" ]
]
Response
[ { "jobId": "J.20220928-125820.020-0l8likuetGNOTM4A4U", "src": "retarus", "encoding": "standard", "billcode": "Campaign123", "statusRequested": true, "flash": false, "validityMin": 2880, "customerRef": "InternalID: ABC1234 Tag: Marketing", "qos": "NORMAL", "receiptTs": "2022-09-01T10:25:00.000Z", "finishedTs": "2022-09-30T10:25:00.000Z", "recipientIds": [ … ] } ]