Get token metadata by ID. Never returns the token value.
curl --request GET \
--url https://albus.sh/api/tokens/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/tokens/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/tokens/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Tokens
Get token metadata by ID. Never returns the token value.
GET
/
tokens
/
{id}
Get token metadata by ID. Never returns the token value.
curl --request GET \
--url https://albus.sh/api/tokens/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/tokens/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/tokens/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z"
}{
"message": "Invalid or expired token"
}{
"message": "Resource not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The token's lookup ID (the identifier portion of the token string).
Response
OK
API token metadata. Never includes the token value.