🦉
Arkangel AI Docs
  • 👋Welcome to Arkangel AI
  • 🍕Preparing Learning Data
    • Data Best Practices
    • How to anonymize your data?
    • How to build a good dataset for ML?
  • 🛠️Getting Started
  • Product Tutorials
    • 📩Upload Data
    • ⭐Improve Data
      • Handling dates
      • Correlation and Significance
      • Handling of Outliers
    • 🤖Create AI Models
    • 🔮Make Predictions
    • 📈Integrate & Monitor
  • API Docs
    • 🚩API Overview
    • 🔑Authentication
    • 👾Methods
      • 🚀Projects
      • 🧠Datasets
      • 🔮Predictions
    • 📖Glossary
Powered by GitBook
On this page
  • Get Auth Token
  • Request to get authorize to use Arkangel AI API

Was this helpful?

  1. API Docs

Authentication

Get Auth Token

Request to get authorize to use Arkangel AI API

POST https://arkprod.us.auth0.com/oauth/token

Below in the "Responses" section you will find most common responses our API generates.

Headers

Name
Type
Description

content-type

String

application/json

{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}

Example request

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"
}'
PreviousAPI OverviewNextMethods

Last updated 1 year ago

Was this helpful?

🔑