Skip to main content
GET
/
deployment
Get deployment configuration
curl --request GET \
  --url https://api.wacht.dev/deployment \
  --cookie session_id=
{
  "status": 200,
  "message": "",
  "data": {
    "id": "999999999999999999",
    "name": "Production",
    "backend_host": "api.wacht.dev",
    "enabled": true,
    "b2b_settings": {
      "organizations_enabled": true,
      "workspaces_enabled": true,
      "limit_org_creation_per_user": false,
      "max_orgs_per_user": 10,
      "limit_workspace_creation_per_org": true,
      "workspaces_per_org_count": 5,
      "default_org_creator_role_id": "111111111111111111",
      "enforce_mfa_per_org_enabled": false,
      "ip_allowlist_per_org_enabled": false,
      "enforce_mfa_per_workspace_enabled": false,
      "ip_allowlist_per_workspace_enabled": false
    },
    "ui_settings": {
      "default_organization_profile_image_url": "https://cdn.wacht.dev/default-org.png",
      "default_workspace_profile_image_url": "https://cdn.wacht.dev/default-ws.png",
      "theme": "light",
      "primary_color": "#4f46e5",
      "logo_url": "<string>"
    },
    "created_at": "2024-01-15T10:30:00Z",
    "updated_at": "2024-01-15T10:30:00Z"
  },
  "session": {
    "id": "123456789012345678",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "errors": [
    {
      "code": "INVALID_CREDENTIALS",
      "message": "Invalid credentials. Please try again."
    }
  ]
}

Authorizations

session_id
string
cookie
required

Session-based authentication using cookies

Response

Deployment configuration retrieved

status
integer

HTTP status code

Example:

200

message
string

Response message (empty on success)

Example:

""

data
object
session
object

Minimal session info included in every response

errors
object[] | null

Error details (null on success)