Getting started
Essentials
Calls
Contact Custom Fields
Contacts
Conversations
Phone Numbers
Messages
Get a message by ID
Get a message by its unique identifier.
GET
/
v1
/
messages
/
{id}
Copy
Ask AI
curl --request GET \
--url https://api.openphone.com/v1/messages/{id} \
--header 'Authorization: <api-key>'
Copy
Ask AI
{
"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"
}
}
Authorizations
Path Parameters
The unique identifier of a message
Examples:
"AC123abc"
Response
200
application/json
Success
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request GET \
--url https://api.openphone.com/v1/messages/{id} \
--header 'Authorization: <api-key>'
Copy
Ask AI
{
"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"
}
}
Assistant
Responses are generated using AI and may contain mistakes.