Skip to main content
GET
https://staging.api.onenumber.africa/v1
/
message
Get all Messages
curl --request GET \
  --url https://staging.api.onenumber.africa/v1/message \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 123,
  "message": "<string>",
  "data": [
    {
      "reference": "<string>",
      "currentStatus": "<string>",
      "type": "<string>",
      "message": "<string>",
      "expiry": "<string>",
      "recipients": [
        {
          "reference": "<string>",
          "phoneNumber": "<string>",
          "email": "<string>",
          "firstName": "<string>",
          "lastName": "<string>"
        }
      ],
      "statuses": [
        {
          "name": "<string>",
          "createdAt": "<string>"
        }
      ]
    }
  ]
}

Successful Response Data

statusCode
int
required
The status of the response. For successful response, value is 201. Check the Response Codes page for details.
message
string
required
The message of the response.
data
array