okaeDocs
APIExperimental

API reference · v1

Get workspace status

GET
/api/v1/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
AuthorizationBearer <token>

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  }}