AzureGenerate a Microsoft identity token

Generate a Microsoft identity token

Microsoft OAuth helper used by legacy Azure/Aveska flows. Examples use placeholders only; never paste real client secrets or access tokens into docs.

Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists.

curl -X POST "https://login.microsoftonline.com/example_string/oauth2/v2.0/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Cookie: fpc=AmvOgoxMsG9IoSuJqCk0EbBnwhVGAQAAAKMx298OAAAA; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd" \
  --data-urlencode grant_type=client_credentials \
  --data-urlencode client_id={{azureClientId}} \
  --data-urlencode client_secret={{azureClientSecretId}} \
  --data-urlencode scope=https://graph.microsoft.com/.default
{}
POST
/{azureTenantId}/oauth2/v2.0/token
POST
Base URLstring

Target server for requests. Edit to use your own host.

Content-Typestring
Required

The media type of the request body

Options: application/x-www-form-urlencoded
Request Preview
Response

Response will appear here after sending the request

Path Parameters

Headers

Content-Typestring
Example:
application/x-www-form-urlencoded

Body

application/x-www-form-urlencoded
grant_typestring
Example:
client_credentials
client_idstring
Example:
{{azureClientId}}
client_secretstring
Example:
{{azureClientSecretId}}
scopestring
Example:
https://graph.microsoft.com/.default

Responses

Successful response