POST https://arkprod.us.auth0.com/oauth/token
POST
https://arkprod.us.auth0.com/oauth/token
Below in the "Responses" section you will find most common responses our API generates.
content-type
String
application/json
{ // Response }
import requests import json url = "https://arkprod.us.auth0.com/oauth/token" payload = json.dumps({ "client_id": "{{CLIENT_ID}}", "client_secret": "{{CLIENT_SECRET}}", "audience": "{{AUDIENCE}}", "grant_type": "client_credentials" }) headers = { } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
var myHeaders = new Headers(); var raw = JSON.stringify({ "client_id": "{{CLIENT_ID}}", "client_secret": "{{CLIENT_SECRET}}", "audience": "{{AUDIENCE}}", "grant_type": "client_credentials" }); var requestOptions = { method: 'POST', headers: myHeaders, body: raw, redirect: 'follow' }; fetch("https://arkprod.us.auth0.com/oauth/token", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));a
curl --location --request POST 'https://arkprod.us.auth0.com/oauth/token' \ --data-raw '{ "client_id": "{{CLIENT_ID}}", "client_secret": "{{CLIENT_SECRET}}", "audience": "{{AUDIENCE}}", "grant_type": "client_credentials" }'
Last updated 1 year ago