--- title: "Get access token" slug: "get-access-token" updated: 2026-10-06T12:30:51Z published: 2026-10-06T12:30:51Z canonical: "docs.cspcontrolcenter.com/get-access-token" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.cspcontrolcenter.com/llms.txt > Use this file to discover all available pages before exploring further. # Get access token The C3 REST APIs are secured using OAuth 2.0 authentication through Azure Active Directory. All API requests must include a valid access token in the **Authorization** header using the Bearer authentication scheme. Access tokens can be obtained programmatically using the OAuth 2.0 Client Credentials flow, which is suitable for server-to-server integrations, background services, and applications that do not require user interaction. ## Generate Access Token ```custom https://login.microsoftonline.com/{{tenantID}}/oauth2/token ``` ## Endpoint Parameters | Parameter | Required | Description | | --- | --- | --- | | `{{tenantID}}` | Yes | Partner Tenant ID used to authenticate against Azure Active Directory. | ## Request Headers | Header | Value | | --- | --- | | Content-Type | application/x-www-form-urlencoded | ## Request Body The request body must be submitted as **application/x-www-form-urlencoded**. | Parameter | Value | Description | | --- | --- | --- | | grant_type | client_credentials | Specifies the OAuth 2.0 Client Credentials flow. | | client_id | `<to-be-provided-offline>` | Application (client) identifier issued for API access. | | client_secret | `<to-be-provided-offline>` | Secret key associated with the client application. | | scope | `<to-be-provided-offline>` | Scope requested for the access token. | | resource | `<to-be-provided-offline>` | Target resource for which the access token is requested. | Important The values for **client_id**, **client_secret**, **scope**, and **resource** are provided separately as part of the partner onboarding process. ## Successful Response A successful request returns an OAuth access token that can be used to authenticate subsequent requests to the C3 REST APIs. ### Sample Response ```json { "token_type": "Bearer", "expires_in": "3599", "ext_expires_in": "3599", "expires_on": "1587227232", "not_before": "1587223332", "resource": "001dfc3c-1cbf-406e-b592-de9f67f5ab62", "access_token": "" } ``` ### Response Properties | Property | Description | | --- | --- | | token_type | Authentication scheme associated with the access token. The value is typically **Bearer**. | | expires_in | Number of seconds until the access token expires. | | ext_expires_in | Extended expiration time of the access token in seconds. | | expires_on | Timestamp indicating when the access token expires. | | not_before | Timestamp indicating when the access token becomes valid. | | resource | Identifier of the resource for which the access token was issued. | | access_token | OAuth access token used to authenticate requests to the C3 REST APIs. | ## Using the Access Token Include the value returned in the `access_token` property in the **Authorization** header of all subsequent API requests. ```custom Authorization: Bearer ``` Note All C3 REST API requests require a valid access token. Requests made with an expired, invalid, or missing access token will be rejected.