Workspace
The one workspace a workspace application is authorized to read: its ID, name and organization ID.
Read the workspace bound to this application
GET https://couldfocus.com/api/v1/workspace
The workspace authorized for the key’s application. Requires a workspace application, which only the organization’s owner can create. The grant ends when the organization gets a new owner or is deleted.
Authentication
A bearer key with the workspace:read permission.
Parameters
Idempotency-Keyheader- string, UUID, optional A UUID you generate. Send the same value with the same key, path and parameters to retry. Within 400 days of a success, the retry returns the same result for zero units, or 409 when the data changed. Omission starts a new request.
Request body
None. Send GET with no body.
Response
- 200
{"data": Workspace}A committed metadata result, or a verified retry.- Headers
X-Request-Id,X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset
Errors
- 400
invalid_request- 401
invalid_api_key- 402
api_access_unavailable- 403
insufficient_scope- 404
route_not_found,document_not_found- 405
method_not_allowed- 409
idempotency_conflict,result_changed- 429
rate_limit_exceeded,credential_rate_limited,authentication_throttled,request_limit_reached- 503
api_busy,api_unavailable
Example
printf 'Authorization: Bearer %s\n' "$FOCUS_API_KEY" |
curl --silent --show-error --fail-with-body --header @- \
'https://couldfocus.com/api/v1/workspace'{"data":{"id":"d50b28ed-0939-4f24-b559-711001931c3a","name":"Methods","organizationId":"0d1ca340-b444-49e6-8bf7-c24dc3482ddc"}}The Workspace object
id- string, UUID, always present
name- string, always present
organizationId- string, UUID, always present