Service accounts

Create a service account

POST/v1/workspaces/{workspaceId}/service-accounts

Creates a service account. Requires an admin key. The default role is viewer. Creation does not issue an API key.

Authentication

Send your Spark API key with every request. The value is the full bearer token Spark returned when you created the key. See Authentication.

Authorization: Bearer <SPARK_API_KEY>

Path parameters

workspaceId

string

The workspace id.

Request body

name

string

Display name.

description

string (optional)

Optional notes.

role

string (optional)

Workspace role for keys this account owns. Defaults to viewer. One of: viewer, editor, admin.

Was this page helpful?