OAuth 2.0 Token Endpoint
curl --request POST \
--url https://api.studio.prisme.ai/oidc/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=<string>'const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({grant_type: '<string>'})
};
fetch('https://api.studio.prisme.ai/oidc/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/oidc/token"
payload = { "grant_type": "<string>" }
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"token_type": "<string>",
"id_token": "<string>",
"refresh_token": "<string>",
"expires_in": 123,
"scope": "<string>"
}{}OIDC
OAuth 2.0 Token Endpoint
Standard OAuth 2.0 token endpoint (authorization_code, refresh_token and client_credentials grants). Documented here only so the endpoint appears in the contract — use a certified OAuth2/OIDC library (https://oauth.net/code/) rather than a generated client. The exhaustive parameter list is the one of RFC 6749 and the grants advertised by GET /oidc/.well-known/openid-configuration. On success the access token is also set as an httpOnly cookie.
POST
/
oidc
/
token
OAuth 2.0 Token Endpoint
curl --request POST \
--url https://api.studio.prisme.ai/oidc/token \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'grant_type=<string>'const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({grant_type: '<string>'})
};
fetch('https://api.studio.prisme.ai/oidc/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/oidc/token"
payload = { "grant_type": "<string>" }
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text){
"access_token": "<string>",
"token_type": "<string>",
"id_token": "<string>",
"refresh_token": "<string>",
"expires_in": 123,
"scope": "<string>"
}{}Body
application/x-www-form-urlencoded
Was this page helpful?