Phone Blocks

Turns away this number's calls on every phone number of the account before they ring. Blocking a number that is already blocked returns the existing block. It does not stop texts or outbound calls; to stop contacting a number, add a phone suppression.

post/phone-blocks

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

PhoneBlockRequest required
e164, string
note, string nullable

Response

Caller blocked

PhoneBlock required
id, string required
object, string required
e164, string required
source, 'manual' | 'spam' required
note, string nullable required
created_at, string date-time required
updated_at, string date-time 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