API reference · v1
Get workspace status
Check available and reserved credits, processing state and the number of connected repositories visible to the owner. The session selects the workspace.
Authorization
apiSession Owner credential for a single workspace. Expires after seven days or on revocation.
In: header
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/workspace/status"{ "workspace": { "id": "befd47ea-81e8-4413-9684-54493256f63c", "name": "octo-example" }, "service_state": "active", "processing_enabled": true, "connected_repositories": 3, "credits": { "available": 98, "reserved": 1 }}Revoke the current API session POST
Invalidate the bearer credential used for this request. Owners can also revoke sessions through the dashboard.
Resolve repository setup status GET
Find a repository in the signed-in workspace by its Git remote. When the repository cannot be identified in scope, return the same generic setup action as for an unknown repository. No name, binding, or assessment from another workspace is revealed. Unsupported hosts are rejected without a request to that host. A failed provider read is an error.