Service accounts
Create a service account
POST
/v1/workspaces/{workspaceId}/service-accountsCreates 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
workspaceIdstring
The workspace id.
Request body
namestring
Display name.
descriptionstring (optional)
Optional notes.
rolestring (optional)
Workspace role for keys this account owns. Defaults to viewer. One of: viewer, editor, admin.