Obtain an access token using client_credentials for a service account, or exchange
an authorization_code or refresh_token for an entity or organization app.
App grants return a refresh token; client_credentials does not. Organization-level
tokens require an entity selector on entity-specific requests, including source writes.
The Digits API supports two authentication modes:
authorization_codeand refresh_token- standard OAuth flow, for granting access to a single connection. Most integrations will use this authentication mode, as it allows for writing data.
client_credentials- Directly pull an Access Token for client credentials. The resulting access token may only be used against non-source endpoints. An OAuth authorization flow is required for writing data via the source APIs.