List API keys
curl --request GET \
--url https://api.fibre.dev/v1/auth/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/auth/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/auth/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"scopes": [
"<string>"
]
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}API keys
List API keys
Your account’s keys: name, prefix, scopes, binding, expiry and last use. Never the keys themselves.
GET
/
v1
/
auth
/
api-keys
List API keys
curl --request GET \
--url https://api.fibre.dev/v1/auth/api-keys \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fibre.dev/v1/auth/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.fibre.dev/v1/auth/api-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"prefix": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"scopes": [
"<string>"
]
}
]
}{
"error": "<string>",
"code": "invalid_request",
"request_id": "<string>",
"docs_url": "<string>"
}