Skip to main content
POST
/
calls
Place a call
curl --request POST \
  --url https://api.crevio.co/v1/calls \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to_number": "<string>",
  "objective": "<string>",
  "first_message": "<string>",
  "purpose": "<string>"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "to_number": "<string>",
  "from_number": "<string>",
  "objective": "<string>",
  "summary": "<string>",
  "transcript": "<string>",
  "recording_url": "<string>",
  "ended_reason": "<string>",
  "duration_seconds": 123,
  "credits_charged": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "customer": "<string>"
}

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Body

application/json
to_number
string | null
objective
string | null
first_message
string | null
purpose
string | null

Response

Call placed

id
string
required
object
string
required
direction
enum<string>
required
Available options:
inbound,
outbound
status
enum<string>
required
Available options:
queued,
scheduled,
ringing,
in_progress,
ended,
failed
to_number
string | null
required
from_number
string | null
required
objective
string | null
required
summary
string | null
required
transcript
string | null
required
recording_url
string | null
required
ended_reason
string | null
required
duration_seconds
integer | null
required
credits_charged
integer | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
customer
string | null
required