cURL
curl --request GET \ --url https://api.openphone.com/v1/messages/{id} \ --header 'Authorization: <api-key>'
{ "data": { "id": "AC123abc", "to": [ "+15555555555" ], "from": "+15555555555", "text": "Hello, world!", "phoneNumberId": "PN123abc", "direction": "incoming", "userId": "US123abc", "status": "sent", "createdAt": "2022-01-01T00:00:00Z", "updatedAt": "2022-01-01T00:00:00Z" } }
Get a message by its unique identifier.
The unique identifier of a message
"AC123abc"
Success
The response is of type object.
object
Was this page helpful?