Delete Access Token
curl --request DELETE \
--url https://api.studio.prisme.ai/v2/user/accessTokens/{token} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/user/accessTokens/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/user/accessTokens/{token}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"expiresAt": "<string>",
"name": "<string>",
"token": "<string>",
"userId": "<string>",
"id": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}API Gateway
Delete Access Token
Revoke an access token
DELETE
/
v2
/
user
/
accessTokens
/
{token}
Delete Access Token
curl --request DELETE \
--url https://api.studio.prisme.ai/v2/user/accessTokens/{token} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/user/accessTokens/{token}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/user/accessTokens/{token}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"expiresAt": "<string>",
"name": "<string>",
"token": "<string>",
"userId": "<string>",
"id": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Token
Was this page helpful?