Phone Numbers

Update a phone number

Changed on

Update what the AI does on inbound calls (inbound_objective), pause/resume the number (status), or set where calls reach a person, without releasing the number. forward_to is a phone number in the same country as this one (E.164). With call_routing: agent (default) the AI answers and transfers callers who ask for a person to forward_to; with call_routing: forward every call rings forward_to directly, and the caller can leave a voicemail if it does not connect. Forwarded minutes use credits.

patch/phone-numbers/{id}

Request

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

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

PhoneNumberRequest required
inbound_objective, string nullable
status, 'active' | 'inactive' | 'awaiting_verification' | 'in_review' | 'porting' | 'declined' | 'cancelled'
country, string
forward_to, string nullable
call_routing, 'agent' | 'forward' | 'business_hours'
business_hours_schedule_id, string nullable

The schedule (sched_...) whose open hours ring forward_to when call_routing is business_hours. Outside them the assistant answers.

answer_texts, boolean
text_back_missed_calls, boolean
text_new_leads, boolean
text_booking_reminders, boolean
review_link, string uri nullable

The page where contacts leave a review, starting with http:// or https://.

intake_questions, string[]

Questions the assistant asks every caller and texter before wrapping up. Their answers come back in the call's analysis.intake. Replaces the whole list.

Response

Phone number updated

PhoneNumber required
id, string required
object, string required
e164, string nullable required
status, 'active' | 'inactive' | 'awaiting_verification' | 'in_review' | 'porting' | 'declined' | 'cancelled' required
country, string required
inbound_objective, string nullable required
forward_to, string nullable required
call_routing, 'agent' | 'forward' | 'business_hours' required
verification_url, string nullable required
review_note, string nullable required
texting, 'off' | 'registering' | 'active' | 'unsupported' required
sms_registration_url, string nullable required
answer_texts, boolean required
text_back_missed_calls, boolean required
text_new_leads, boolean required
text_booking_reminders, boolean required
review_link, string nullable required
created_at, string date-time required
updated_at, string date-time required
business_hours_schedule, string nullable required
intake_questions, string[] required
monthly_credits, integer required

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

    3 more changes in this revision