API reference

Tenant: users, groups, roles and policies

Administer an organization's members, invites, groups, roles, sign-in clients, sign-in logs and sign-in policy.
GET/v1/orgs/:orgId/tenant/access-requests

The organisation's open and recent access requests from its members (tenant:read).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/access-requests' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  requests: {
    requestId: string
    control: "caity.app" | "health.assistant" | "health.category" | "health.sensitive" | "maps.location" | "mirage.caity" | "org.app" | "org.sign_in" | "security.step_up" | "sharing.external" | "vehicles.caity"
    app?: string
    subject?: string
    label: string
    groups?: {
      teamId: string
      name: string
    }[]
    open?: boolean
    allows: string
    note?: string
    status: "pending" | "declined" | "allowed"
    person: {
      userId: string
      name?: string
      email?: string
    }
    createdAt: number
    answeredAt?: number
    answeredBy?: {
      userId: string
      name?: string
    }
  }[]
}
POST/v1/orgs/:orgId/tenant/access-requests/:requestId

Answers an access request (answer, and groupId when it grants through a group); owners and admins only (tenant:write). The person who asked is told.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • requestId

    A Code mode step waiting for your approval (apr_…), as the session's approval.requested event and its pending list give it.

Request body

  • answer"allow" | "decline"required
  • groupIdstring

    Up to 64 characters.

Errors

  • 404That request isn't there any more.
  • 404Organization not found
  • 409That request was answered already.
  • 409They aren't in the organisation any more.
  • 409That request can't be allowed here.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/access-requests/{requestId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "answer": "allow"
  }'
Send it from this page with your session or a key.

Response 200

{
  requestId: string
  status: string
}
GET/v1/orgs/:orgId/tenant/groups

Groups with their size, owners and the roles they grant.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  groups: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }[]
}
POST/v1/orgs/:orgId/tenant/groups

Creates a group; owners default to the person creating it. role is a built-in role members get (not owner).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • namestringrequired

    1–64 characters. Trimmed.

  • slugstring

    Up to 39 characters. Trimmed.

  • descriptionstring

    Up to 500 characters. Trimmed.

  • role"admin" | "developer" | "viewer"
  • customRoleIdsstring[]

    Up to 20 items. Each up to 40 characters.

  • ownerIdsstring[]

    Up to 20 items. Each up to 64 characters.

Errors

  • 400Slugs are lowercase letters, digits and single hyphens.
  • 400Unknown role.
  • 404Organization not found
  • 404Not a member of this organization
  • 404Group not found
  • 409A group with this slug exists.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example"
  }'
Send it from this page with your session or a key.

Response 201

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
GET/v1/orgs/:orgId/tenant/groups/:teamId

Members, owners, granted roles, Serverless App Service and repository access, and app assignments.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

Errors

  • 404Group not found
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
PATCH/v1/orgs/:orgId/tenant/groups/:teamId

Name, description, the built-in role members get (null removes it) and custom roles.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

Request body

  • namestring

    1–64 characters. Trimmed.

  • descriptionstringor null

    Up to 500 characters. Trimmed.

  • role"admin" | "developer" | "viewer"or null
  • customRoleIdsstring[]

    Up to 20 items. Each up to 40 characters.

Errors

  • 400Unknown role.
  • 404Organization not found
  • 404Group not found
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "description": "example",
    "role": "admin"
  }'
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
DELETE/v1/orgs/:orgId/tenant/groups/:teamId

Deletes the group with its memberships, access and assignments (members keep their own roles).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

Errors

  • 404Organization not found
  • 404Group not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

PUT/v1/orgs/:orgId/tenant/groups/:teamId/members/:userId

Adds a member or changes their group role (owner manages the group's members, member).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

  • userId

    A member's user id (usr_…).

Request body

  • role"owner" | "member"

    Default "member".

Errors

  • 404Organization not found
  • 404Group not found
  • 404Not a member of this organization
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}/members/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "member"
  }'
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
DELETE/v1/orgs/:orgId/tenant/groups/:teamId/members/:userId

Takes a member out of the group.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

  • userId

    A member's user id (usr_…).

Errors

  • 404Organization not found
  • 404Group not found
  • 404Not a member of this organization
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}/members/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
PUT/v1/orgs/:orgId/tenant/groups/:teamId/grants/:resourceType/:resourceId

Gives the group write access to one Serverless App Service or repository.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

  • resourceType

    What the protocol is attached to: org, project, space, calendar, mailbox or agent; for a group's access, project or repository.

  • resourceId

    Resource id (res_…); for a group's access, the Serverless App Service id (prj_…) or the repository's resource id.

Errors

  • 400Unknown resource type or principal.
  • 400Unknown resource.
  • 404Group not found
  • 404That Serverless App Service or repository isn't in this organization.
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}/grants/{resourceType}/{resourceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
DELETE/v1/orgs/:orgId/tenant/groups/:teamId/grants/:resourceType/:resourceId

Removes the group's write access to the Serverless App Service or repository.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • teamId

    Group id (team_…).

  • resourceType

    What the protocol is attached to: org, project, space, calendar, mailbox or agent; for a group's access, project or repository.

  • resourceId

    Resource id (res_…); for a group's access, the Serverless App Service id (prj_…) or the repository's resource id.

Errors

  • 400Unknown resource type or principal.
  • 400Unknown resource.
  • 404Group not found
  • 404That Serverless App Service or repository isn't in this organization.
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/groups/{teamId}/grants/{resourceType}/{resourceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  group: {
    customRoleIds: string[]
    members: number
    owners: string[]
    createdAt?: number
    role?: "admin" | "developer" | "viewer"
    description?: string
    teamId: string
    slug: string
    name: string
  }
  members: {
    userId: string
    email?: string
    name?: string
    role: "owner" | "member"
    addedAt?: number
  }[]
  grants: {
    level: "write"
    type: "project"
    id: string
    name: string
  } | {
    level: "write"
    type: "repository"
    id: string
    name: string
  }[]
  apps: string[]
}
GET/v1/orgs/:orgId/tenant/roles

Built-in roles with their scopes, custom roles, and who holds each.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 404Organization not found
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  builtIn: {
    users: string[]
    groups: string[]
    scopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
    groupAssignable: boolean
    id: "admin" | "owner" | "developer" | "viewer"
    name: string
    description: string
  }[]
  custom: {
    users: string[]
    groups: string[]
    scopes: string[]
    createdAt?: number
    updatedAt?: number
    description?: string
    roleId: string
    name: string
  }[]
  assignableScopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
}
POST/v1/orgs/:orgId/tenant/roles

Creates a custom role: a named set of scopes added on top of a member's role.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • namestringrequired

    1–64 characters. Trimmed.

  • descriptionstring

    Up to 500 characters. Trimmed.

  • scopes[]required

    1–100 items.

Errors

  • 400Unknown or platform scopes: …
  • 400Choose at least one scope.
  • 400An organization can have up to 50 custom roles.
  • 409A role with this name exists.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "scopes": []
  }'
Send it from this page with your session or a key.

Response 201

{
  role: {
    name: string
    createdAt?: number
    updatedAt?: number
    orgId: string
    createdBy: string
    scopes: string[]
    description?: string
    roleId: string
  }
}
PATCH/v1/orgs/:orgId/tenant/roles/:roleId

Renames a custom role or changes its scopes (you need every scope it grants, before and after).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • roleId

    A built-in role (owner, admin, developer, viewer) or a custom role id (rol_…); in Mirage, a server role (mrl_…, or the server's id for @everyone).

Request body

  • namestring

    1–64 characters. Trimmed.

  • descriptionstringor null

    Up to 500 characters. Trimmed.

  • scopes[]

    1–100 items.

Errors

  • 400Unknown or platform scopes: …
  • 400Choose at least one scope.
  • 404Role not found
  • 409A role with this name exists.
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles/{roleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "description": "example",
    "scopes": []
  }'
Send it from this page with your session or a key.

Response 200

{
  role: {
    name: string
    createdAt?: number
    updatedAt?: number
    orgId: string
    createdBy: string
    scopes: string[]
    description?: string
    roleId: string
  }
}
DELETE/v1/orgs/:orgId/tenant/roles/:roleId

Deletes a custom role; members and groups holding it lose its scopes.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • roleId

    A built-in role (owner, admin, developer, viewer) or a custom role id (rol_…); in Mirage, a server role (mrl_…, or the server's id for @everyone).

Errors

  • 404Role not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles/{roleId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

POST/v1/orgs/:orgId/tenant/roles/:roleId/assignments

Assigns a role (a built-in role id such as admin, or a custom rol_…) to a member or group. A built-in role replaces a member's role; a group grants one built-in role at most.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • roleId

    A built-in role (owner, admin, developer, viewer) or a custom role id (rol_…); in Mirage, a server role (mrl_…, or the server's id for @everyone).

Request body

  • principalType"user" | "group"required
  • principalIdstringrequired

    1–64 characters.

Errors

  • 400Guests can be developers or viewers.
  • 400Only guests have an access end date.
  • 400Groups can't grant the owner role.
  • 400Unknown role.
  • 404Organization not found
  • 404Not a member of this organization
  • 404Group not found
  • 404Role not found
  • 409An organization needs at least one other active owner first.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles/{roleId}/assignments' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "principalType": "user",
    "principalId": "<principalId>"
  }'
Send it from this page with your session or a key.

Response 200

{
  builtIn: {
    users: string[]
    groups: string[]
    scopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
    groupAssignable: boolean
    id: "admin" | "owner" | "developer" | "viewer"
    name: string
    description: string
  }[]
  custom: {
    users: string[]
    groups: string[]
    scopes: string[]
    createdAt?: number
    updatedAt?: number
    description?: string
    roleId: string
    name: string
  }[]
  assignableScopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
}
DELETE/v1/orgs/:orgId/tenant/roles/:roleId/assignments/:principalType/:principalId

Takes a custom role from a member or group, or the built-in role a group grants.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • roleId

    A built-in role (owner, admin, developer, viewer) or a custom role id (rol_…); in Mirage, a server role (mrl_…, or the server's id for @everyone).

  • principalType

    user or group.

  • principalId

    A person (usr_…) or a group or team (team_…): the member or group a Tenant assignment or a Drive share is for.

Errors

  • 400Unknown resource type or principal.
  • 400Every member has a built-in role: assign another one instead.
  • 400Unknown role.
  • 404Group not found
  • 404Organization not found
  • 404Role not found
  • 404Not a member of this organization
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/roles/{roleId}/assignments/{principalType}/{principalId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  builtIn: {
    users: string[]
    groups: string[]
    scopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
    groupAssignable: boolean
    id: "admin" | "owner" | "developer" | "viewer"
    name: string
    description: string
  }[]
  custom: {
    users: string[]
    groups: string[]
    scopes: string[]
    createdAt?: number
    updatedAt?: number
    description?: string
    roleId: string
    name: string
  }[]
  assignableScopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
}
GET/v1/orgs/:orgId/tenant/apps

The org's sign-in clients (per Serverless App Service) with assignment and secret expiry, MCP clients members connected here, and its keys.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  signIn: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }[]
  mcp: {
    clientId: string
    name: string
    users: {
      userId: string
      scopes: string[]
      lastUsedAt?: number
      connectedAt?: number
    }[]
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    createdBy: string
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
}
GET/v1/orgs/:orgId/tenant/apps/:clientId

One sign-in client: redirect URIs, secret expiry and who is assigned.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

Errors

  • 404App not found
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  app: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }
  assignments: {
    principalType: "user" | "group"
    principalId: string
    label: string
    assignedAt?: number
  }[]
}
PATCH/v1/orgs/:orgId/tenant/apps/:clientId

assignmentRequired: only assigned people and groups can sign in (checked at sign-in and every refresh).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

Request body

  • assignmentRequiredbooleanrequired

Errors

  • 404App not found
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "assignmentRequired": true
  }'
Send it from this page with your session or a key.

Response 200

{
  app: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }
  assignments: {
    principalType: "user" | "group"
    principalId: string
    label: string
    assignedAt?: number
  }[]
}
POST/v1/orgs/:orgId/tenant/apps/:clientId/secret

Replaces the secret (the old one stops at once) with one valid for expiresInDays (0: no expiry); shown once.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

Request body

  • expiresInDaysinteger

    Default 180.

Errors

  • 400Choose a lifetime from the list.
  • 404App not found
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}/secret' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "expiresInDays": 180
  }'
Send it from this page with your session or a key.

Response 200

{
  secretExpiresAt?: number
  clientSecret: string
  app: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }
  assignments: {
    principalType: "user" | "group"
    principalId: string
    label: string
    assignedAt?: number
  }[]
}
POST/v1/orgs/:orgId/tenant/apps/:clientId/assignments

Lets a member or group sign in to an app that requires assignment.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

Request body

  • principalType"user" | "group"required
  • principalIdstringrequired

    1–64 characters.

Errors

  • 404App not found
  • 404Not a member of this organization
  • 404Group not found
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}/assignments' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "principalType": "user",
    "principalId": "<principalId>"
  }'
Send it from this page with your session or a key.

Response 200

{
  app: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }
  assignments: {
    principalType: "user" | "group"
    principalId: string
    label: string
    assignedAt?: number
  }[]
}
DELETE/v1/orgs/:orgId/tenant/apps/:clientId/assignments/:principalType/:principalId

Takes a member's or group's assignment away; their next refresh is refused.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

  • principalType

    user or group.

  • principalId

    A person (usr_…) or a group or team (team_…): the member or group a Tenant assignment or a Drive share is for.

Errors

  • 400Unknown resource type or principal.
  • 404App not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}/assignments/{principalType}/{principalId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  app: {
    createdAt?: number
    lastUsedAt?: number
    secretCreatedAt?: number
    secretExpiresAt?: number
    assignmentRequired: boolean
    assignments: number
    clientUri?: string
    logoUri?: string
    clientId: string
    name: string
    projectId?: string
    project?: string
    redirectUris: string[]
    subjectType: "public" | "pairwise"
  }
  assignments: {
    principalType: "user" | "group"
    principalId: string
    label: string
    assignedAt?: number
  }[]
}
DELETE/v1/orgs/:orgId/tenant/apps/:clientId/connections

Disconnects an MCP client from this org for every member.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • clientId

    Sign-in client id (cli_…).

Errors

  • 404App not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/apps/{clientId}/connections' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant/app-access

Every app the org can switch, with its access (everyone, groups, off), whether the plan has it and how many reach it; and the groups.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/app-access' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  apps: {
    key: string
    label: string
    apps: string[]
    appIds: string[]
    access: "off" | "groups" | "everyone"
    groupIds: string[]
    inPlan: boolean
    reach: number
  }[]
  groups: {
    teamId: string
    name: string
  }[]
  members: number
}
PUT/v1/orgs/:orgId/tenant/app-access/:key

Sets who reaches an app: { access: "everyone" | "groups" | "off", groupIds? }. Owners and admins, themselves; owners and admins always reach it.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

Request body

  • access"everyone" | "groups" | "off"required
  • groupIdsstring[]

    Up to 50 items. Each up to 64 characters.

Errors

  • 400Choose everyone, chosen groups or off.
  • 400Choose at least one group.
  • 400Choose at most 50 groups.
  • 404That app can't be switched here.
  • 404Organization not found
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/app-access/{key}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "access": "everyone"
  }'
Send it from this page with your session or a key.

Response 200

{
  apps: {
    key: string
    label: string
    apps: string[]
    appIds: string[]
    access: "off" | "groups" | "everyone"
    groupIds: string[]
    inPlan: boolean
    reach: number
  }[]
  groups: {
    teamId: string
    name: string
  }[]
  members: number
}
GET/v1/orgs/:orgId/tenant/app-switcher

Every app the org can hide from the switcher (its apps, never Tenant), in the launcher's order, with whether it does.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/app-switcher' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  apps: {
    key: string
    label: string
    hidden: boolean
  }[]
}
PUT/v1/orgs/:orgId/tenant/app-switcher/:key

Hides an app from everyone's switcher in the org ({ hidden: true }) or shows it again. Owners and admins, themselves; audited org_app.switcher.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • key

    Variable name; under marketing journeys a person's key: their email address, mobile (E.164) or rec:<record id>, URL-encoded.

Request body

  • hiddenbooleanrequired

Errors

  • 404That app can't be hidden here.
  • 404Organization not found
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/app-switcher/{key}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "hidden": true
  }'
Send it from this page with your session or a key.

Response 200

{
  apps: {
    key: string
    label: string
    hidden: boolean
  }[]
}
GET/v1/orgs/:orgId/tenant/sign-ins

Members' sign-ins and failed sign-ins, newest first: method, address, approximate place, device.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • cursorstring

    Up to 4,096 characters.

  • limitinteger

    Default 50. 1–100. Coerced from a string.

  • userstring

    Up to 64 characters.

  • result"success" | "failure"

Errors

  • 400Invalid cursor
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sign-ins' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  signIns: {
    eventId: string
    at: number
    userId: string
    user?: string
    result: "success" | "failure"
    method?: string
    locked?: boolean
    client?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    browser?: string
    os?: string
    model?: string
  }[]
  cursor: null | string
}
GET/v1/orgs/:orgId/tenant/policies/assistant

Caity in this org: on or off, the highest mode, the apps she may use; and the choices.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies/assistant' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  policy: {
    enabled: boolean
    maxMode: "ask" | "reads" | "app" | "auto"
    apps: null | ("cloud" | "git" | "mail" | "maps" | "drive" | "photos" | "tenant" | "crm" | "health" | "weather" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "force" | "admin" | "tasks" | "mirage" | "sharing" | "brain" | "agents" | "connectors" | "devdocs")[]
    publicShares?: boolean
  }
  set: boolean
  apps: {
    id: "cloud" | "git" | "mail" | "maps" | "drive" | "photos" | "tenant" | "crm" | "health" | "weather" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "force" | "admin" | "tasks" | "mirage" | "sharing" | "brain" | "agents" | "connectors" | "devdocs"
    label: string
    detail: string
  }[]
  modes: ("ask" | "reads" | "app" | "auto")[]
}
PUT/v1/orgs/:orgId/tenant/policies/assistant

Sets Caity's policy: { enabled, maxMode, apps, publicShares } (apps: null: every app). Narrowing by owners and admins, widening by owners; audited.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • enabledbooleanrequired
  • maxMode"ask" | "reads" | "app" | "auto"required
  • appsstring[]requiredor null

    Up to 40 items. Each up to 32 characters.

  • publicSharesboolean

Errors

  • 404Organization not found
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies/assistant' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "maxMode": "ask",
    "apps": [
      "example"
    ]
  }'
Send it from this page with your session or a key.

Response 200

{
  policy: {
    enabled: boolean
    maxMode: "ask" | "reads" | "app" | "auto"
    apps: null | ("cloud" | "git" | "mail" | "maps" | "drive" | "photos" | "tenant" | "crm" | "health" | "weather" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "force" | "admin" | "tasks" | "mirage" | "sharing" | "brain" | "agents" | "connectors" | "devdocs")[]
    publicShares?: boolean
  }
  set: boolean
  apps: {
    id: "cloud" | "git" | "mail" | "maps" | "drive" | "photos" | "tenant" | "crm" | "health" | "weather" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "force" | "admin" | "tasks" | "mirage" | "sharing" | "brain" | "agents" | "connectors" | "devdocs"
    label: string
    detail: string
  }[]
  modes: ("ask" | "reads" | "app" | "auto")[]
}
GET/v1/orgs/:orgId/tenant/policies/sharing

The sharing policy: how much goes outside the organisation, to which domains, links for how long.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies/sharing' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  policy: {
    externalSharing: "off" | "accounts" | "links"
    allowedDomains: string[]
    linkMaxDays: null | number
  }
  set: boolean
}
PUT/v1/orgs/:orgId/tenant/policies/sharing

Sets it: { externalSharing: off|accounts|links, allowedDomains?, linkMaxDays? }. Narrowing by owners and admins, widening by owners; audited. A change that stops links anyone could open tells their owners (linksStopped: how many).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • externalSharing"off" | "accounts" | "links"required
  • allowedDomainsstring[]or null

    Up to 50 items. Each up to 253 characters.

  • linkMaxDaysintegeror null

    1–365.

Errors

  • 404Organization not found
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies/sharing' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "externalSharing": "off"
  }'
Send it from this page with your session or a key.

Response 200

{
  linksStopped: number
  policy: {
    externalSharing: "off" | "accounts" | "links"
    allowedDomains: string[]
    linkMaxDays: null | number
  }
  set: boolean
}
GET/v1/orgs/:orgId/tenant/policies

The sign-in policy and the members it would leave without access.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 404Organization not found
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  signIn: {
    strength: "any" | "mfa" | "passkey"
    methods: ("passkey" | "apple" | "google" | "password" | "sso")[]
    graceUntil?: number
    sessionHours?: number
  }
  coverage: {
    members: number
    affected: {
      userId: string
      email?: string
      name?: string
      passkeys: number
      textCode: boolean
      authenticator: boolean
    }[]
  }
}
PUT/v1/orgs/:orgId/tenant/policies/sign-in

Sets the sign-in policy (owners): required strength (any, mfa: a passkey or text codes, passkey), allowed methods, a grace period in days and the longest a sign-in lasts in hours.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • strength"any" | "mfa" | "passkey"required
  • methods("password" | "passkey" | "apple" | "google" | "sso")[]required

    1–5 items.

  • graceDaysinteger

    Default 0. 0–90.

  • sessionHoursintegeror null

    1–720.

Errors

  • 400Allow at least one sign-in method.
  • 400Requiring a passkey needs passkeys allowed.
  • 400A grace period is 0 to 90 days.
  • 400Sign-ins can last 1 hour to 30 days.
  • 404Organization not found
  • 409You don't meet this policy yet. Add a passkey first, or give a grace period.
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/policies/sign-in' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "strength": "any",
    "methods": [
      "password"
    ]
  }'
Send it from this page with your session or a key.

Response 200

{
  signIn: {
    strength: "any" | "mfa" | "passkey"
    methods: ("passkey" | "apple" | "google" | "password" | "sso")[]
    graceUntil?: number
    sessionHours?: number
  }
  coverage: {
    members: number
    affected: {
      userId: string
      email?: string
      name?: string
      passkeys: number
      textCode: boolean
      authenticator: boolean
    }[]
  }
}
GET/v1/orgs/:orgId/tenant/keys

Every key of the organization with its creator, scopes, expiry, status and last use (when, address, country, client). Never secrets.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/keys' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  keys: {
    keyId: string
    name: string
    kind: string
    scopes: string[]
    git: boolean
    machine?: string
    createdBy: null | {
      userId: string
      name?: string
      email?: string
    }
    createdAt?: number
    expiresAt?: number
    lastUsedAt?: number
    lastUsedIp?: string
    lastUsedCountry?: string
    lastUsedAgent?: string
    status: "active" | "expired" | "creator_stopped"
  }[]
}
DELETE/v1/orgs/:orgId/tenant/keys/:keyId

Revokes a key of the organization at once; audited as key.revoke.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • keyId

    Key id (key_…).

Errors

  • 404Key not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/keys/{keyId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant/sso

Single sign-on and SCIM: what to give the identity provider (entity id, ACS, metadata, OpenID Connect redirect and SCIM URLs), the verified domains, the identity provider's settings (SAML certificates' subjects and expiry; the OpenID Connect issuer, client id and secret's last four characters), and the SCIM token's last four characters.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sso' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  serviceProvider: {
    entityId: string
    acsUrl: string
    metadataUrl: string
    redirectUri: string
    signInUrl: string
    scimUrl: string
  }
  verifiedDomains: string[]
  sso: null | {
    enabled?: boolean
    protocol: "saml" | "oidc"
    idpEntityId: string
    ssoUrl: string
    certificates: {
      subject: string
      validTo: number
      fingerprint: string
    }[]
    oidc: null | {
      tokenAuth: "none" | "client_secret_basic" | "client_secret_post"
      clientSecretHint?: string
      issuer: string
      clientId: string
    }
    updatedAt?: number
  }
  scim: null | {
    hint: string
    role?: "developer" | "viewer"
    createdAt?: number
    lastUsedAt?: number
  }
}
PUT/v1/orgs/:orgId/tenant/sso

Saves the identity provider and turns it on or off. SAML: entity id, https sign-in URL, one or two signing certificates (left out keeps the saved ones). OpenID Connect (protocol: "oidc"): the issuer (its discovery document is read and must name it), client id and client secret (sealed; left out keeps it for the same client, null for a public client). The other protocol's settings are kept. On needs a verified domain. Owners.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Enter the client ID the identity provider gave the app.
  • 400Couldn't read the issuer's discovery document (/.well-known/openid-configuration). Check the issuer URL.
  • 400Enter the identity provider's sign-in URL.
  • 400The sign-in URL must use HTTPS.
  • 400Enter the identity provider's entity ID (its issuer).
  • 400Add one signing certificate, or two while it rolls over.
  • 400Paste the identity provider's signing certificate (PEM or base64).
  • 400That isn't an X.509 certificate.
  • 400That certificate expired on ….
  • 409Verify a domain in Domains first: single sign-on vouches only for addresses on your verified domains.
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sso' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  serviceProvider: {
    entityId: string
    acsUrl: string
    metadataUrl: string
    redirectUri: string
    signInUrl: string
    scimUrl: string
  }
  verifiedDomains: string[]
  sso: null | {
    enabled?: boolean
    protocol: "saml" | "oidc"
    idpEntityId: string
    ssoUrl: string
    certificates: {
      subject: string
      validTo: number
      fingerprint: string
    }[]
    oidc: null | {
      tokenAuth: "none" | "client_secret_basic" | "client_secret_post"
      clientSecretHint?: string
      issuer: string
      clientId: string
    }
    updatedAt?: number
  }
  scim: null | {
    hint: string
    role?: "developer" | "viewer"
    createdAt?: number
    lastUsedAt?: number
  }
}
DELETE/v1/orgs/:orgId/tenant/sso

Removes the identity provider. Owners.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sso' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

POST/v1/orgs/:orgId/tenant/sso/scim-token

A new SCIM token (replacing any): shown this once.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • role"developer" | "viewer"

    Default "developer".

Also checked: Unknown fields are rejected.

curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sso/scim-token' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "developer"
  }'
Send it from this page with your session or a key.

Response 201

{
  serviceProvider: {
    entityId: string
    acsUrl: string
    metadataUrl: string
    redirectUri: string
    signInUrl: string
    scimUrl: string
  }
  verifiedDomains: string[]
  sso: null | {
    enabled?: boolean
    protocol: "saml" | "oidc"
    idpEntityId: string
    ssoUrl: string
    certificates: {
      subject: string
      validTo: number
      fingerprint: string
    }[]
    oidc: null | {
      tokenAuth: "none" | "client_secret_basic" | "client_secret_post"
      clientSecretHint?: string
      issuer: string
      clientId: string
    }
    updatedAt?: number
  }
  scim: null | {
    hint: string
    role?: "developer" | "viewer"
    createdAt?: number
    lastUsedAt?: number
  }
  token: string
}
DELETE/v1/orgs/:orgId/tenant/sso/scim-token

Revokes the SCIM token: provisioning stops. Owners.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/sso/scim-token' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant/users

Members with sign-in health; pending invites and removed members (restorable for 30 days).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • qstring

    Up to 200 characters.

  • role"owner" | "admin" | "developer" | "viewer"
  • status"active" | "blocked" | "guest" | "member"
  • signIn"never" | "30d" | "90d"
  • mfa"yes" | "no"
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  users: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }[]
  total: number
  invites: {
    teamIds: string[]
    department?: string
    title?: string
    guestDays?: number
    inviteId: string
    email: string
    role: "admin" | "owner" | "developer" | "viewer"
    expiresAt: number
    createdAt?: number
    invitedBy: string
    guest: boolean
  }[]
  removed: {
    userId: string
    email?: string
    name?: string
    role: string
    removedAt: number
    removedBy: string
    restoreUntil: number
  }[]
}
GET/v1/orgs/:orgId/tenant/users/export

Every member as CSV (email, name, role, attributes, status, groups, sign-in health).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/export' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/users/:userId/permissions

What a member may do here, app by app, and why (their role, groups, custom roles, the plan and app access).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 404That person isn't an active member here.
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}/permissions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  space: {
    kind: "org" | "personal"
    id: string
  }
  role?: "admin" | "owner" | "developer" | "viewer"
  held?: "blocked" | "guest_expired" | "method_not_allowed" | "mfa_required" | "passkey_required" | "reauthenticate" | "session_too_old"
  apps: {
    app: "cloud" | "git" | "chat" | "knowledge" | "mail" | "issues" | "maps" | "drive" | "photos" | "messaging" | "tenant" | "crm" | "health" | "weather" | "search" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "datalake" | "commerce" | "service" | "admin" | "org" | "sharing"
    label: string
    reachable: boolean
    reason?: "held" | "no_access" | "access_ended" | "app_off" | "not_in_groups" | "not_in_plan" | "not_in_space"
    level: "none" | "edit" | "view" | "manage"
    levelLabel: string
    words: string
    from?: string
  }[]
  scopes: ("platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write")[]
  hidden?: string[]
}
GET/v1/orgs/:orgId/tenant/check-access

Check access: whether a member (user) or anyone in a group (group) may use an app (app) or holds a scope (scope) here, with every layer that decides it (membership, space, plan, app access, role, custom roles), and the markings they hold, each explained only when the checker holds it too. Reads only.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/check-access' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  subject: {
    kind: "user" | "group"
    id: string
    name: string
  }
  target: {
    kind: "app"
    app: "cloud" | "git" | "chat" | "knowledge" | "mail" | "issues" | "maps" | "drive" | "photos" | "messaging" | "tenant" | "crm" | "health" | "weather" | "search" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "datalake" | "commerce" | "service" | "admin" | "org" | "sharing"
    label: string
  } | {
    kind: "scope"
    scope: "platform:admin" | "platform:infra" | "platform:analytics" | "platform:coverage" | "org:read" | "org:write" | "audit:read" | "audit:review" | "tenant:read" | "tenant:write" | "members:read" | "members:write" | "projects:read" | "projects:write" | "deployments:read" | "deployments:write" | "env:read" | "env:write" | "keys:read" | "keys:use" | "keys:write" | "domains:read" | "domains:write" | "domains:buy" | "resources:read" | "resources:write" | "status:read" | "status:write" | "status:incidents" | "git:read" | "git:write" | "git:admin" | "logs:read" | "analytics:read" | "knowledge:read" | "knowledge:write" | "connectors:read" | "connectors:write" | "chat:use" | "mcp:connect" | "agents:read" | "agents:write" | "agents:run" | "mail:read" | "mail:send" | "mail:admin" | "calendar:read" | "calendar:write" | "contacts:read" | "contacts:write" | "issues:read" | "issues:write" | "issues:admin" | "maps:read" | "maps:write" | "drive:read" | "drive:write" | "crm:read" | "crm:write" | "crm:admin" | "marketing:read" | "marketing:write" | "marketing:send" | "marketing:admin" | "health:read" | "health:write" | "weather:read" | "weather:write" | "food:read" | "food:write" | "vehicles:read" | "vehicles:write" | "vehicles:control" | "vehicles:admin" | "sharing:read" | "sharing:write" | "ontology:read" | "ontology:write" | "ontology:admin" | "datasets:read" | "datasets:write" | "datasets:admin" | "sources:read" | "sources:write" | "sources:admin" | "lake:query" | "objects:read" | "objects:write" | "actions:run" | "actions:admin" | "alerts:read" | "alerts:write" | "alerts:admin" | "layers:admin" | "commerce:read" | "commerce:write" | "commerce:admin" | "commerce:refund" | "commerce:spend" | "service:read" | "service:write"
    app: "cloud" | "git" | "chat" | "knowledge" | "mail" | "issues" | "maps" | "drive" | "photos" | "messaging" | "tenant" | "crm" | "health" | "weather" | "search" | "marketing" | "food" | "documents" | "sheets" | "slides" | "calendar" | "contacts" | "studio" | "video" | "vehicles" | "datalake" | "commerce" | "service" | "admin" | "org" | "sharing"
    label: string
  }
  allowed: boolean
  level: "none" | "edit" | "view" | "manage"
  levelLabel: string
  answer: string
  why: string
  steps: {
    layer: "role" | "member" | "plan" | "space" | "appAccess" | "customRoles"
    title: string
    outcome: "fail" | "skip" | "pass"
    text: string
  }[]
  markings?: {
    shown: {
      label: string
      rights: string[]
      through: string[]
    }[]
    hidden: number
  }
}
GET/v1/orgs/:orgId/tenant/users/:userId

One member: groups, browser sessions, keys they created, app assignments and recent sign-ins.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 404Not a member of this organization
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  user: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }
  sessions: {
    sessionId: string
    method?: string
    browser?: string
    os?: string
    deviceKind?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    createdAt?: number
    lastSeenAt?: number
    reachesOrg: boolean
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
  apps: string[]
  signIns: {
    eventId: string
    orgId: string
    action: string
    actor: {
      type: "user" | "key" | "client" | "device" | "automation" | "system"
      id: string
      label?: string
    }
    target: {
      type: string
      id: string
      label?: string
    }
    metadata?: {
      [key: string]: unknown
    }
    ip?: string
    userAgent?: string
    createdAt: number
    correlationId?: string
    causationId?: string
    reason?: string
    via?: "api" | "mcp" | "source" | "person" | "assistant" | "rule" | "hook"
    mode?: string
    run?: string
    provenance?: string
    accessClass?: string
    markedLabel?: string
    src?: string
    hash?: string
  }[]
}
PATCH/v1/orgs/:orgId/tenant/users/:userId

Role, title, department, work phone, and a guest's access end (epoch seconds, or null).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Request body

  • role"owner" | "admin" | "developer" | "viewer"
  • titleany JSONor null
  • departmentany JSONor null
  • workPhoneany JSONor null
  • guestExpiresAtintegeror null

    > 0.

Errors

  • 400Guests can be developers or viewers.
  • 400Only guests have an access end date.
  • 404Organization not found
  • 404Not a member of this organization
  • 409An organization needs at least one other active owner first.
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "owner",
    "title": {},
    "department": {}
  }'
Send it from this page with your session or a key.

Response 200

{
  user: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }
  sessions: {
    sessionId: string
    method?: string
    browser?: string
    os?: string
    deviceKind?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    createdAt?: number
    lastSeenAt?: number
    reachesOrg: boolean
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
  apps: string[]
  signIns: {
    eventId: string
    orgId: string
    action: string
    actor: {
      type: "user" | "key" | "client" | "device" | "automation" | "system"
      id: string
      label?: string
    }
    target: {
      type: string
      id: string
      label?: string
    }
    metadata?: {
      [key: string]: unknown
    }
    ip?: string
    userAgent?: string
    createdAt: number
    correlationId?: string
    causationId?: string
    reason?: string
    via?: "api" | "mcp" | "source" | "person" | "assistant" | "rule" | "hook"
    mode?: string
    run?: string
    provenance?: string
    accessClass?: string
    markedLabel?: string
    src?: string
    hash?: string
  }[]
}
POST/v1/orgs/:orgId/tenant/users/:userId/block

Blocks sign-in to this org: no new tokens; current ones stop at the API and MCP within 30 seconds.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Request body

  • reasonstring

    Up to 200 characters. Trimmed.

Errors

  • 400You can't do that to yourself.
  • 404Not a member of this organization
  • 409An organization needs at least one other active owner first.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}/block' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "reason": "example"
  }'
Send it from this page with your session or a key.

Response 200

{
  user: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }
  sessions: {
    sessionId: string
    method?: string
    browser?: string
    os?: string
    deviceKind?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    createdAt?: number
    lastSeenAt?: number
    reachesOrg: boolean
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
  apps: string[]
  signIns: {
    eventId: string
    orgId: string
    action: string
    actor: {
      type: "user" | "key" | "client" | "device" | "automation" | "system"
      id: string
      label?: string
    }
    target: {
      type: string
      id: string
      label?: string
    }
    metadata?: {
      [key: string]: unknown
    }
    ip?: string
    userAgent?: string
    createdAt: number
    correlationId?: string
    causationId?: string
    reason?: string
    via?: "api" | "mcp" | "source" | "person" | "assistant" | "rule" | "hook"
    mode?: string
    run?: string
    provenance?: string
    accessClass?: string
    markedLabel?: string
    src?: string
    hash?: string
  }[]
}
POST/v1/orgs/:orgId/tenant/users/:userId/unblock

Unblocks sign-in; the person signs in again to reach the org.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 400You can't do that to yourself.
  • 404Not a member of this organization
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}/unblock' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  user: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }
  sessions: {
    sessionId: string
    method?: string
    browser?: string
    os?: string
    deviceKind?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    createdAt?: number
    lastSeenAt?: number
    reachesOrg: boolean
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
  apps: string[]
  signIns: {
    eventId: string
    orgId: string
    action: string
    actor: {
      type: "user" | "key" | "client" | "device" | "automation" | "system"
      id: string
      label?: string
    }
    target: {
      type: string
      id: string
      label?: string
    }
    metadata?: {
      [key: string]: unknown
    }
    ip?: string
    userAgent?: string
    createdAt: number
    correlationId?: string
    causationId?: string
    reason?: string
    via?: "api" | "mcp" | "source" | "person" | "assistant" | "rule" | "hook"
    mode?: string
    run?: string
    provenance?: string
    accessClass?: string
    markedLabel?: string
    src?: string
    hash?: string
  }[]
}
POST/v1/orgs/:orgId/tenant/users/:userId/revoke-sessions

Ends the person's sessions for this org (they sign in again) and disconnects their MCP clients here; keys also revokes keys they created here.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Request body

  • keysboolean

    Default false.

Errors

  • 400You can't do that to yourself.
  • 404Not a member of this organization
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}/revoke-sessions' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "keys": false
  }'
Send it from this page with your session or a key.

Response 200

{
  revoked: {
    clients: number
    keys: number
  }
}
POST/v1/orgs/:orgId/tenant/users/:userId/password-reset

Emails the member a recovery link at their own address; the caller never sees it.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 400You can't do that to yourself.
  • 404Not a member of this organization
  • 404No such member.
  • 409This account can't sign in, so there's nothing to recover.
  • 429That's the most links for this account for now. Try again in an hour.
  • 503The email couldn't be sent. Try again.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}/password-reset' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  sentTo: string
}
DELETE/v1/orgs/:orgId/tenant/users/:userId

Removes the member; restorable with their role, attributes, groups and app assignments for 30 days.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 400You can't do that to yourself.
  • 404Not a member of this organization
  • 409An organization needs at least one other active owner first.
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/users/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

POST/v1/orgs/:orgId/tenant/removed/:userId/restore

Restores a removed member.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 404Nothing to restore
  • 404Organization not found
  • 404The account no longer exists.
  • 404Not a member of this organization
  • 409They're a member again already.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/removed/{userId}/restore' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  user: {
    userId: string
    email?: string
    name?: string
    avatarUrl?: string
    role: "admin" | "owner" | "developer" | "viewer"
    effectiveRole: "admin" | "owner" | "developer" | "viewer"
    title?: string
    department?: string
    workPhone?: string
    status: "active" | "blocked"
    blockedAt?: number
    guest: boolean
    guestExpiresAt?: number
    joinedAt?: number
    lastSignInAt?: number
    lastSignInMethod?: string
    passkeys: number
    textCode: boolean
    authenticator: boolean
    mfa: boolean
    securitySkippedUntil?: number
    groups: {
      teamId: string
      name: string
      role: "owner" | "member"
    }[]
    customRoleIds: string[]
    tokensValidAfter?: number
    disabledAccount: boolean
  }
  sessions: {
    sessionId: string
    method?: string
    browser?: string
    os?: string
    deviceKind?: string
    ip?: string
    country?: string
    region?: string
    city?: string
    createdAt?: number
    lastSeenAt?: number
    reachesOrg: boolean
  }[]
  keys: {
    keyId: string
    name: string
    kind: "api" | "mcp" | "agent"
    scopes: string[]
    lastUsedAt?: number
    expiresAt?: number
    createdAt?: number
    machine: boolean
  }[]
  apps: string[]
  signIns: {
    eventId: string
    orgId: string
    action: string
    actor: {
      type: "user" | "key" | "client" | "device" | "automation" | "system"
      id: string
      label?: string
    }
    target: {
      type: string
      id: string
      label?: string
    }
    metadata?: {
      [key: string]: unknown
    }
    ip?: string
    userAgent?: string
    createdAt: number
    correlationId?: string
    causationId?: string
    reason?: string
    via?: "api" | "mcp" | "source" | "person" | "assistant" | "rule" | "hook"
    mode?: string
    run?: string
    provenance?: string
    accessClass?: string
    markedLabel?: string
    src?: string
    hash?: string
  }[]
}
DELETE/v1/orgs/:orgId/tenant/removed/:userId

Forgets a removed member now instead of after 30 days.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • userId

    A member's user id (usr_…).

Errors

  • 404Nothing to restore
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/removed/{userId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

POST/v1/orgs/:orgId/tenant/invites

Invites one person by email (replacing a pending invite to the same address); the link is mailed and returned.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • emailstringrequired

    Up to 254 characters. Email address.

  • role"owner" | "admin" | "developer" | "viewer"

    Default "developer".

  • titleany JSON
  • departmentany JSON
  • guestboolean
  • guestDaysinteger
  • teamIdsstring[]

    Up to 20 items. Each up to 64 characters.

  • daysinteger

    1–30.

Errors

  • 400Unknown role.
  • 400Guests can be developers or viewers.
  • 400Unknown group.
  • 404Organization not found
  • 409… is already a member.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/invites' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "person@example.com"
  }'
Send it from this page with your session or a key.

Response 201

{
  invite: {
    inviteId: string
    email: string
    role: "admin" | "owner" | "developer" | "viewer"
    expiresAt: number
    link: string
    delivered: boolean
  }
}
POST/v1/orgs/:orgId/tenant/invites/bulk

Invites up to 200 people: csv (email[,role[,title[,department]]], header optional) or rows; defaults apply to each. Rows that fail are reported and the rest are sent.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • csvstring

    Up to 200,000 characters.

  • rowsobject[]

    Up to 200 items.

  • rows[].emailstringrequired

    Up to 254 characters. Email address.

  • rows[].role"owner" | "admin" | "developer" | "viewer"

    Default "developer".

  • rows[].titleany JSON
  • rows[].departmentany JSON
  • rows[].guestboolean
  • rows[].guestDaysinteger
  • rows[].teamIdsstring[]

    Up to 20 items. Each up to 64 characters.

  • rows[].daysinteger

    1–30.

  • defaultsobject
  • defaults.role"owner" | "admin" | "developer" | "viewer"

    Default "developer".

  • defaults.titleany JSON
  • defaults.departmentany JSON
  • defaults.guestboolean
  • defaults.guestDaysinteger
  • defaults.teamIdsstring[]

    Up to 20 items. Each up to 64 characters.

  • defaults.daysinteger

    1–30.

Also checked: Send csv or rows.

Errors

  • 400Up to 200 invites at once.
  • 400Unknown role.
  • 400Guests can be developers or viewers.
  • 400Unknown group.
  • 404Organization not found
  • 409… is already a member.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/invites/bulk' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "csv": "example",
    "rows": [
      {
        "email": "person@example.com"
      }
    ],
    "defaults": {
      "role": "developer",
      "title": {},
      "department": {}
    }
  }'
Send it from this page with your session or a key.

Response 200

{
  results: {
    email: string
    ok: true
    inviteId: string
    delivered: boolean
    link: string
  } | {
    email: string
    ok: false
    error: string
  }[]
  errors: {
    line: number
    message: string
  }[]
}
POST/v1/orgs/:orgId/tenant/invites/:inviteId/resend

A new link for a pending invite (the old one stops working), mailed again.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inviteId

    Invite id (inv_…); under vehicles, Tesla's id for a driver invitation, as the drivers list gives it.

Errors

  • 400Unknown role.
  • 400Guests can be developers or viewers.
  • 400Unknown group.
  • 404Invite not found
  • 404Organization not found
  • 409… is already a member.
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/invites/{inviteId}/resend' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  invite: {
    inviteId: string
    email: string
    role: "admin" | "owner" | "developer" | "viewer"
    expiresAt: number
    link: string
    delivered: boolean
  }
}
DELETE/v1/orgs/:orgId/tenant/invites/:inviteId

Revokes a pending invite (the link stops working).

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • inviteId

    Invite id (inv_…); under vehicles, Tesla's id for a driver invitation, as the drivers list gives it.

Errors

  • 404Invite not found
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/invites/{inviteId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant/join-codes

Join codes that still work (Invite by Link): role, uses, expiry and who made each; never the codes themselves.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/join-codes' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  codes: {
    codeId: string
    hint: string
    role: string
    uses: number
    maxUses?: number
    expiresAt: number
    createdBy: string
    createdByName?: string
    createdAt?: number
  }[]
}
POST/v1/orgs/:orgId/tenant/join-codes

A join code: anyone signed in who has it joins as role (viewer or developer) for days (1, 7 or 30), up to maxUses people (absent or null: anyone with it). The code and its link are in this answer only.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • role"viewer" | "developer"

    Default "viewer".

  • daysinteger
  • maxUsesintegeror null

    1–500.

curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/join-codes' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "role": "viewer",
    "days": 1,
    "maxUses": 1
  }'
Send it from this page with your session or a key.

Response 201

{
  code: {
    maxUses?: number
    codeId: string
    code: string
    link: string
    role: "developer" | "viewer"
    expiresAt: number
  }
}
DELETE/v1/orgs/:orgId/tenant/join-codes/:codeId

Stops a join code at once; the people it joined stay.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • codeId

    A join code's id (jcd_…), as Tenant's list of codes gives it.

curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/join-codes/{codeId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant/domains

The organisation's domains: each one's TXT record, where its checks stand and joining by it.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/domains' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  domains: {
    domain: string
    unicode?: string
    status: "pending" | "failed" | "verified"
    record: {
      type: "TXT"
      name: string
      value: string
    }
    joinMode: "off" | "auto" | "offer"
    joinRole: "developer" | "viewer"
    guestDays?: number
    verifiedAt?: number
    checkedAt?: number
    lastResult?: string
    nextCheckAt?: number
    lostReason?: "record_missing" | "taken" | "not_allowed"
    lostAt?: number
    createdAt?: number
  }[]
  limit: number
}
POST/v1/orgs/:orgId/tenant/domains

Adds a domain to verify (owners themselves): its record to publish, checked at once and then on the schedule.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • domainstringrequired

    1–300 characters. Trimmed.

Also checked: Unknown fields are rejected.

curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/domains' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "domain": "example"
  }'
Send it from this page with your session or a key.

Response 201

{
  domain: {
    domain: string
    unicode?: string
    status: "pending" | "failed" | "verified"
    record: {
      type: "TXT"
      name: string
      value: string
    }
    joinMode: "off" | "auto" | "offer"
    joinRole: "developer" | "viewer"
    guestDays?: number
    verifiedAt?: number
    checkedAt?: number
    lastResult?: string
    nextCheckAt?: number
    lostReason?: "record_missing" | "taken" | "not_allowed"
    lostAt?: number
    createdAt?: number
  }
}
POST/v1/orgs/:orgId/tenant/domains/:domain/verify

Verify: a check now; a domain that failed gets another 72 hours.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • domain

    The mail domain, e.g. example.com.

curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/domains/{domain}/verify' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  domain: {
    domain: string
    unicode?: string
    status: "pending" | "failed" | "verified"
    record: {
      type: "TXT"
      name: string
      value: string
    }
    joinMode: "off" | "auto" | "offer"
    joinRole: "developer" | "viewer"
    guestDays?: number
    verifiedAt?: number
    checkedAt?: number
    lastResult?: string
    nextCheckAt?: number
    lostReason?: "record_missing" | "taken" | "not_allowed"
    lostAt?: number
    createdAt?: number
  }
}
PATCH/v1/orgs/:orgId/tenant/domains/:domain

Joining by the domain (owners themselves): off, offered or automatic, as a viewer or developer, as guests or not.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • domain

    The mail domain, e.g. example.com.

Request body

  • joinMode"off" | "offer" | "auto"required
  • joinRole"viewer" | "developer"
  • guestDaysnull | integer

Also checked: Unknown fields are rejected.

curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/domains/{domain}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "joinMode": "off"
  }'
Send it from this page with your session or a key.

Response 200

{
  domain: {
    domain: string
    unicode?: string
    status: "pending" | "failed" | "verified"
    record: {
      type: "TXT"
      name: string
      value: string
    }
    joinMode: "off" | "auto" | "offer"
    joinRole: "developer" | "viewer"
    guestDays?: number
    verifiedAt?: number
    checkedAt?: number
    lastResult?: string
    nextCheckAt?: number
    lostReason?: "record_missing" | "taken" | "not_allowed"
    lostAt?: number
    createdAt?: number
  }
}
DELETE/v1/orgs/:orgId/tenant/domains/:domain

Removes a domain (owners themselves): nobody joins by it, and another organisation can verify it.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • domain

    The mail domain, e.g. example.com.

curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/domains/{domain}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 204 with no body

GET/v1/orgs/:orgId/tenant

Properties, counts, the sign-in policy and recommendations computed from the org's data.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 404Organization not found
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  org: {
    plan?: {
      planId: string
      name: string
    }
    createdAt?: number
    nextSlugChangeAt?: number
    deploymentSlug?: string
    formerSlugs?: string[]
    defaultLocale?: string
    contactEmail?: string
    logoUri?: string
    orgId: string
    slug: string
    name: string
    kind: "platform" | "customer"
  }
  counts: {
    members: number
    active: number
    guests: number
    blocked: number
    admins: number
    mfa: number
    passkeys: number
    groups: number
    customRoles: number
    apps: number
    mcpClients: number
    keys: number
    invites: number
    removed: number
  }
  policy: {
    strength: "any" | "mfa" | "passkey"
    methods: ("passkey" | "apple" | "google" | "password" | "sso")[]
    graceUntil?: number
    sessionHours?: number
  }
  recommendations: {
    id: string
    severity: "low" | "medium" | "high"
    title: string
    detail: string
    count?: number
    href: string
  }[]
  setup: {
    steps: {
      id: "invite" | "source" | "domain" | "dashboard" | "groups" | "sso" | "sign-in-policy"
      title: string
      detail: string
      done: boolean
      marked: boolean
      manual: boolean
      optional: boolean
      target: {
        tenant?: string
        app?: "datalake" | "force"
        path?: string
      }
    }[]
    done: number
    total: number
    hidden: boolean
  }
}
PATCH/v1/orgs/:orgId/tenant

Name, logo (https), contact address and the default language for members who haven't chosen one.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • namestring

    1–64 characters. Trimmed.

  • logoUristring | ""or null

    Up to 512 characters. Trimmed.

  • contactEmailstring | ""or null

    Up to 254 characters. Email address.

  • defaultLocalestringor null

    Up to 20 characters. Trimmed.

Errors

  • 400That language isn't available.
  • 404Organization not found
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Example",
    "logoUri": "https://example.com",
    "contactEmail": "person@example.com"
  }'
Send it from this page with your session or a key.

Response 200

{
  org: {
    plan?: {
      planId: string
      name: string
    }
    createdAt?: number
    nextSlugChangeAt?: number
    deploymentSlug?: string
    formerSlugs?: string[]
    defaultLocale?: string
    contactEmail?: string
    logoUri?: string
    orgId: string
    slug: string
    name: string
    kind: "platform" | "customer"
  }
  counts: {
    members: number
    active: number
    guests: number
    blocked: number
    admins: number
    mfa: number
    passkeys: number
    groups: number
    customRoles: number
    apps: number
    mcpClients: number
    keys: number
    invites: number
    removed: number
  }
  policy: {
    strength: "any" | "mfa" | "passkey"
    methods: ("passkey" | "apple" | "google" | "password" | "sso")[]
    graceUntil?: number
    sessionHours?: number
  }
  recommendations: {
    id: string
    severity: "low" | "medium" | "high"
    title: string
    detail: string
    count?: number
    href: string
  }[]
  setup: {
    steps: {
      id: "invite" | "source" | "domain" | "dashboard" | "groups" | "sso" | "sign-in-policy"
      title: string
      detail: string
      done: boolean
      marked: boolean
      manual: boolean
      optional: boolean
      target: {
        tenant?: string
        app?: "datalake" | "force"
        path?: string
      }
    }[]
    done: number
    total: number
    hidden: boolean
  }
}
PUT/v1/orgs/:orgId/tenant/slug

A new slug (owners themselves): the old one keeps redirecting and stays the org's.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • slugstringrequired

    Up to 64 characters. Trimmed. Lowercased.

Errors

  • 400That's the organisation's slug already.
  • 404Organization not found
  • 409The platform organisation's slug can't change.
  • 409Finish setting up the organisation first.
  • 409The organisation keeps its last 5 slugs, which all still lead here. Choose one of them to change back.
  • 409That slug is taken.
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/slug' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "slug": "example"
  }'
Send it from this page with your session or a key.

Response 200

{
  org: {
    plan?: {
      planId: string
      name: string
    }
    createdAt?: number
    nextSlugChangeAt?: number
    deploymentSlug?: string
    formerSlugs?: string[]
    defaultLocale?: string
    contactEmail?: string
    logoUri?: string
    orgId: string
    slug: string
    name: string
    kind: "platform" | "customer"
  }
  counts: {
    members: number
    active: number
    guests: number
    blocked: number
    admins: number
    mfa: number
    passkeys: number
    groups: number
    customRoles: number
    apps: number
    mcpClients: number
    keys: number
    invites: number
    removed: number
  }
  policy: {
    strength: "any" | "mfa" | "passkey"
    methods: ("passkey" | "apple" | "google" | "password" | "sso")[]
    graceUntil?: number
    sessionHours?: number
  }
  recommendations: {
    id: string
    severity: "low" | "medium" | "high"
    title: string
    detail: string
    count?: number
    href: string
  }[]
  setup: {
    steps: {
      id: "invite" | "source" | "domain" | "dashboard" | "groups" | "sso" | "sign-in-policy"
      title: string
      detail: string
      done: boolean
      marked: boolean
      manual: boolean
      optional: boolean
      target: {
        tenant?: string
        app?: "datalake" | "force"
        path?: string
      }
    }[]
    done: number
    total: number
    hidden: boolean
  }
}
GET/v1/orgs/:orgId/tenant/grantables

Serverless App Services and repositories a group can be given write access to.

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/grantables' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200

{
  grantables: {
    type: "project"
    id: string
    name: string
  } | {
    type: "repository"
    id: string
    name: string
  }[]
}
GET/v1/orgs/:orgId/tenant/audit-review/entries

Search the organisation's audit rows and read records

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • frominteger

    ≥ 0. Coerced from a string.

  • tointeger

    ≥ 0. Coerced from a string.

  • personstring

    Matches ^[A-Za-z0-9_:.@-]{1,256}$.

  • objectstring

    Matches ^[A-Za-z][A-Za-z0-9_]{0,63}:[^\s]{1,256}$.

  • typestring

    Matches ^[A-Za-z][A-Za-z0-9_]{0,127}$.

  • actionstring

    Matches ^[a-z][a-z0-9_-]{0,63}(\.[a-z][a-zA-Z0-9_-]{0,63}){0,2}$.

  • textstring

    1–200 characters. Trimmed.

  • markingstring

    Matches ^[A-Za-z0-9_-]{1,64}$.

  • kind"all" | "writes" | "reads"
  • cursorstring

    Up to 1,024 characters.

  • limitinteger

    Default 50. 1–100. Coerced from a string.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/entries' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/audit-review/findings

List the anomaly rules' findings

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • statusany

    Default "open".

  • personstring

    Up to 256 characters.

  • cursorstring

    Matches ^\d{1,6}$.

  • limitinteger

    Default 50. 1–100. Coerced from a string.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/findings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/audit-review/findings/:finding/decide

Dismiss or reopen a finding

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • finding

    An audit review finding's id (afd_…).

Request body

  • decision"dismiss" | "reopen"required
  • reasonstring

    Up to 2,000 characters. Trimmed.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/findings/{finding}/decide' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "decision": "dismiss"
  }'
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/audit-review/rules

The anomaly rules and their thresholds

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/rules' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/audit-review/rules/run

Run the anomaly rules over today so far

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/rules/run' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/audit-review/cases

Open a Force case from a review, with the evidence attached

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • spacestringrequired

    1–64 characters.

  • summarystringrequired

    1–255 characters. Trimmed.

  • descriptionstring

    Up to 20,000 characters.

  • findingstring

    Matches ^afd_[0-9a-f]{24}$.

  • entriesobject[]

    Up to 100 items.

  • entries[].kind"write" | "read"required
  • entries[].idstringrequired

    Matches ^[A-Za-z0-9_:.@#-]{1,256}$.

  • entries[].atnumberrequired
  • personstring

    Matches ^[A-Za-z0-9_:.@-]{1,256}$.

  • objectstring

    Matches ^[A-Za-z][A-Za-z0-9_]{0,63}:[^\s]{1,256}$.

  • frominteger

    ≥ 0.

  • tointeger

    ≥ 0.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/cases' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "space": "example",
    "summary": "Example"
  }'
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/audit-review/export

Export a search's entries with the seals' check

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • frominteger

    ≥ 0. Coerced from a string.

  • tointeger

    ≥ 0. Coerced from a string.

  • personstring

    Matches ^[A-Za-z0-9_:.@-]{1,256}$.

  • objectstring

    Matches ^[A-Za-z][A-Za-z0-9_]{0,63}:[^\s]{1,256}$.

  • typestring

    Matches ^[A-Za-z][A-Za-z0-9_]{0,127}$.

  • actionstring

    Matches ^[a-z][a-z0-9_-]{0,63}(\.[a-z][a-zA-Z0-9_-]{0,63}){0,2}$.

  • textstring

    1–200 characters. Trimmed.

  • markingstring

    Matches ^[A-Za-z0-9_-]{1,64}$.

  • kind"all" | "writes" | "reads"

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/export' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "from": 1,
    "to": 1,
    "person": "example"
  }'
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/audit-review/summary

Caity's summary of a person's or object's activity, with citations

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • personany JSONrequired
  • objectany JSONrequired
  • findingstring

    Matches ^afd_[0-9a-f]{24}$.

  • fromany JSONrequired
  • toany JSONrequired

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/audit-review/summary' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "person": {},
    "object": {},
    "from": {},
    "to": {}
  }'
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/capabilities

List the organisation's capabilities

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/capabilities' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/capabilities/:capabilityId

Set the organisation's value of a capability

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • capabilityId

    A capability's concrete id, dotted (lake.athena, look.mail.business).

Request body

  • valueany JSONrequired
  • reasonstring

    Up to 500 characters. Trimmed.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/capabilities/{capabilityId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "value": {}
  }'
Send it from this page with your session or a key.

Response 200 with no body

DELETE/v1/orgs/:orgId/tenant/capabilities/:capabilityId

Clear the organisation's value of a capability

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • capabilityId

    A capability's concrete id, dotted (lake.athena, look.mail.business).

Query parameters

  • reasonstring

    Up to 500 characters. Trimmed.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/capabilities/{capabilityId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/capabilities/automation

Read the organisation's automation settings

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/capabilities/automation' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/markings

List the organisation's markings

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/markings

Make a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • labelstringrequired

    1–64 characters.

  • category"level" | "codeword" | "release"required
  • impliesstring[]

    Up to 16 items. Each matches ^[a-z0-9][a-z0-9-]{0,63}$.

  • ai"allowed" | "never"
  • egressAllow("export" | "webhook" | "connector" | "email" | "sms" | "push" | "chat" | "ai")[]

    Up to 8 items.

  • releaseobject
  • release.orgboolean
  • release.orgsstring[]

    Up to 16 items. Each matches ^org_[A-Za-z0-9]{1,64}$.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "label": "Example",
    "category": "level"
  }'
Send it from this page with your session or a key.

Response 200 with no body

PATCH/v1/orgs/:orgId/tenant/markings/:markingId

Change a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Request body

  • labelstring

    1–64 characters.

  • category"level" | "codeword" | "release"
  • impliesstring[]

    Up to 16 items. Each matches ^[a-z0-9][a-z0-9-]{0,63}$.

  • ai"allowed" | "never"
  • egressAllow("export" | "webhook" | "connector" | "email" | "sms" | "push" | "chat" | "ai")[]

    Up to 8 items.

  • releaseobject
  • release.orgboolean
  • release.orgsstring[]

    Up to 16 items. Each matches ^org_[A-Za-z0-9]{1,64}$.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PATCH 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "label": "Example",
    "category": "level",
    "implies": [
      "example"
    ]
  }'
Send it from this page with your session or a key.

Response 200 with no body

DELETE/v1/orgs/:orgId/tenant/markings/:markingId

Delete a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/markings/:markingId/holders

Set what a person or group holds of a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Request body

  • principalstringrequired

    5–140 characters.

  • rights("hold" | "apply" | "grant" | "declassify")[]required

    Up to 4 items.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}/holders' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "principal": "example",
    "rights": [
      "hold"
    ]
  }'
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/markings/:markingId/break-glass

Ask for break-glass access to a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Request body

  • reasonstringrequired

    1–500 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}/break-glass' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "reason": "example"
  }'
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/markings/:markingId/break-glass/decision

Sign off or decline a break-glass request

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Request body

  • decision"approved" | "declined"required

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}/break-glass/decision' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "decision": "approved"
  }'
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/markings/:markingId/check

Check whether a person or group holds a marking

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • markingId

    A marking's id (m-…, made up when it's made, never from its label), as Tenant → Markings lists it.

Query parameters

  • userIdstring

    Up to 64 characters.

  • teamIdstring

    Up to 64 characters.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/{markingId}/check' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/markings/banners

Get the classification banners

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/banners' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

POST/v1/orgs/:orgId/tenant/markings/release-check

Check who content may be released to

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • markingsstring[]required

    Up to 64 items. Each matches ^[a-z0-9][a-z0-9-]{0,63}$.

  • recipients(object | object | object | object | object | object)[]required

    1–50 items.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X POST 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/release-check' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "markings": [
      "example"
    ],
    "recipients": [
      {}
    ]
  }'
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/markings/banners

Set the organisation's classification banners

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • schemeany
  • rowsobject[]

    Up to 200 items.

  • rows[].markingIdstringrequired

    1–64 characters.

  • rows[].wordingstringrequired

    1–80 characters.

  • rows[].tone"neutral" | "green" | "blue" | "yellow" | "orange" | "red" | "purple"required

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/markings/banners' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "scheme": "example",
    "rows": [
      {
        "markingId": "<markingId>",
        "wording": "example",
        "tone": "neutral"
      }
    ]
  }'
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/models

Get the organisation's model policy

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/models

Set the organisation's model policy

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • modelsstring[]requiredor null

    Up to 200 items. Each 1–200 characters.

  • markingsobject

    Default {}. Values: string[] (up to 200 items).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "models": [
      "example"
    ]
  }'
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/models/registered/:slug

Register one of the organisation's own models

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • slug

    A landing page's slug in its org (lower-case letters, digits and dashes).

Request body

  • labelstringrequired

    1–80 characters.

  • kind"rest" | "agent"required
  • urlstring

    Up to 2,048 characters.

  • remoteModelstring

    Up to 128 characters.

  • devicestring

    Up to 64 characters.

  • endpointstring

    Up to 63 characters.

  • maxTokensinteger

    Default 2048. 1–8192.

  • disabledboolean

    Default false.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models/registered/{slug}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "label": "Example",
    "kind": "rest"
  }'
Send it from this page with your session or a key.

Response 200 with no body

DELETE/v1/orgs/:orgId/tenant/models/registered/:slug

Remove one of the organisation's registered models

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • slug

    A landing page's slug in its org (lower-case letters, digits and dashes).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models/registered/{slug}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/models/registered/:slug/key

Set a registered model's key

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • slug

    A landing page's slug in its org (lower-case letters, digits and dashes).

Request body

  • valuestringrequired

    1–4,096 characters. Matches ^[\x21-\x7e]+$.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models/registered/{slug}/key' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "value": "example"
  }'
Send it from this page with your session or a key.

Response 200 with no body

DELETE/v1/orgs/:orgId/tenant/models/registered/:slug/key

Remove a registered model's key

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

  • slug

    A landing page's slug in its org (lower-case letters, digits and dashes).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X DELETE 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models/registered/{slug}/key' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/models/runs

List the organisation's agent and AI function runs

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • cursorstring

    Up to 2,048 characters.

  • limitinteger

    Default 50. 1–100.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/models/runs' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/reads

List who read what through the API and MCP

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • frominteger

    ≥ 0.

  • tointeger

    ≥ 0.

  • principalstring

    Matches ^[a-z_]{1,32}:[^\s]{1,256}$.

  • cursorstring

    Up to 1,024 characters.

  • limitinteger

    Default 50. 1–100.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/reads' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/release

Get the organisation's release channel

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/release' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/release

Change the organisation's release channel

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • channelstringrequiredor null

    Matches ^[a-z][a-z0-9-]{0,23}$.

  • pinobjectrequiredor null
  • pin.releasestringrequired

    Matches ^[0-9]{8}-[0-9a-f]{7,12}$.

  • pin.daysintegerrequired

    1–180.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/release' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "channel": "example",
    "pin": {
      "release": "example",
      "days": 1
    }
  }'
Send it from this page with your session or a key.

Response 200 with no body

GET/v1/orgs/:orgId/tenant/seals/verify

Verify the organisation's audit against its seals

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Query parameters

  • daystringrequired

    Matches ^\d{4}-\d{2}-\d{2}$.

  • hourstring

    Matches ^([01]\d|2[0-3])$.

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/seals/verify?day=example' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
Send it from this page with your session or a key.

Response 200 with no body

PUT/v1/orgs/:orgId/tenant/setup

Change the setup guide

Auth
A person's token or an API key, as Authorization: Bearer.
Get an API key

Path parameters

  • orgId

    Organization id (org_…).

Request body

  • step"invite" | "sign-in-policy" | "domain" | "sso" | "groups" | "source" | "dashboard"
  • doneboolean
  • hiddenboolean

Errors

  • 400Invalid input (invalid_input)
  • 401Not signed in (unauthenticated)
  • 403Not allowed
  • 404Not found, or not yours to see
  • 428A reason is required (purpose_required); state it in the purpose header
  • 429Too many requests (rate_limited); see Retry-After
  • 500Something went wrong (internal)
  • 503Try again shortly
curl -X PUT 'https://api.cactive.ai/v1/orgs/{orgId}/tenant/setup' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "step": "invite",
    "done": true,
    "hidden": true
  }'
Send it from this page with your session or a key.

Response 200 with no body