Calls

Places an autonomous outbound phone call. An AI voice agent dials the number and pursues the objective, acting on account data mid-call. Only call numbers that have consented to be contacted.

post/calls

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

CallRequest required
to_number, string nullable
objective, string nullable
first_message, string nullable
purpose, string nullable

Response

Call placed

Call required
id, string required
object, string required
direction, 'inbound' | 'outbound' required
status, 'queued' | 'scheduled' | 'ringing' | 'in_progress' | 'ended' | 'failed' required
to_number, string nullable required
from_number, string nullable required
objective, string nullable required
summary, string nullable required
transcript, string nullable required
recording_url, string nullable required
ended_reason, string nullable required
duration_seconds, integer nullable required
credits_charged, integer nullable required
created_at, string date-time required
updated_at, string date-time required
contact, string nullable required
analysis, object nullable required

What the call was about, filled in shortly after a call the AI answered or placed ends, and carried by call.ended: outcome, callback_requested, lead_rating (hot, warm, cold or not_a_lead), urgent, spam, and intake, the number's intake questions each with the caller's answer or null. Null until then, and for calls the assistant did not answer.

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision