Registration Keys
Reference for the registration_keys endpoints of the Surfmeter API.
Surfmeter API – Registration 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 |
Registration Keys
GET /registration_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
{
"registration_keys": [
{
"id": 0,
"registration_key": "string",
"comment": "string",
"valid_from": "string",
"valid_until": "string",
"num_registrations_left": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
],
"capability": {
"id": 0,
"name": "string",
"comment": "string",
"allowed_measurement_types": [
"string"
],
"allowed_measurement_subjects": [
"string"
],
"forbidden_measurement_types": [
"string"
],
"forbidden_measurement_subjects": [
"string"
]
},
"clients_count": 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 /registration_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
{
"comment": "string",
"valid_until": "string",
"num_registrations_left": 0,
"capability_id": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
]
}
⚠️ 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
{
"registration_key": {
"id": 0,
"registration_key": "string",
"comment": "string",
"valid_from": "string",
"valid_until": "string",
"num_registrations_left": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
],
"capability": {
"id": 0,
"name": "string",
"comment": "string",
"allowed_measurement_types": [
"string"
],
"allowed_measurement_subjects": [
"string"
],
"forbidden_measurement_types": [
"string"
],
"forbidden_measurement_subjects": [
"string"
]
}
}
}
⚠️ 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 /registration_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
{
"registration_key": {
"id": 0,
"registration_key": "string",
"comment": "string",
"valid_from": "string",
"valid_until": "string",
"num_registrations_left": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
],
"capability": {
"id": 0,
"name": "string",
"comment": "string",
"allowed_measurement_types": [
"string"
],
"allowed_measurement_subjects": [
"string"
],
"forbidden_measurement_types": [
"string"
],
"forbidden_measurement_subjects": [
"string"
]
},
"clients": [
{
"id": 0,
"uuid": "string",
"label": "string"
}
]
}
}
⚠️ 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
PUT /registration_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 |
Request body
- application/json
{
"comment": "string",
"valid_until": "string",
"num_registrations_left": 0,
"capability_id": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
]
}
⚠️ 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 200 OK
- application/json
{
"registration_key": {
"id": 0,
"registration_key": "string",
"comment": "string",
"valid_from": "string",
"valid_until": "string",
"num_registrations_left": 0,
"usage_limit_days": 0,
"testing": true,
"allowed_client_types": [
"string"
],
"capability": {
"id": 0,
"name": "string",
"comment": "string",
"allowed_measurement_types": [
"string"
],
"allowed_measurement_subjects": [
"string"
],
"forbidden_measurement_types": [
"string"
],
"forbidden_measurement_subjects": [
"string"
]
}
}
}
⚠️ 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 /registration_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
{
"type": "object",
"properties": {},
"required": []
}
Schemas
RegistrationKeyCreateData
| Name | Type |
|---|---|
allowed_client_types |
Array<string> |
capability_id |
integer| null |
comment |
string| null |
num_registrations_left |
integer| null |
testing |
boolean| null |
usage_limit_days |
integer| null |
valid_until |
string| null |
RegistrationKeyCreateResponse
| Name | Type |
|---|---|
registration_key |
Properties: id, registration_key, comment, valid_from, valid_until, num_registrations_left, usage_limit_days, testing, allowed_client_types, capability |
RegistrationKeyDestroyResponse
RegistrationKeyIndexResponse
| Name | Type |
|---|---|
registration_keys |
Array<Properties: id, registration_key, comment, valid_from, valid_until, num_registrations_left, usage_limit_days, testing, allowed_client_types, capability, clients_count> |
RegistrationKeyShowResponse
| Name | Type |
|---|---|
registration_key |
Properties: id, registration_key, comment, valid_from, valid_until, num_registrations_left, usage_limit_days, testing, allowed_client_types, capability, clients |
RegistrationKeyUpdateData
| Name | Type |
|---|---|
allowed_client_types |
Array<string> |
capability_id |
integer| null |
comment |
string| null |
num_registrations_left |
integer| null |
testing |
boolean| null |
usage_limit_days |
integer| null |
valid_until |
string| null |
RegistrationKeyUpdateResponse
| Name | Type |
|---|---|
registration_key |
Properties: id, registration_key, comment, valid_from, valid_until, num_registrations_left, usage_limit_days, testing, allowed_client_types, capability |
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 |
|---|