Get workspace API key
Get the API key for a specific workspace. Only organization admins and workspace owners can access this endpoint.
Request schema
Path parameters
workspace_id
integerrequired
ID of the workspace
Header parameters
Authorization
stringrequired
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Http + 1.1
GET
https://app.getcensus.com/api/v1/workspaces/{workspace_id}/api_key
GET /api/v1/workspaces/{workspace_id}/api_key HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Host: app.getcensus.com
Responses
200
Successfully retrieved the workspace API key.
403
Access denied - user does not have permission to view the API key.
404
Workspace not found.
200
api_key
string
The API key of the workspace.
example:
{ "api_key": "YourAPIKeyHere" }