Skip to main content

Get organisation

GET /api/org
{"org": {"id": "...", "name": "Acme Corp", "slug": "acme-corp", "created_at": "..."}}

Update organisation

PUT /api/org
{"name": "Acme Group"}

Settings

List settings

GET /api/org/settings
Returns all settings. Secret values are masked.
{
  "settings": {
    "ai_api_key": "••••••••",
    "slack_bot_token": "••••••••"
  },
  "configured": {
    "ai_api_key": true,
    "slack_bot_token": true,
    "slack_app_token": false
  }
}

Update a setting

PUT /api/org/settings/:key
{"value": "your-credential-here"}
Common keys: ai_api_key, ai_provider, slack_bot_token, slack_app_token.

Test integration

POST /api/org/integrations/test
Request body:
FieldTypeDescription
typestringIntegration type (e.g. slack)
credentialsobjectCredentials to test (e.g. {"bot_token": "xoxb-..."})
Response:
// Success
{"ok": true, "detail": {"bot_name": "SupaProxy", "team": "Acme Corp"}}

// Failure
{"ok": false, "error": "Slack error: invalid_auth"}

List users

GET /api/org/users
{
  "users": [
    {"id": "...", "name": "Jane", "email": "jane@acme.com", "org_role": "admin", "created_at": "..."}
  ]
}

List teams

GET /api/teams
{"teams": [{"id": "...", "name": "Customer Support"}]}