An identity is everything an agent needs to act in the world under its own name: a number, a mailbox and, optionally, one of your linked phones. Scopes numbers and mail; phones too when you bind a phone.

Create one

  • Number. Sandbox projects get a simulated number. Live projects get the first available number, in area_code when you give one (409 no_numbers_available when there is none). number_type is local (default) or toll_free. Buying real numbers needs a paid plan with a card on file, like POST /v1/numbers. With agent_id, the number answers calls with that agent (see Voice).
  • Mailbox. Made as in POST /v1/mailboxes, on the same account.
  • Phone. phone_serial binds one of the project owner’s linked phones (a serial from GET /v1/phones). It needs the phones scope and a key that isn’t bound to one account (403 account_bound_key). A phone belongs to at most one identity (409 phone_in_identity).
If the mailbox can’t be made after the number is bought, the number is released again and the error is returned. Send an Idempotency-Key so a retry never buys a second number. While the identity exists its number and mailbox can’t be deleted on their own (409 number_in_identity, 409 mailbox_in_identity).

Pricing

The Agent identity bundle is $9 a month on live projects (meter identity_month): one number, one mailbox, one linked-phone slot and 200 phone minutes. The bundle’s number and mailbox are not billed separately. Simulated (sandbox) identities are not charged. See Pricing.