Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

API keys

List API keys

get
/api/{tenantId}/admin/apiKeys

Ordered by name.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Responses
200

API keys returned.

API key definition. The key value is never returned.

or
get/api/{tenantId}/admin/apiKeys
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"
    ]
  }
]

Create API key

post
/api/{tenantId}/admin/apiKeys

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"] }.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

Request body to create an API key.

namestring · min: 1 · max: 200Required

Unique within the tenant, case-insensitive. 1 to 200 ASCII letters, digits, hyphens, underscores or dots.

enabledbooleanOptional

Whether the key is accepted on creation. Defaults to true.

permissionsstring[]Optional

Scopes, area:* wildcards or *. At least one.

tagsstring[] · max: 20Optional

Free-form labels. None when omitted.

Responses
201

API key created, with its one-time token.

Created key, including its token.

namestringRequired

Key name; immutable.

enabledbooleanRequired

Whether the key is accepted. A disabled key is kept but refused.

permissionsstring[]Required

Permissions as granted; wildcards are not expanded.

internalbooleanOptional

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.

tagsstring[]Optional

Free-form labels used to organize keys. A device's key carries the device tag.

tokenstringRequired

API key; shown only once.

post/api/{tenantId}/admin/apiKeys
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"
  ]
}

Get API key

get
/api/{tenantId}/admin/apiKeys/{keyName}
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
keyNamestringRequired
tenantIdstringRequired
Responses
200

API key returned.

API key definition. The key value is never returned.

or
get/api/{tenantId}/admin/apiKeys/{keyName}
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"
  ]
}

Update API key

put
/api/{tenantId}/admin/apiKeys/{keyName}

Replaces enabled and permissions, and tags when sent; the name and the token do not change.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
keyNamestringRequired

Key name, case-insensitive.

tenantIdstringRequired
Body

Request body to update an API key.

enabledbooleanRequired

Whether the key is accepted.

permissionsstring[]Optional

Replaces the current permissions. At least one.

tagsstring[] · max: 20 · nullableOptional

Replaces the current tags. Omitted keeps them; an empty list clears them.

Responses
200

API key updated.

API key definition. The key value is never returned.

or
put/api/{tenantId}/admin/apiKeys/{keyName}
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"
  ]
}

Delete API key

delete
/api/{tenantId}/admin/apiKeys/{keyName}

Requests using the key are refused from then on.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
keyNamestringRequired

Key name, case-insensitive.

tenantIdstringRequired
Responses
204

API key deleted.

No content

delete/api/{tenantId}/admin/apiKeys/{keyName}
DELETE /api/{tenantId}/admin/apiKeys/{keyName} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Last updated