Read one API key's metadata.
curl --request GET \
--url https://omni-api.sendblue.com/admin/keys/{key_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/admin/keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"permissions": [
"accounts:create"
],
"role": "standard",
"created_by": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Read one API key's metadata.
Required permission: keys:manage. Accepted credentials: a signed-in administrator, an API key, the account token.
GET
/
admin
/
keys
/
{key_id}
Read one API key's metadata.
curl --request GET \
--url https://omni-api.sendblue.com/admin/keys/{key_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/admin/keys/{key_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/admin/keys/{key_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"permissions": [
"accounts:create"
],
"role": "standard",
"created_by": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Response
The key.
Effective permission names in lexical order. Grants are immutable after issuance.
Available options:
accounts:create, billing:history, billing:read, billing:refill, billing:top_up, brands:read, brands:write, calls:create, calls:read, calls:write, campaigns:read, campaigns:write, company_settings:read, contacts:read, contacts:write, keys:manage, me:read, media:read, media:write, messages:read, messages:send, messages:write, number_orders:cancel, number_orders:create, number_orders:read, numbers:purchase, numbers:read, numbers:release, numbers:write, operations:read, prices:read, recordings:read, recordings:write, settings:read, settings:write, subaccounts:manage, tags:read, tags:write, team:manage, team:read, variables:read, variables:write, webhooks:manage, webhooks:receive, workflows:read, workflows:write