Skip to Content
Developers
Buyers

Create a buyer

Needs the buyers:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/buyers

Creates a buyer that can take traffic at once. Creation is silent: TRAKI sends no email and no portal invitation unless invite is given. externalId, the account’s own id, must be unique in the account (409 external_id_taken).

Authorization

key
headerAuthorizationBearer <traki_account_…>

Request Body

application/json
  1. body
externalId?string

The account’s own id for the record, unique in the account.

Length1 <= length <= 200
name*string
Length2 <= length <= 120
companyName?|null
contactName?|null
contactEmail?|null
contactPhone?|null
timezone?string

An IANA time zone, such as America/Chicago.

Lengthlength <= 64
modules?

Which modules the party works in: call leads, form leads or both.

concurrencyCap?|null
invite?

Send a portal invitation to this email. Without it the record is created silently: no email and no invitation. Applies only when the call creates the record.

Response Body

Success

application/json
  1. response
id*string
Formatuuid
externalId*string|null
code*string
name*string
status*string
companyName*string|null
contactName*string|null
contactEmail*string|null
contactPhone*string|null
timezone*string
modules*
available*boolean
concurrencyCap*|null
apiAccess*boolean
version*string
createdAt*string
updatedAt*string
Example Request
curl -X POST 'https://api.traki.io/v1/account/buyers' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "name": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "externalId": "string",  "code": "string",  "name": "string",  "status": "string",  "companyName": "string",  "contactName": "string",  "contactEmail": "string",  "contactPhone": "string",  "timezone": "string",  "modules": {    "calls": true,    "leads": true  },  "available": true,  "concurrencyCap": -9007199254740991,  "apiAccess": true,  "version": "string",  "createdAt": "string",  "updatedAt": "string"}