Every request needs an API key, sent as a bearer token:
Authorization: Bearer is the only supported header.

Create a key

  1. Sign in to the Vonative dashboard.
  2. Open Developers → API keys and click Create API key.
  3. Name the key, choose its permissions (see below) and, optionally, the resources it may use and an expiry date.
  4. Copy the key. It’s shown only once: Vonative stores a hash and can’t show it again.
Keys start with sk_vlang_. Older keys start with key_ and still work. You need the api_keys:write permission in your organization to create keys.

What a key can do

A key acts on behalf of the person who created it. What it can do is the overlap of three things:
  1. The creator’s access in the organization. A key can never do more than its creator, and it stops working if the creator leaves the organization or is suspended.
  2. The key’s permissions, chosen when the key is created.
  3. The key’s resource scope, if one is set.

Permissions

Permissions are <resource>:read or <resource>:write codes. Write never includes read, so a key that edits assistants should have both assistants:read and assistants:write. Each endpoint page in this reference lists the permission it needs, under Required permission. You can also give a key one of these shorthands:
A key without any :write permission is read-only: every POST, PUT, PATCH and DELETE returns 403 API Key is read-only.

Resource scope

A resource scope limits a key to specific assistants, workflows or phone numbers. For example, this key can only see and use one assistant and one number:
Types you leave out aren’t limited. Lists return only the resources in scope, and reading anything else returns 404. Resources the key creates are added to its scope.

Expiry

Set expires_at to make a key stop working at a given time. After that it returns 401 API Key expired.

Endpoints a key can call

API keys work on these paths: Other paths (billing, team, analytics, API key management) are dashboard-only and return 403 API Key not allowed for this endpoint.

Errors

Keep keys safe

Never put an API key in browser or mobile code, a public repository or logs. To start calls from a browser, call POST /v1/calls from your server and send the client only the short-lived call token.
  • Keep keys in environment variables or a secrets manager.
  • Use a separate key for each environment and service, with only the permissions it needs.
  • Set an expiry on keys used for one-off jobs.
  • Revoke a key in Developers → API keys as soon as it may have leaked.