🔑

Authentication

Get Auth Token

post
https://arkprod.us.auth0.com/
oauth/token
Request to get authorize to use Arkangel AI API

Example request

Python
Javascript
cURL
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"
}'