Create a call
curl --request POST \
--url https://dev-public-api.openphone.dev/v1/calls \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Confirm the appointment booked for tomorrow at 9am.",
"number": "+15555555555",
"phoneNumberId": "PN123abc"
}
'{
"data": {
"id": "AC3700e624eca547eb9f749a06f2eb1"
}
}{
"message": "<string>",
"code": "0101400",
"status": 400,
"docs": "https://quo.com/docs",
"title": "Too Many Participants",
"description": "Too Many Participants",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0100401",
"status": 401,
"docs": "https://quo.com/docs",
"title": "Unauthorized",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0101403",
"status": 403,
"docs": "https://quo.com/docs",
"title": "Not Phone Number User",
"description": "Not Phone Number User",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0100404",
"status": 404,
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0101500",
"status": 500,
"docs": "https://quo.com/docs",
"title": "Unknown",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Calls
Create a call
Place a call from one of your Quo numbers, following the instructions in the prompt.
POST
/
v1
/
calls
Create a call
curl --request POST \
--url https://dev-public-api.openphone.dev/v1/calls \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Confirm the appointment booked for tomorrow at 9am.",
"number": "+15555555555",
"phoneNumberId": "PN123abc"
}
'{
"data": {
"id": "AC3700e624eca547eb9f749a06f2eb1"
}
}{
"message": "<string>",
"code": "0101400",
"status": 400,
"docs": "https://quo.com/docs",
"title": "Too Many Participants",
"description": "Too Many Participants",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0100401",
"status": 401,
"docs": "https://quo.com/docs",
"title": "Unauthorized",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0101403",
"status": 403,
"docs": "https://quo.com/docs",
"title": "Not Phone Number User",
"description": "Not Phone Number User",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0100404",
"status": 404,
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}{
"message": "<string>",
"code": "0101500",
"status": 500,
"docs": "https://quo.com/docs",
"title": "Unknown",
"trace": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"schema": {
"type": "<string>"
},
"value": "<unknown>"
}
]
}Authorizations
Body
application/json
Instructions for the call.
Minimum string length:
1Example:
"Confirm the appointment booked for tomorrow at 9am."
The phone number to call, in E.164 format.
Pattern:
^\+[1-9]\d{1,14}$Example:
"+15555555555"
The Quo phone number the call is placed from.
Pattern:
^PN(.*)$Example:
"PN123abc"
Response
Accepted
Show child attributes
Show child attributes
Was this page helpful?