Phone Numbers

Turns texting on for a phone number, or re-reads where it stands. A US number delivers no texts until carriers approve the business: while texting is registering, send the owner sms_registration_url, a form for the business's legal details (valid 7 days). Texting becomes active on approval. Then set answer_texts, text_back_missed_calls and text_new_leads with PATCH /v1/phone-numbers/{id}.

post/phone-numbers/{id}/texting

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

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.

Response

The phone number with its texting state

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

    4 more changes in this revision