Logo
Microsoft Graph APIs API Documentation

Get token

POST https://login.microsoftonline.com/{{tenant_id}}/oauth2/v2.0/token

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




RESPONSES

status





Curl
curl -X POST 'https://login.microsoftonline.com/tenant_id/oauth2/v2.0/token' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode '%7B%22name%22%3D%3E%22client_id%22%2C+%22value%22%3D%3E%22client_id%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22client_secret%22%2C+%22value%22%3D%3E%22client_secret%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22scope%22%2C+%22value%22%3D%3E%22https%3A%2F%2Fgraph.microsoft.com%2F.default%22%2C+%22datatype%22%3D%3E%22string%22%7D&%7B%22name%22%3D%3E%22grant_type%22%2C+%22value%22%3D%3E%22client_credentials%22%2C+%22datatype%22%3D%3E%22string%22%7D'

ENDPOINTS