Contact Rules

Create Contact Rule

Changed on
post/api/v1/phone/numbers/{phone_number_id}/contact-rules

Request

  • Base URL
    https://api.inkbox.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.inkbox.ai/api/v1/phone/numbers/{phone_number_id}/contact-rules
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

phone_number_idstring uuid required

Request body

direction'inbound' | 'outbound' | 'both'
action'allow' | 'block' required
match_type'exact_number'
match_targetstring required

Phone number to match, in E.164 format.

Example request

{
  "match_target": "+15551234567"
}

Response

Successful Response

idstring uuid required
phone_number_idstring uuid required
direction'inbound' | 'outbound' | 'both'
action'allow' | 'block' required
match_type'exact_number' required
match_targetstring required
status'active' | 'paused' | 'deleted' required
created_atstring date-time required
updated_atstring date-time required

Changes

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status