Authentication

One API application, one token endpoint, three headers on every call.

PerspioTalk APIs authenticate integrations with the OAuth 2.0 client credentials grant. Each integration has its own API application in your Perspio tenant. The application's client ID and secret get you a short-lived access token. You then send that token, your tenant ID and your subscription key with every request.

What you need

ValueWhere it comes fromUsed for
client_idYour API applicationRequesting a token
client_secretYour API application (shown once, when created)Requesting a token
Ocp-Apim-Subscription-KeyYour API applicationEvery API call
tidYour API applicationEvery API call
access_tokenThe token endpointEvery API call, as Authorization: Bearer

Steps

  1. Create Application. A Perspio administrator creates an API application for your integration and records its credentials.
  2. Get Access Token. Exchange the client ID and secret for a bearer token, then call any PerspioTalk API with it.

What an integration can access

An API application's access and permissions are set when an administrator creates it in Perspio, and they apply to every token it receives. To change what an integration can do, update its API application in Perspio.

📘

Replacing the earlier sign-in flows

Earlier versions of these docs described Microsoft Entra ID sign-in: tokens from login.microsoftonline.com, api://perspiotalk scopes, API users, the authorization code flow and refresh tokens. The token endpoint on Get Access Token replaces all of them. Move any integration that still requests tokens from login.microsoftonline.com to it.