DoneTalk Developers Sign in

Keys and scopes

Create a key

In Settings › API, an administrator creates the key and chooses:

  • Name: the system that will use it (e.g. "Company ERP").
  • Environment: Production acts for real; Test simulates everything (Test mode).
  • What the key may do: the scopes below. A call outside the key's scopes returns 403 insufficient_scope, with the scopes that work in details.required.
  • Start campaigns without waiting for approval: without it, this key's campaigns follow the company's approval rule (the budget always applies).
  • Valid until and only from these IP addresses, optional.

The whole key is shown only once, when created. Keep it like a password. Production keys start with dt_live_, test keys with dt_test_.

Authenticate

Send the key on every call:

Authorization: Bearer dt_live_...

Authorization: ApiKey dt_live_... works too. The company comes from the address (/v1/c/{company}/...) and must be the key's.

Scopes

GroupScopeWhat it allows
Campaignscampaigns:readSee campaigns and results
Campaignscampaigns:writeCreate and edit drafts
Campaignscampaigns:sendStart, pause and cancel
Contactscontacts:readSee contacts and their field values
Contactscontacts:writeCreate and update contacts
Contactsfields:readSee the list of fields
Contactsfields:writeCreate fields
Contactscontacts:deleteErase contacts' data (LGPD)
Templatestemplates:readSee templates
Templatestemplates:writeCreate templates and submit them to Meta
Messages and conversationsmessages:send_templateSend templates
Messages and conversationsmessages:send_textSend text and files (24-hour window)
Messages and conversationsconversations:readSee conversations and messages
Messages and conversationsconversations:writeClose and reopen conversations
Flows and schedulingflows:startStart flows
Flows and schedulingappointments:readSee appointments
Flows and schedulingappointments:writeBook, move and cancel appointments
Otherwebhooks:manageManage webhooks
Otherreports:readSee reports and costs
Otherworkspace:readSee numbers, teams and tags
Otherintegrations:outboundproConnect OutboundPro Conversas

Older keys

Keys made before scopes (dsf_live_...) keep working with the integration access they had. Choosing scopes for one of them limits it to those.

Security

  • One key per system, with the fewest scopes.
  • If a key leaks, revoke it in Settings › API: it stops at once.
  • Creating, editing and revoking are recorded in the Audit log, with who did it.

This page as Markdown