Search…
Tokens

List Tokens

Retrieve a list of authorized tokens.
curl
1
curl -i \
2
-H 'authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7fSwiZXhwIjpudWxsLCJpYXQiOjE1NTk4Nzg1NzQsImp0aSI6IjYzYTJkY2QzLWI5OTgtNDZjNC1hNzFkLTQ5MjU4YTBhYmEyMyIsInN1YiI6ImFwcGxpY2F0aW9uOmNiMjAzN2Y3LTc5ZmMtNDBmNC05NzIwLWFkYTYzNmRhNDE4MyJ9.0LsVj7oTF0KjwbcUhg9a-fQRWB7cGzKJxLIANeX2cWE' \
3
https://ident.provide.services/api/v1/tokens
4
HTTP/2 200
Copied!
Response JSON:
1
{
2
"id": "efef1044-4958-43bc-903b-28f2bb938037"
3
}
Copied!

Authorize Token

Authorize a Token on behalf of a User, Application or Organization.
This API can be used to authorize OAuth2
curl
1
curl -v -XPOST \
2
-H 'content-type: application/json' \
3
-H 'authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7fSwiZXhwIjpudWxsLCJpYXQiOjE1NTk4Nzg1NzQsImp0aSI6IjYzYTJkY2QzLWI5OTgtNDZjNC1hNzFkLTQ5MjU4YTBhYmEyMyIsInN1YiI6ImFwcGxpY2F0aW9uOmNiMjAzN2Y3LTc5ZmMtNDBmNC05NzIwLWFkYTYzNmRhNDE4MyJ9.0LsVj7oTF0KjwbcUhg9a-fQRWB7cGzKJxLIANeX2cWE' \
4
https://ident.provide.services/api/v1/tokens --data-binary @- << EOF
5
{
6
"scope": "offline_access",
7
"user_id": "2f18c7a7-5540-476c-a7a8-d5b30d2c90e6",
8
"organization_id": "efef1044-4958-43bc-903b-28f2bb938037"
9
}
10
EOF
Copied!
Response JSON:
1
{
2
"id": "4059f749-55ad-4c1c-975d-6c5040801079"
3
}
Copied!

Revoke a Token

Revoke a previously-authorized Token.
Token revocation may be necessary if the Token has become compromised or otherwise requires invalidation. Revocation of a Token should only be necessary on Application or otherwise permanent issuances.
curl
1
curl -XDELETE -i \
2
-H 'authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7fSwiZXhwIjpudWxsLCJpYXQiOjE1NTk4Nzg1NzQsImp0aSI6IjYzYTJkY2QzLWI5OTgtNDZjNC1hNzFkLTQ5MjU4YTBhYmEyMyIsInN1YiI6ImFwcGxpY2F0aW9uOmNiMjAzN2Y3LTc5ZmMtNDBmNC05NzIwLWFkYTYzNmRhNDE4MyJ9.0LsVj7oTF0KjwbcUhg9a-fQRWB7cGzKJxLIANeX2cWE' \
3
https://ident.provide.services/api/v1/tokens/efef1044-4958-43bc-903b-28f2bb938037
4
HTTP/2 204
Copied!

URL Parameters

Parameter
Description
id
id of the Token
Last modified 4mo ago