Skip to main content
The workspace bootstrap endpoint is the recommended first REST call. It proves that the API key is valid, resolves the active workspace, and returns client setup state.

Retrieve Bootstrap Context

GET /api/client/bootstrap
curl https://useorgx.com/api/client/bootstrap \
  -H "Authorization: Bearer $ORGX_API_KEY" \
  -H "Accept: application/json"

Query Parameters

ParameterTypeDescription
source_clientstringOptional client name, for example cursor, openclaw, or custom.
skill_packstringOptional skill pack name to include in setup hints.
required_capabilitiesstring[]Repeatable query param for capabilities the client needs.
capability_hintsstring[]Repeatable query param for requested setup hints.

Response

{
  "ok": true,
  "data": {
    "workspace": {
      "id": "d85d7e6f-58f2-4637-b3a0-3cf2c3b8a638",
      "name": "Acme"
    },
    "sourceClient": "custom",
    "setup": {
      "ready": true
    },
    "capabilities": []
  }
}

Bootstrap with POST

Use POST when the capability arrays are easier to send as JSON.
POST /api/client/bootstrap
curl https://useorgx.com/api/client/bootstrap \
  -X POST \
  -H "Authorization: Bearer $ORGX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source_client": "custom",
    "required_capabilities": ["github", "org-memory"]
  }'

Errors

StatusMeaning
401API key missing, invalid, or revoked.
500Workspace or database context could not be resolved.