Get a call by ID
curl --request GET \
--url https://dev-public-api.openphone.dev/v1/calls/{callId} \
--header 'Authorization: <api-key>'{
"data": {
"answeredAt": "2022-01-01T00:00:00Z",
"answeredBy": "USlHhXmRMz",
"initiatedBy": "USlHhXmRMz",
"direction": "incoming",
"status": "completed",
"completedAt": "2022-01-01T00:00:00Z",
"createdAt": "2022-01-01T00:00:00Z",
"callRoute": "phone-number",
"duration": 60,
"forwardedFrom": "US123abc",
"forwardedTo": "US123abc",
"aiHandled": "ai-agent",
"id": "AC123abc",
"phoneNumberId": "PN123abc",
"participants": [
"+15555555555"
],
"updatedAt": "2022-01-01T00:00:00Z",
"userId": "US123abc"
}
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"description": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"description": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Calls
Get a call by ID
Get a call by its unique identifier.
GET
/
v1
/
calls
/
{callId}
Get a call by ID
curl --request GET \
--url https://dev-public-api.openphone.dev/v1/calls/{callId} \
--header 'Authorization: <api-key>'{
"data": {
"answeredAt": "2022-01-01T00:00:00Z",
"answeredBy": "USlHhXmRMz",
"initiatedBy": "USlHhXmRMz",
"direction": "incoming",
"status": "completed",
"completedAt": "2022-01-01T00:00:00Z",
"createdAt": "2022-01-01T00:00:00Z",
"callRoute": "phone-number",
"duration": 60,
"forwardedFrom": "US123abc",
"forwardedTo": "US123abc",
"aiHandled": "ai-agent",
"id": "AC123abc",
"phoneNumberId": "PN123abc",
"participants": [
"+15555555555"
],
"updatedAt": "2022-01-01T00:00:00Z",
"userId": "US123abc"
}
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"description": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"description": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "<string>",
"status": 123,
"docs": "<string>",
"title": "<string>",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Was this page helpful?
⌘I