Phone Numbers

Provision a phone number

Changed on

Provisions a new phone number for the account and routes its inbound calls to an AI voice agent. Pass country (ISO 3166-1 alpha-2, default US) for a number in any country Crevio sells; prices differ by country. Most countries provision instantly (201). Regulated countries first need the business verified: the response is 202 with status: awaiting_verification and a verification_url to send the business owner to (pass verification_return_url to bring them back). The number then moves to in_review, and becomes active (or declined, with a review_note) once the carrier decides, usually within 1-3 days. The first month is charged in credits when the number becomes active, and each month it is kept after that; a number the balance cannot renew is released.

post/phone-numbers

Request

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

Headers

Idempotency-Keystring

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

inbound_objectivestring nullable
status'active' | 'inactive' | 'awaiting_verification' | 'in_review' | 'declined' | 'cancelled'
countrystring
forward_tostring nullable
call_routing'agent' | 'forward'

Response

Phone number provisioned

idstring required
objectstring required
e164string nullable required
status'active' | 'inactive' | 'awaiting_verification' | 'in_review' | 'declined' | 'cancelled' required
countrystring required
inbound_objectivestring nullable required
forward_tostring nullable required
call_routing'agent' | 'forward' required
verification_urlstring nullable required
review_notestring nullable required
created_atstring date-time required
updated_atstring date-time required
monthly_creditsinteger required

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status