Numbers
Buy a new phone number
Calls
- GETGet Calls
- GETGet Call
- GETGet Transcript
- GETGet current page
- GETList Call tags
- GETReturn a pre-signed URL to the call recording
- GETReturn the logs for a call
- GETGets an organization's usage
- POSTStop Call
- POSTCancel Call
- POSTAdd a note to a call
- POSTTrigger async export of calls CSV to requester email
- PATCHUpdate a note on a call
- PATCHSet call as viewed by the user making the request
- PATCHSet call rating
- DELDelete a note from a call
- DELDelete a call
Dial
Orgs
Numbers
Usecases
Agents
Numbers
Buy a new phone number
POST
/
numbers
curl --request POST \
--url https://app.happyrobot.ai/api/v1/numbers \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"area_code": "<string>"
}'
{
"id": "<string>",
"organization_id": "<string>",
"number": "<string>",
"sid": "<string>",
"locality": "<string>",
"routes": [
{
"probability": 123,
"assistant_id": "<string>",
"model_name": "<string>"
}
]
}
Headers
Body
application/json
Body
Was this page helpful?
curl --request POST \
--url https://app.happyrobot.ai/api/v1/numbers \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '{
"area_code": "<string>"
}'
{
"id": "<string>",
"organization_id": "<string>",
"number": "<string>",
"sid": "<string>",
"locality": "<string>",
"routes": [
{
"probability": 123,
"assistant_id": "<string>",
"model_name": "<string>"
}
]
}