Skip to main content
POST
Use Try it to exchange an Application’s or Data Provider’s client credentials for a short-lived access token. The audience identifies the API the token targets, while the optional scope limits what the token can do.
Treat the client secret and returned access token as secrets. Use the playground only for direct testing. Do not copy either value into browser application code, source control, logs, or client-side configuration.

Choose an audience and scope

Omit scope with the tenant audience to request every tenant API scope enabled for the Application.

Data Provider access token

For legacy import and media ingest, send a client_credentials request to https://auth.occtoo.com/oauth2/token. Use the OAuth client ID and client secret for your Data Provider, your tenant ID as audience, and import-datasource as scope. Send the returned access_token as a bearer token to the Ingest API and reuse it until it expires. See Applications for the complete access model, resource restrictions, language examples, and troubleshooting guidance.

Body

application/x-www-form-urlencoded
grant_type
enum<string>
default:client_credentials
required

OAuth grant used by machine-to-machine Applications and Data Providers.

Available options:
client_credentials
client_id
string
required

OAuth client ID of the Application or Data Provider.

Example:

"<client-id>"

client_secret
string<password>
required
write-only

Client secret of the Application or Data Provider. Treat this value as a secret.

Example:

"<client-secret>"

audience
string
required

Tenant ID for ingest and events, or API version ID for a protected destination API.

Example:

"<tenant-or-api-version-id>"

scope
string

Optional space-delimited scopes. Use import-datasource for a Data Provider. Omit for destination access or to request every tenant scope granted to an Application.

Examples:

"write:sources"

"import-datasource"

"read:events"

"read:events:pull"

"read:events:sse"

Response

Access token issued.

access_token
string
required

Bearer token to send to the target API.

token_type
string
required
Allowed value: "Bearer"
expires_in
integer
required

Token lifetime in seconds.

scope
string

Space-delimited scopes included in the token.