---
title: API Authentication
slug: api-authentication
docTags: 
createdAt: 2025-09-24T16:14:50.478Z
---

Access to the Tally Platform API is granted by calling Okta to obtain an access token. This endpoint returns an access token that allows access to all Tally Platform API services. This short-lived token will expire (valid for 1 hour), and when this happens, a new token will need to be retrieved from the OAuth get token endpoint and cached on the server until it expires again.&#x20;

To obtain the access token, the Client ID and Client Secret values are sent to Okta via Base Authentication. These will be sent to your team for connectivity. See below for more details on how to call this service.

**Okta AuthenticationRequest**

:::BlockQuote
curl --request POST \   
&#x20; \--url https\://phaedon.oktapreview\.com/oauth2/auscfbbmieFBGGOzR1d7/v1/token \    
&#x20; \--header 'accept: application/json' \   &#x20;
&#x20; \--header 'authorization: Basic MG9h\*\*\*\*\*\*\*g==' \   &#x20;
&#x20; \--header 'cache-control: no-cache' \   &#x20;
&#x20; \--header 'content-type: application/x-www-form-urlencoded' \  
&#x20; --data 'grant\_type=client\_credentials\&scope=tpags\_\*\*WILL\_BE\_SET\_IN\_POSTMAN\*\*
:::

**Response:**

:::BlockQuote
\{    
&#x20; "access\_token": "eyJhbG\[...]1LQ",    
&#x20; "token\_type": "Bearer",    
&#x20; "expires\_in": 3600,    
&#x20; "scope": "tpags\_**WILL\_BE\_SET\_IN\_POSTMAN**"
}
:::

