Skip to navigation

API Keys

View as Markdown

API keys authenticate requests to the Dropbox Sign API. These endpoints create, list, retrieve, update, and delete named keys on an account. Keys can also be managed from the API tab of your API Settings page. See Authentication for how a key is sent with a request, and for naming, storage, and rotation practices.

account_id is an optional query parameter on every API key endpoint. When it is omitted, the call applies to the authenticated account. Pass another account ID to manage a service account owned by the caller.

Each account can have up to four API keys, and every key can call the API. One of them is the primary key. Dropbox Sign uses the primary key to generate the event_hash on event payloads. Promote another key with Update API Key before deleting the current primary key. The primary key cannot be deleted.

The object returned by these endpoints includes api_key_id, name, is_primary, and timestamps for when the key was created, updated, and last used. api_key_id is a 40-character hexadecimal ID. last_used_at is null until the key is used. Names must be unique on the account and are limited to 25 characters.

The key secret is returned only by Create API Key. Store it when you create the key. List, get, and update return the key’s id, name, primary flag, and timestamps.

Tips:

  • Rotate a key by creating a new one, pointing your integration at it, promoting it to primary, then deleting the previous key. Rotating API keys walks through that sequence, including event hash verification.
  • API key access covers the whole API. Use OAuth when a caller needs access limited to specific scopes.

API Key Endpoints

SummaryEndpointDescription
List API KeysGET
/api_key
Returns the API keys on the specified account.
Create API KeyPOST
/api_key
Creates a named API key and returns its secret. This is the only response that includes the secret.
Get API Key/api_key/{api_key_id}Returns the API key specified by the api_key_id parameter.
Update API KeyPUT
/api_key/{api_key_id}
Renames a key, or sets is_primary to true to make it the account’s primary key. Provide at least one of name or is_primary.
Delete API KeyDELETE
/api_key/{api_key_id}
Deletes an API key. Promote another key first when this key is the primary key.