Client Admin API Keys
Reference for the client_admin_api_keys endpoints of the Surfmeter API.
Surfmeter API – Client Admin API Keys v1
The Surfmeter API lets you manage clients, users, capabilities, measurements, and organization-wide settings programmatically.
Servers
| Description | URL |
|---|---|
| https://surfmeter-server.{host}/client_admin_api/v1 | https://surfmeter-server.{host}/client_admin_api/v1 |
Client Admin API Keys
GET /client_admin_api_keys
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
Response 200 OK
- application/json
{
"client_admin_api_keys": [
{
"id": 0,
"name": "string",
"valid_from": "string",
"valid_until": "string",
"key_preview": "string",
"effective_role": "string",
"last_used_at": "string",
"created_at": "string",
"client_admin_user_id": 0
}
]
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
POST /client_admin_api_keys
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
Request body
- application/json
{
"name": "string",
"valid_until": "2026-01-15T10:30:00Z",
"effective_role": "org_admin"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the request body
Response 201 Created
- application/json
{
"client_admin_api_key": {
"id": 0,
"valid_from": "2026-01-15T10:30:00Z",
"valid_until": "2026-01-15T10:30:00Z",
"name": "string",
"api_key": "string",
"key_preview": "string",
"effective_role": "string",
"last_used_at": "string",
"created_at": "string",
"client_admin_user_id": 0
}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
GET /client_admin_api_keys/{id}
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
- application/json
{
"client_admin_api_key": {
"id": 0,
"valid_from": "2026-01-15T10:30:00Z",
"valid_until": "2026-01-15T10:30:00Z",
"name": "string",
"key_preview": "string",
"effective_role": "string",
"last_used_at": "string",
"created_at": "string",
"client_admin_user_id": 0
}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.Schema of the response body
DELETE /client_admin_api_keys/{id}
Input parameters
| Parameter | In | Type | Default | Nullable | Description |
|---|---|---|---|---|---|
ApiKeyAuth |
header | string | N/A | No | API key used on every request. Create keys in the Surfmeter Dashboard under Keys → Surfmeter API Keys. |
id |
path | string | No |
Response 200 OK
- application/json
Schema of the response body
{
"description": "Response for client admin API key destroy action",
"type": "object",
"properties": {},
"additionalProperties": false
}
Schemas
ClientAdminApiKeyCreateData
| Name | Type |
|---|---|
effective_role |
string |
name |
string |
valid_until |
string(date-time) |
ClientAdminApiKeyCreateResponse
| Name | Type |
|---|---|
client_admin_api_key |
Properties: id, valid_from, valid_until, name, api_key, key_preview, effective_role, last_used_at, created_at, client_admin_user_id |
ClientAdminApiKeyDestroyResponse
ClientAdminApiKeyIndexResponse
| Name | Type |
|---|---|
client_admin_api_keys |
Array<Properties: id, name, valid_from, valid_until, key_preview, effective_role, last_used_at, created_at, client_admin_user_id> |
ClientAdminApiKeyShowResponse
| Name | Type |
|---|---|
client_admin_api_key |
Properties: id, valid_from, valid_until, name, key_preview, effective_role, last_used_at, created_at, client_admin_user_id |
Security schemes
<tr>
<td>ApiKeyAuth</td>
<td>apiKey</td>
<td></td>
<td>API key used on every request. Create keys in the Surfmeter Dashboard
under Keys → Surfmeter API Keys.
</tbody>
| Name | Type | Scheme | Description |
|---|