Skip to main content

Client Admin Users

Reference for the client_admin_users endpoints of the Surfmeter API.

Surfmeter API – Client Admin Users 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 Users​


GET /client_admin_users​

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

{
"users": [
{
"id": 0,
"email": "user@example.com",
"username": "string",
"role": "org_admin",
"first_name": "string",
"last_name": "string",
"ai_usage_accepted": true,
"ai_custom_prompt": "string",
"last_visited_dashboard_version": "string",
"dashboard_whats_new_disabled": true,
"pending_email": "string",
"pending_email_token_sent_at": "2026-01-15T10:30:00Z",
"pending_email_state": "active",
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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
{
"description": "Response for client admin user index action",
"type": "object",
"required": [
"users"
],
"properties": {
"users": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"email",
"username",
"role"
],
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email",
"example": "user@example.com"
},
"username": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"org_admin",
"admin",
"editor",
"viewer"
]
},
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"ai_usage_accepted": {
"type": "boolean",
"nullable": true
},
"ai_custom_prompt": {
"type": "string",
"nullable": true
},
"last_visited_dashboard_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$",
"nullable": true
},
"dashboard_whats_new_disabled": {
"type": "boolean"
},
"pending_email": {
"type": "string",
"nullable": true
},
"pending_email_token_sent_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"example": "2026-01-15T10:30:00Z"
},
"pending_email_state": {
"type": "string",
"enum": [
"active",
"expired",
null
],
"nullable": true
},
"notification_config": {
"type": "object",
"description": "Per-user opt-in/out for each notification type. Keys are optional so the schema does not break as keys are added or removed.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}
}
}
}

POST /client_admin_users​

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

{
"email": "user@example.com",
"username": "string",
"role": "org_admin",
"first_name": "string",
"last_name": "string",
"notify_user": true,
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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 request body
{
"description": "Data for client admin user create action",
"type": "object",
"required": [
"email",
"username",
"role"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"example": "user@example.com"
},
"username": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"org_admin",
"admin",
"editor",
"viewer"
]
},
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"notify_user": {
"type": "boolean",
"description": "When true, email the new user that their account has been created. Defaults to false when omitted."
},
"notification_config": {
"type": "object",
"description": "Per-user opt-in/out for each notification type. Omit to accept server defaults: client_offline enabled and anomaly_events disabled.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}

Response 201 Created

{
"user": {
"id": 0,
"email": "user@example.com",
"username": "string",
"role": "org_admin",
"first_name": "string",
"last_name": "string",
"ai_usage_accepted": true,
"ai_custom_prompt": "string",
"last_visited_dashboard_version": "string",
"dashboard_whats_new_disabled": true,
"pending_email": "string",
"pending_email_token_sent_at": "2026-01-15T10:30:00Z",
"pending_email_state": "active",
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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
{
"description": "Response for client admin user create action",
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"type": "object",
"required": [
"id",
"email",
"username",
"role"
],
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email",
"example": "user@example.com"
},
"username": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"org_admin",
"admin",
"editor",
"viewer"
]
},
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"ai_usage_accepted": {
"type": "boolean",
"nullable": true
},
"ai_custom_prompt": {
"type": "string",
"nullable": true
},
"last_visited_dashboard_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$",
"nullable": true
},
"dashboard_whats_new_disabled": {
"type": "boolean"
},
"pending_email": {
"type": "string",
"nullable": true
},
"pending_email_token_sent_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"example": "2026-01-15T10:30:00Z"
},
"pending_email_state": {
"type": "string",
"enum": [
"active",
"expired",
null
],
"nullable": true
},
"notification_config": {
"type": "object",
"description": "Per-user opt-in/out for each notification type. Keys are optional so the schema does not break as keys are added or removed.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}
}
}

GET /client_admin_users/{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

{
"user": {
"id": 0,
"email": "user@example.com",
"username": "string",
"role": "org_admin",
"first_name": "string",
"last_name": "string",
"ai_usage_accepted": true,
"ai_custom_prompt": "string",
"last_visited_dashboard_version": "string",
"dashboard_whats_new_disabled": true,
"pending_email": "string",
"pending_email_token_sent_at": "2026-01-15T10:30:00Z",
"pending_email_state": "active",
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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
{
"description": "Response for client admin user show action",
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"type": "object",
"required": [
"id",
"email",
"username",
"role"
],
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email",
"example": "user@example.com"
},
"username": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"org_admin",
"admin",
"editor",
"viewer"
]
},
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"ai_usage_accepted": {
"type": "boolean",
"nullable": true
},
"ai_custom_prompt": {
"type": "string",
"nullable": true
},
"last_visited_dashboard_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$",
"nullable": true
},
"dashboard_whats_new_disabled": {
"type": "boolean"
},
"pending_email": {
"type": "string",
"nullable": true
},
"pending_email_token_sent_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"example": "2026-01-15T10:30:00Z"
},
"pending_email_state": {
"type": "string",
"enum": [
"active",
"expired",
null
],
"nullable": true
},
"notification_config": {
"type": "object",
"description": "Per-user opt-in/out for each notification type. Keys are optional so the schema does not break as keys are added or removed.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}
}
}

PUT /client_admin_users/{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

{
"first_name": "string",
"last_name": "string",
"ai_usage_accepted": true,
"ai_custom_prompt": "string",
"last_visited_dashboard_version": "string",
"dashboard_whats_new_disabled": true,
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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 request body
{
"description": "Request data for client admin user update action",
"type": "object",
"properties": {
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"ai_usage_accepted": {
"type": "boolean",
"nullable": true
},
"ai_custom_prompt": {
"type": "string",
"nullable": true
},
"last_visited_dashboard_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$",
"nullable": true
},
"dashboard_whats_new_disabled": {
"type": "boolean"
},
"notification_config": {
"type": "object",
"description": "Partial update accepted: only the keys present in this hash are written; others retain their stored value.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}

Response 200 OK

{
"user": {
"id": 0,
"email": "user@example.com",
"username": "string",
"role": "org_admin",
"first_name": "string",
"last_name": "string",
"ai_usage_accepted": true,
"ai_custom_prompt": "string",
"last_visited_dashboard_version": "string",
"dashboard_whats_new_disabled": true,
"pending_email": "string",
"pending_email_token_sent_at": "2026-01-15T10:30:00Z",
"pending_email_state": "active",
"notification_config": {
"anomaly_events": true,
"client_offline": true,
"client_degraded": true,
"study_execution_failures": true,
"anomaly_events_frequency": "immediate",
"anomaly_events_digest_hours": 0,
"anomaly_events_digest_interval_unit": "hour",
"anomaly_events_digest_interval_count": 0,
"anomaly_events_digest_at_time": "string",
"anomaly_events_digest_day_of_week": 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
{
"description": "Response for client admin user update action",
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"type": "object",
"required": [
"id",
"email",
"username",
"role"
],
"properties": {
"id": {
"type": "integer"
},
"email": {
"type": "string",
"format": "email",
"example": "user@example.com"
},
"username": {
"type": "string"
},
"role": {
"type": "string",
"enum": [
"org_admin",
"admin",
"editor",
"viewer"
]
},
"first_name": {
"type": "string",
"nullable": true
},
"last_name": {
"type": "string",
"nullable": true
},
"ai_usage_accepted": {
"type": "boolean",
"nullable": true
},
"ai_custom_prompt": {
"type": "string",
"nullable": true
},
"last_visited_dashboard_version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[-+][0-9A-Za-z.-]+)?$",
"nullable": true
},
"dashboard_whats_new_disabled": {
"type": "boolean"
},
"pending_email": {
"type": "string",
"nullable": true
},
"pending_email_token_sent_at": {
"type": "string",
"format": "date-time",
"nullable": true,
"example": "2026-01-15T10:30:00Z"
},
"pending_email_state": {
"type": "string",
"enum": [
"active",
"expired",
null
],
"nullable": true
},
"notification_config": {
"type": "object",
"description": "Per-user opt-in/out for each notification type. Keys are optional so the schema does not break as keys are added or removed.",
"properties": {
"anomaly_events": {
"type": "boolean"
},
"client_offline": {
"type": "boolean"
},
"client_degraded": {
"type": "boolean"
},
"study_execution_failures": {
"type": "boolean"
},
"anomaly_events_frequency": {
"type": "string",
"enum": [
"immediate",
"digest"
]
},
"anomaly_events_digest_hours": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_interval_unit": {
"type": "string",
"enum": [
"hour",
"day",
"week"
]
},
"anomaly_events_digest_interval_count": {
"type": "integer",
"minimum": 1,
"maximum": 168
},
"anomaly_events_digest_at_time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"anomaly_events_digest_day_of_week": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
}
}
}
}
}
}

DELETE /client_admin_users/{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

Schema of the response body
{
"description": "Response for client admin user destroy action",
"type": "object",
"properties": {}
}

POST /client_admin_users/{id}/email_change​

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


DELETE /client_admin_users/{id}/email_change​

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


Schemas​

ClientAdminUserCreateData​

Name Type
email string()
first_name string| null
last_name string| null
notification_config Properties: anomaly_events, client_offline, client_degraded, study_execution_failures, anomaly_events_frequency, anomaly_events_digest_hours, anomaly_events_digest_interval_unit, anomaly_events_digest_interval_count, anomaly_events_digest_at_time, anomaly_events_digest_day_of_week
notify_user boolean
role string
username string

ClientAdminUserCreateResponse​

Name Type
user Properties: id, email, username, role, first_name, last_name, ai_usage_accepted, ai_custom_prompt, last_visited_dashboard_version, dashboard_whats_new_disabled, pending_email, pending_email_token_sent_at, pending_email_state, notification_config

ClientAdminUserDestroyResponse​

ClientAdminUserIndexResponse​

Name Type
users Array<Properties: id, email, username, role, first_name, last_name, ai_usage_accepted, ai_custom_prompt, last_visited_dashboard_version, dashboard_whats_new_disabled, pending_email, pending_email_token_sent_at, pending_email_state, notification_config>

ClientAdminUserShowResponse​

Name Type
user Properties: id, email, username, role, first_name, last_name, ai_usage_accepted, ai_custom_prompt, last_visited_dashboard_version, dashboard_whats_new_disabled, pending_email, pending_email_token_sent_at, pending_email_state, notification_config

ClientAdminUserUpdateData​

Name Type
ai_custom_prompt string| null
ai_usage_accepted boolean| null
dashboard_whats_new_disabled boolean
first_name string| null
last_name string| null
last_visited_dashboard_version string| null
notification_config Properties: anomaly_events, client_offline, client_degraded, study_execution_failures, anomaly_events_frequency, anomaly_events_digest_hours, anomaly_events_digest_interval_unit, anomaly_events_digest_interval_count, anomaly_events_digest_at_time, anomaly_events_digest_day_of_week

ClientAdminUserUpdateResponse​

Name Type
user Properties: id, email, username, role, first_name, last_name, ai_usage_accepted, ai_custom_prompt, last_visited_dashboard_version, dashboard_whats_new_disabled, pending_email, pending_email_token_sent_at, pending_email_state, notification_config

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