API keys

List API keys

GET/v1/workspaces/{workspaceId}/api-keys

Lists API keys. owner=me returns the caller's personal keys and needs a viewer key. owner=service_account requires an admin key and serviceAccountId. Secrets are never returned.

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.

Query parameters

owner

string (optional)

Which keys to list. Defaults to me. One of: me, service_account.

serviceAccountId

string (optional)

Required when owner is service_account.

Was this page helpful?