Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encrata.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Workspaces are the top-level organizational unit in Encrata. Each workspace has its own:
  • API keys and usage quotas
  • Team members with role-based access
  • Monitors, workflows, and contact lists
  • Billing and credit balance

Workspace Management

List Workspaces

GET /api/workspaces
Returns all workspaces the authenticated user belongs to.

Create Workspace

POST /api/workspaces
FieldTypeRequiredDescription
namestringYesWorkspace display name
slugstringNoURL-friendly identifier (auto-generated if omitted)

Update Workspace

PUT /api/workspaces
FieldTypeDescription
namestringNew workspace name
slugstringNew slug
logostringLogo URL

Delete Workspace

DELETE /api/workspaces
This permanently deletes the workspace and all its data. Requires OTP verification.

Switch Workspace

POST /api/workspaces/switch
FieldTypeRequiredDescription
workspace_idstringYesID of the workspace to switch to

Team Members

List Members

GET /api/workspaces/members
Returns all members of the current workspace with their roles. Response:
[
  {
    "id": "user_abc",
    "email": "alice@company.com",
    "name": "Alice",
    "role": "admin",
    "joined_at": "2026-01-15T10:00:00Z"
  }
]

Invite Member

POST /api/workspaces/members
FieldTypeRequiredDescription
emailstringYesEmail address to invite
rolestringYesRole: admin, member, or readonly
The invited user receives an email with a link to accept the invitation.

Update Member Role

PUT /api/workspaces/members
FieldTypeRequiredDescription
user_idstringYesUser ID to update
rolestringYesNew role: admin, member, or readonly

Remove Member

DELETE /api/workspaces/members
FieldTypeRequiredDescription
user_idstringYesUser ID to remove

Leave Workspace

POST /api/workspaces/leave
Leave the current workspace. Requires OTP verification. Cannot leave if you’re the only admin.

Accept Invite

POST /api/workspaces/accept
Public endpoint — accepts a workspace invitation using the token from the invite email.
FieldTypeRequiredDescription
tokenstringYesInvitation token from email

Roles

RolePermissions
adminFull access — manage members, billing, SSO, workspace settings
memberUse all features — lookups, workflows, monitors, API keys
readonlyView-only access — cannot create or modify resources

SSO (Single Sign-On)

Enterprise workspaces can configure SSO for seamless team authentication.

List SSO Connections

GET /api/sso/connections

Create SSO Connection

POST /api/sso/connections
FieldTypeRequiredDescription
providerstringYesSSO provider: saml, oidc
namestringYesDisplay name
domainstringYesEmail domain to match
configobjectYesProvider-specific configuration

Update SSO Connection

PUT /api/sso/connections

Delete SSO Connection

DELETE /api/sso/connections

Test SSO Connection

POST /api/sso/test
Validates the SSO configuration by attempting a test authentication flow.