API keys
Ordered by name.
API keys returned.
API key definition. The key value is never returned.
The caller is not authenticated.
The caller lacks the tenant.apiKey:read scope.
The tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
GET /api/{tenantId}/admin/apiKeys HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"name": "text",
"enabled": true,
"permissions": [
"text"
],
"internal": true,
"tags": [
"text"
]
}
]The token is returned once and cannot be retrieved later: if it is lost, delete the key and create a new one. A caller can only grant permissions they hold themselves. Example: { "name": "crm-sync", "permissions": ["tenant.access:read"] }.
Request body to create an API key.
Unique within the tenant, case-insensitive. 1 to 200 ASCII letters, digits, hyphens, underscores or dots.
Whether the key is accepted on creation. Defaults to true.
Scopes, area:* wildcards or *. At least one.
Free-form labels. None when omitted.
API key created, with its one-time token.
Created key, including its token.
Key name; immutable.
Whether the key is accepted. A disabled key is kept but refused.
Permissions as granted; wildcards are not expanded.
Whether the platform generated the key for one of its own components, a device for example. The admin console hides internal keys; false when absent.
Free-form labels used to organize keys. A device's key carries the device tag.
API key; shown only once.
Name, permissions or tags invalid. Names starting with internal-device- are reserved. At most 20 tags, each at most 50 characters.
The caller is not authenticated.
The key would grant a permission the caller does not hold.
The tenant does not exist.
A key with this name already exists.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
POST /api/{tenantId}/admin/apiKeys HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"name": "text",
"enabled": true,
"permissions": [
"text"
],
"tags": [
"text"
]
}{
"token": "text",
"name": "text",
"enabled": true,
"permissions": [
"text"
],
"internal": true,
"tags": [
"text"
]
}API key returned.
API key definition. The key value is never returned.
The caller is not authenticated.
The caller lacks the tenant.apiKey:read scope.
API key not found, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
GET /api/{tenantId}/admin/apiKeys/{keyName} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"name": "text",
"enabled": true,
"permissions": [
"text"
],
"internal": true,
"tags": [
"text"
]
}Replaces enabled and permissions, and tags when sent; the name and the token do not change.
Key name, case-insensitive.
Request body to update an API key.
Whether the key is accepted.
Replaces the current permissions. At least one.
Replaces the current tags. Omitted keeps them; an empty list clears them.
API key updated.
API key definition. The key value is never returned.
No permission given, more than 20 tags, or a tag over 50 characters.
The caller is not authenticated.
The change would grant a permission the caller does not hold.
API key not found, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
PUT /api/{tenantId}/admin/apiKeys/{keyName} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"enabled": true,
"permissions": [
"text"
],
"tags": [
"text"
]
}{
"name": "text",
"enabled": true,
"permissions": [
"text"
],
"internal": true,
"tags": [
"text"
]
}Requests using the key are refused from then on.
Key name, case-insensitive.
API key deleted.
No content
The caller is not authenticated.
The caller lacks the tenant.apiKey:write scope.
API key not found, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
DELETE /api/{tenantId}/admin/apiKeys/{keyName} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated

