Skip to main content

FINOS Workspace API

The FINOS Workspace API is the FastAPI application in backend-api/backend that the web app, the worker, the FINOS Workspace MCP server and the admin tools talk to. This page lists its routes, grouped by the tag that each router gives them. For each route it shows the method and path, what the route does, the parameters, the request body and the responses. The request and response types link to FINOS Workspace API schemas.

The API does not serve interactive documentation. It sets docs_url, redoc_url and openapi_url to None, so this page is the reference. A request whose path, query or body does not validate receives the status 422 with FastAPI's standard error body, which lists each invalid field, and the routes below do not repeat it.

How requests are authenticated​

A signed-in browser holds a session in the HttpOnly, secure and same-site cookie __Host-ws_session, and the web app marks its requests with the header X-Workspace-Client: web. A request that cannot be authenticated receives the status 401 with the detail "Could not validate credentials". The API sets every response to a request that carries credentials with Cache-Control: no-store, so that no cache keeps it. Some routes need more than a session, and they answer 403 when the user lacks the role. The routes under /admin need a user of type Admin, and the routes under /plugins need a superuser.

Every HTTP and WebSocket request must come from an allowed origin. The API allows the origins that are listed in BACKEND_CORS_ORIGINS and the origins that match BACKEND_CORS_ORIGIN_REGEX. It refuses any other request, including a request without an Origin header, with the status 403 and the detail "Requests must come from an allowed origin", and it closes a WebSocket with code 1008. The paths /health and /healthz are the only exceptions.

Routes that apply a rate limit allow 50/minute for each client address by default, and a few sensitive routes allow 10/minute. A request that carries a valid service token in the header X-Workspace-Authorization is exempt from the limits when the deployment turns that exemption on with RATE_LIMIT_EXEMPT_ENABLED.

The routes below leave out /metrics, because that route exists only when the PROMETHEUS setting is on. Metrics describes it.

admin​

The routes under /admin let an organization's admin manage its users and invitations, password and two-factor resets, roles and their permissions with the audit log, apps, theme settings and presets, and the organization's own settings. They require a user of type Admin.

GET/admin/apps​

List the backends of the organization and its users

Returns the data backends that users of the admin's organization have connected and the backends that were added for the organization, ordered by owner, with the name and URL of each backend. A backend of the organization has no owner, so its user_uuid and user_email are null.

Responses

  • AppReturn
    • created_datestring (date-time)required

      When the backend was created.

    • enabledbooleanrequired

      Whether the backend is enabled. A disabled backend is unavailable to its users.

    • namestringrequired

      The backend's name.

    • updated_datestring (date-time)required

      When the backend was last changed.

    • urlstringrequired

      The backend's address.

    • user_emailstring | null

      The email address of the user who connected the backend. It is null for a backend of the organization.

    • user_uuidstring (uuid) | null

      The UUID of the user who connected the backend. It is null for a backend of the organization.

    • uuidstring (uuid)required

      The UUID of the backend.

PATCH/admin/apps/{app_uuid}​

Enable or disable a backend of the organization or its users

Sets whether a backend that a user of the admin's organization connected, or that was added for the organization, is enabled. A disabled backend is unavailable to its users and their requests through it are refused. Answers 404 when the organization has no such backend.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the backend.

Request body

application/jsonAppEnabledPutrequired
AppEnabledPut
  • enabledbooleanrequired

    Whether the backend is enabled.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/admin/apps/{app_uuid}​

Delete a backend of the organization or its users

Deletes a backend that a user of the admin's organization connected, or that was added for the organization, together with the access that roles gave to it. Answers 404 when the organization has no such backend.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the backend.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/admin/create-user​

Create a user

Creates a confirmed account for the email address in the organization of the given permissions map, with a random password, gives the user the default roles and the optional role, and returns a single-use link, valid until expires_at, at which the user chooses a password. Answers 404 when the role or the permissions map does not exist, 409 when the address is already invited or a user with it exists, and 403 when the map belongs to another organization.

Request body

application/jsonUserCreateAdminrequired
UserCreateAdmin
  • emailstring (email)required

    The user's email address.

  • first_namestring | null

    The user's first name.

  • last_namestring | null

    The user's last name.

  • messagestring | null

    A message for the new user, up to 500 characters.

  • permissions_uuidstring (uuid)required

    The UUID of the permissions map that gives the user their type.

  • rolestring (uuid) | null

    The UUID of a role to give the user.

Responses

  • PasswordResetLink
    • expires_atstring (date-time)required

      When the link stops working.

    • linkstringrequired

      The single-use link at which the user chooses a new password.

    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/entity​

Get the organization's two-factor requirement

Returns whether the admin's organization requires two-factor authentication, in the field require_authenticator.

Responses

  • AdminPutEntity
    • require_authenticatorboolean | null

      Whether the organization requires two-factor authentication. Leave it out to keep the current value.

PATCH/admin/entity​

Change the organization's two-factor requirement

Stores whether the organization requires two-factor authentication. The new value also applies to every user of the organization who has not yet activated an authenticator app, and users who have one keep their setting. Answers 404 when the admin's organization does not exist.

Request body

application/jsonAdminPutEntityrequired
AdminPutEntity
  • require_authenticatorboolean | null

    Whether the organization requires two-factor authentication. Leave it out to keep the current value.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/entity-map​

List the permission maps of the organization

Returns the permission maps of the admin's organization, one for each user type: Admin, Developer and User. The permissions_uuid of a user is the UUID of the map that gives the user their type.

Responses

  • EntityMapReturn
    • entityEntityReturnrequired

      The organization that the map belongs to.

    • entity_uuidstring (uuid)required

      The UUID of the organization.

    • namestringrequired

      The user type that the map stands for: Admin, Developer or User.

    • uuidstring (uuid)required

      The UUID of the permissions map.

POST/admin/register​

Invite a user

Records an invitation for the email address, so that the person can register in the organization with the user type of the given permissions map. Answers 409 when a user with that email exists or the address is already invited, 403 when registration is disabled or the permissions map belongs to another organization, and 404 when the permissions map does not exist.

Request body

application/jsonUserCreateAdminrequired
UserCreateAdmin
  • emailstring (email)required

    The user's email address.

  • first_namestring | null

    The user's first name.

  • last_namestring | null

    The user's last name.

  • messagestring | null

    A message for the new user, up to 500 characters.

  • permissions_uuidstring (uuid)required

    The UUID of the permissions map that gives the user their type.

  • rolestring (uuid) | null

    The UUID of a role to give the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/admin/register/{invite_uuid}​

Revoke an invitation

Deletes an invitation, so that it can no longer be used to register. Answers 404 when the invitation does not exist and 403 when it belongs to another organization.

Path parameters

  • invite_uuidstring (uuid)required

    The UUID of the invitation.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/admin/reset-2fa/{user_uuid}​

Reset a user's two-factor authentication

Removes the user's authenticator secret, deactivates two-factor authentication for the user, and ends every session of the user. Answers 403 when the user is outside the admin's organization or is a superuser.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/admin/reset-password/{user_uuid}​

Reset a user's password

Replaces the user's password with a random one that nobody knows, ends every session of the user, and returns a single-use link, valid until expires_at, at which the user chooses a new password. Answers 404 when the user is not found, and 403 when the user is outside the admin's organization or is a superuser.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • PasswordResetLink
    • expires_atstring (date-time)required

      When the link stops working.

    • linkstringrequired

      The single-use link at which the user chooses a new password.

    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/role​

List the roles of the organization

Returns the roles of the admin's organization that are not deleted, each with the emails of its users.

Responses

  • GetRoleWithUsers
    • copilot_calls_dayinteger | nullrequired

      The daily limit of Copilot calls that the role sets. It is empty when the role sets none.

    • copilot_tokens_dayinteger | nullrequired

      The daily limit of Copilot tokens that the role sets. It is empty when the role sets none.

    • descriptionstringrequired

      What the role is for.

    • fetch_from_webbooleanrequired

      Whether the role lets its users fetch pages from the web.

    • namestringrequired

      The role's name.

    • search_webbooleanrequired

      Whether the role lets its users search the web.

    • sharing"none" | "receive" | "share"required

      The sharing level that the role gives: none, receive or share.

    • updated_datestring (date-time)required

      When the role was last changed.

    • upload_size_gbinteger | nullrequired

      The limit of stored files in gigabytes that the role sets. It is empty when the role sets none.

    • usersstring (email)[]required

      The email addresses of the role's users.

    • uuidstring (uuid)required

      The UUID of the role.

POST/admin/role​

Create a role

Creates a role in the admin's organization with the given name, description, sharing level and limits, and adds the listed users, who must belong to the organization. A role grants the access that its permissions describe, and the access of a user is the union of the roles that the user holds.

Request body

application/jsonPostRolerequired
PostRole
  • copilot_calls_dayinteger | null

    The daily limit of Copilot calls for the role's users. Leave it empty for no limit.

  • copilot_tokens_dayinteger | null

    The daily limit of Copilot tokens for the role's users. Leave it empty for no limit.

  • descriptionstringrequired

    What the role is for.

  • fetch_from_webbooleandefault true

    Whether the role lets its users fetch pages from the web.

  • namestringrequired

    The role's name.

  • search_webbooleandefault true

    Whether the role lets its users search the web.

  • sharing"none" | "receive" | "share"default "none"

    The sharing level that the role gives: none, receive or share.

  • upload_size_gbinteger | null

    The limit of stored files in gigabytes for the role's users. Leave it empty for no limit.

  • usersstring (email)[] | null

    The email addresses of the users that the role starts with.

  • uuidstring (uuid) | null

    The UUID for the new role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/role-permissions-audit-logs​

List the audit log of role changes

Returns the entries of the audit log for the roles of the admin's organization, newest first. Each entry says who changed which role, what kind of change it was, and the resource that it concerned. The query parameters narrow the list by date range, action, resource type and role.

Query parameters

  • start_datestring (date-time) | null

    Return only entries created at or after this time.

  • end_datestring (date-time) | null

    Return only entries created at or before this time.

  • actionRoleAuditAction | null

    Return only entries of this action.

  • resource_typeRoleResourceType | null

    Return only entries about this kind of resource.

  • role_uuidstring (uuid) | null

    Return only entries about this role.

Responses

  • RoleAuditLogReturn
    • actionRoleAuditActionrequired

      What kind of change it was.

    • created_atstring (date-time)required

      When the change happened.

    • detailsobjectrequired

      Details of the change, which depend on the action.

    • details_msgstring | null

      A sentence that describes the change.

    • entity_uuidstring (uuid)required

      The UUID of the organization.

    • performed_by_emailstringrequired

      The email address of the admin who made the change.

    • resource_typeRoleResourceTyperequired

      The kind of resource that the change concerned.

    • resource_uuidstring (uuid)required

      The UUID of the resource that the change concerned.

    • role_namestringrequired

      The name of the role.

    • role_uuidstring (uuid) | null

      The UUID of the role that changed.

    • uuidstring (uuid)required

      The UUID of the entry.

GET/admin/role-permissions/{role_uuid}​

List the access that a role grants

Returns the backends, files and prompts that the role grants access to, each with its access level. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • RolePermissions
    • access"no-access" | "access" | "full-access"required

      The access level that the role gives: no-access, access or full-access.

    • category"data-connectors" | "templates" | "prompts"required

      The group that the item belongs to: data-connectors, templates or prompts.

    • file_extensionenum | null

      The file's extension, for a file.

      One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
    • promptPrompt | null

      The prompt, for a prompt.

    • templatesTemplateAccess[] | null

      The access to each template of a backend.

    • type"backend" | "file" | "prompt"required

      What the permission is about: a backend, a file or a prompt.

    • uuidstring (uuid)required

      The UUID of the backend, the file widget or the prompt.

    • widgetsWidgetAccess[] | null

      The access to each widget of a backend.

PUT/admin/role-permissions/{role_uuid}​

Set the access of a role to backends, files and prompts

Sets the access level that the role grants to each backend, file and prompt in the request, and leaves the items that the request does not name as they are. Answers 404 when the role does not exist and 403 when the request grants an item from outside the admin's organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonRolePermissions[]required
RolePermissions
  • access"no-access" | "access" | "full-access"required

    The access level that the role gives: no-access, access or full-access.

  • category"data-connectors" | "templates" | "prompts"required

    The group that the item belongs to: data-connectors, templates or prompts.

  • file_extensionenum | null

    The file's extension, for a file.

    One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
  • promptPrompt | null

    The prompt, for a prompt.

  • templatesTemplateAccess[] | null

    The access to each template of a backend.

  • type"backend" | "file" | "prompt"required

    What the permission is about: a backend, a file or a prompt.

  • uuidstring (uuid)required

    The UUID of the backend, the file widget or the prompt.

  • widgetsWidgetAccess[] | null

    The access to each widget of a backend.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/role/{role_uuid}​

Get a role

Returns one role of the admin's organization with the emails of its users. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • GetRoleWithUsers
    • copilot_calls_dayinteger | nullrequired

      The daily limit of Copilot calls that the role sets. It is empty when the role sets none.

    • copilot_tokens_dayinteger | nullrequired

      The daily limit of Copilot tokens that the role sets. It is empty when the role sets none.

    • descriptionstringrequired

      What the role is for.

    • fetch_from_webbooleanrequired

      Whether the role lets its users fetch pages from the web.

    • namestringrequired

      The role's name.

    • search_webbooleanrequired

      Whether the role lets its users search the web.

    • sharing"none" | "receive" | "share"required

      The sharing level that the role gives: none, receive or share.

    • updated_datestring (date-time)required

      When the role was last changed.

    • upload_size_gbinteger | nullrequired

      The limit of stored files in gigabytes that the role sets. It is empty when the role sets none.

    • usersstring (email)[]required

      The email addresses of the role's users.

    • uuidstring (uuid)required

      The UUID of the role.

PATCH/admin/role/{role_uuid}​

Change a role

Changes the fields of the role that the request names. When users is present, the listed users become the members of the role: the missing ones are added and the others are removed. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonPatchRolerequired
PatchRole
  • copilot_calls_dayinteger | null

    The role's new daily limit of Copilot calls. Null removes the limit.

  • copilot_tokens_dayinteger | null

    The role's new daily limit of Copilot tokens. Null removes the limit.

  • descriptionstring | null

    The role's new description.

  • fetch_from_webboolean | null

    Whether the role lets its users fetch pages from the web.

  • namestring | null

    The role's new name.

  • search_webboolean | null

    Whether the role lets its users search the web.

  • sharing"none" | "receive" | "share" | null

    The role's new sharing level: none, receive or share.

  • upload_size_gbinteger | null

    The role's new limit of stored files in gigabytes. Null removes the limit.

  • usersstring (email)[] | null

    The email addresses that the role's members become. Users that the list leaves out are removed from the role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/admin/role/{role_uuid}​

Delete a role

Deletes a role of the admin's organization, so that its users lose the access that only the role gave them. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/role/{role_uuid}/copilot-access​

Get the Copilot access of a role

Returns the Copilot models and the MCP tools that the role grants. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • RoleCopilotAccess
    • The MCP tools that the role grants.

      2 nested properties
      • server_urlstringrequiredminLength 1maxLength 400

        The address of the MCP server.

      • tool_namestringdefault "*"minLength 1maxLength 200

        The name of the tool, or * for every tool of the server.

    • The agents and models that the role grants.

      2 nested properties
      • agent_idstringrequiredminLength 1maxLength 255

        The id of the agent.

      • model_idstringrequiredminLength 1maxLength 255

        The id of the model, or * for every model of the agent.

PUT/admin/role/{role_uuid}/copilot-access​

Set the Copilot access of a role

Replaces the Copilot models and the MCP tools that the role grants with the lists in the request. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonRoleCopilotAccessrequired
RoleCopilotAccess
  • The MCP tools that the role grants.

    2 nested properties
    • server_urlstringrequiredminLength 1maxLength 400

      The address of the MCP server.

    • tool_namestringdefault "*"minLength 1maxLength 200

      The name of the tool, or * for every tool of the server.

  • The agents and models that the role grants.

    2 nested properties
    • agent_idstringrequiredminLength 1maxLength 255

      The id of the agent.

    • model_idstringrequiredminLength 1maxLength 255

      The id of the model, or * for every model of the agent.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/share-requests​

List the share requests of the organization

Returns the requests of the organization's users to share a dashboard or an app, oldest first, each with the requester, the item, the recipient and the requested permissions. A request without a recipient asks to share a dashboard with the whole organization.

Responses

  • ShareRequestReturn
    • created_datestring (date-time) | nullrequired

      When the request was made.

    • item_namestringrequired

      The name of the dashboard or the app.

    • item_type"dashboard" | "app"required

      What the request shares: a dashboard or an app.

    • item_uuidstring (uuid)required

      The UUID of the dashboard or the app.

    • permissionsstring | nullrequired

      What the recipient may do with the item: view or comment.

    • recipientShareRequestUser | nullrequired

      The user who receives the share. It is empty when a dashboard is shared with the whole organization.

    • requesterShareRequestUserrequired

      The user who asked to share.

    • uuidstring (uuid)required

      The UUID of the share request.

POST/admin/share-requests/{request_uuid}/approve​

Approve a share request

Carries out the share that the request asks for. Answers 404 when the request does not belong to the organization, and 409 when the requester's roles no longer allow sharing, the requester no longer owns the item, or the recipient left the organization or cannot receive shares.

Path parameters

  • request_uuidstring (uuid)required

    The UUID of the share request.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/admin/share-requests/{request_uuid}/decline​

Decline a share request

Deletes the request without sharing anything. Answers 404 when the request does not belong to the organization.

Path parameters

  • request_uuidstring (uuid)required

    The UUID of the share request.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/theme-presets​

List the theme presets

Returns the organization's theme presets and the UUID of the active one.

Responses

  • ThemePresets
    • active_presetstring (uuid) | null

      The UUID of the active preset. It is empty when no preset is active.

    • presetsThemePreset[]maxItems 50

      The organization's theme presets.

      4 nested properties
      • darkmap<string, string>

        The theme's properties for dark mode.

      • lightmap<string, string>

        The theme's properties for light mode.

      • namestringrequiredminLength 1maxLength 60

        The preset's name.

      • uuidstring (uuid)required

        The UUID of the preset.

PUT/admin/theme-presets/active​

Select the active theme preset

Makes the preset with the given UUID the active one, or clears the selection when uuid is null. Answers 404 when the preset does not exist.

Request body

application/jsonThemeActivePresetrequired
ThemeActivePreset
  • uuidstring (uuid) | nullrequired

    The UUID of the preset to make active, or null to clear the selection.

Responses

  • ThemePresets
    • active_presetstring (uuid) | null

      The UUID of the active preset. It is empty when no preset is active.

    • presetsThemePreset[]maxItems 50

      The organization's theme presets.

      4 nested properties
      • darkmap<string, string>

        The theme's properties for dark mode.

      • lightmap<string, string>

        The theme's properties for light mode.

      • namestringrequiredminLength 1maxLength 60

        The preset's name.

      • uuidstring (uuid)required

        The UUID of the preset.

PUT/admin/theme-presets/{preset_uuid}​

Create or replace a theme preset

Saves the preset under the UUID in the path: it replaces the preset with that UUID, or adds a new one. Answers 409 when another preset has the same name, ignoring case, and 422 when the organization already has 50 presets.

Path parameters

  • preset_uuidstring (uuid)required

    The UUID of the theme preset.

Request body

application/jsonThemePresetBodyrequired
ThemePresetBody
  • darkmap<string, string>

    The theme's properties for dark mode.

  • lightmap<string, string>

    The theme's properties for light mode.

  • namestringrequiredminLength 1maxLength 60

    The preset's name.

Responses

  • ThemePreset
    • darkmap<string, string>

      The theme's properties for dark mode.

    • lightmap<string, string>

      The theme's properties for light mode.

    • namestringrequiredminLength 1maxLength 60

      The preset's name.

    • uuidstring (uuid)required

      The UUID of the preset.

DELETE/admin/theme-presets/{preset_uuid}​

Delete a theme preset

Deletes the preset, and clears the active selection when it was the active preset. Answers 404 when the preset does not exist.

Path parameters

  • preset_uuidstring (uuid)required

    The UUID of the theme preset.

Responses

  • ThemePresets
    • active_presetstring (uuid) | null

      The UUID of the active preset. It is empty when no preset is active.

    • presetsThemePreset[]maxItems 50

      The organization's theme presets.

      4 nested properties
      • darkmap<string, string>

        The theme's properties for dark mode.

      • lightmap<string, string>

        The theme's properties for light mode.

      • namestringrequiredminLength 1maxLength 60

        The preset's name.

      • uuidstring (uuid)required

        The UUID of the preset.

PATCH/admin/theme-settings​

Change the organization's theme settings

Merges the light and dark theme settings in the request into the organization's stored settings, and the fields that the request omits keep their values.

Request body

application/jsonEntityThemeSettingsrequired
EntityThemeSettings

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/admin/usage/{user_uuid}/reset​

Reset a user's daily Copilot usage

Sets the user's counters of Copilot calls and Copilot tokens for the day to zero. Answers 404 when the user is not found in the admin's organization and 403 when the user is a superuser, because only a superuser may manage one.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/user-permissions/{user_uuid}​

Get the access of a user

Returns the data connectors, templates and prompts that the user can reach through all of the user's roles, with the user's final access to each. Answers 404 when the user is not found in the admin's organization and 403 when the user is a superuser.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • UserPermissions
    • data_connectorsobject[]required

      The data connectors that the user can reach, with the user's final access to each.

    • promptsobject[]required

      The prompts that the user can reach, with the user's final access to each.

    • templatesobject[]required

      The templates that the user can reach, with the user's final access to each.

GET/admin/users​

List the users and invitations of the organization

Returns the organization's users who are not deleted or removed, followed by its pending invitations. The field source is user for an account and invite for an invitation.

Responses

  • UserAdminReturn
    • emailstringrequired

      The user's email address.

    • first_namestring | null

      The user's first name.

    • last_activestring (date-time) | null

      When the user was last active.

    • last_loginstring (date-time) | null

      When the user last signed in.

    • last_namestring | null

      The user's last name.

    • permissions_uuidstring (uuid) | null

      The UUID of the user's permissions map.

    • rolestringrequired

      The user's type: Admin, Developer or User.

    • source"user" | "invite"required

      Whether the entry is a user or an invite.

    • status"active" | "pending" | "revoked" | "expired"default "pending"

      The state of the account: active, pending, revoked or expired.

    • uuidstring (uuid)required

      The UUID of the user or of the invitation.

PATCH/admin/users/{user_uuid}​

Change a user's type

Moves the user to another permissions map of the admin's organization, which changes the user's type. Answers 403 when the map belongs to another organization or the user is a superuser, and 404 when the user is not found.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Request body

application/jsonUserAdminUpdaterequired
UserAdminUpdate
  • permissions_uuidstring (uuid) | null

    The UUID of the permissions map to move the user to.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/admin/users/{user_uuid}​

Delete a user

Deletes the user's account: every session of the user ends, the account is marked as deleted, and its email, username and password are overwritten. Answers 404 when the user is not found in the admin's organization and 403 when the user is a superuser, because only a superuser may manage one.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/admin/users/{user_uuid}/remove​

Remove a user from the organization

Takes the user out of the organization: the user is left without a permissions map, the shares between the user and the organization's other users are removed in both directions, and every session of the user ends. Answers 404 when the user is not found in the admin's organization and 403 when the user is a superuser, because only a superuser may manage one.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/admin/validate​

Check that the caller is an admin

Answers success when the signed-in user is a user of type Admin, and the status 403 when the user is not.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

app​

These routes are under /app and carry no other tag. They serve the signed-in web app with the user's access and two-factor settings, the Agent's chats, keys, access and tokens, the organization's theme settings, the user's MCP servers and other per-user data.

GET/app/2fa​

Get the user's two-factor settings

Returns whether two-factor authentication is on for the signed-in user, which needs an active authenticator, and whether the user's organization requires it.

Responses

  • TwoFactorAuthGet
    • entity_require_authenticatorbooleanrequired

      Whether the user's organization requires two-factor authentication.

    • two_factor_authbooleanrequired

      Whether two-factor authentication is on for the user.

PUT/app/2fa​

Turn the user's two-factor authentication on or off

Sets the user's own two-factor setting and removes the user's authenticator, so that the user sets it up again with POST /totp.

Request body

application/jsonTwoFactorAuthrequired
TwoFactorAuth
  • two_factor_authbooleanrequired

    Whether two-factor authentication is on for the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/access​

Get the user's type and sharing level

Returns the user's type, Admin, Developer or User, and the sharing level that the user's roles allow.

Responses

  • UserAccess
    • sharing"none" | "receive" | "share"required

      The sharing level that the user's roles allow: none, receive or share.

    • user_type"Admin" | "Developer" | "User" | nullrequired

      The user's type: Admin, Developer or User.

POST/app/copilot-chats​

Save the user's Copilot chats

Creates and updates the user's Copilot chats in one request and returns the user's usage. Answers 400 when the database rejects the change.

Request body

application/jsonCopilotChatsCreaterequired
CopilotChatsCreate
  • chatsmap<string, "DELETE" | ChatUpdate>required

    The chats to save, by UUID. Each value is the chat, or DELETE to delete the chat.

Responses

  • UsageGet
    • copilot_calls_limitinteger | null

      The user's daily limit of Copilot calls. It is empty when there is no limit.

    • copilot_tokens_limitinteger | null

      The user's daily limit of Copilot tokens. It is empty when there is no limit.

    • file_upload_size_limitnumber | null

      The limit of the user's stored files, in gigabytes. It is empty when there is no limit.

    • number_copilot_calls_day_countintegerrequired

      The Copilot calls that the user made today.

    • number_copilot_tokens_day_countintegerdefault 0

      The Copilot tokens that the user used today.

    • total_file_upload_size_gb_countnumberrequired

      The storage that the user's files use, in gigabytes.

DELETE/app/copilot-chats​

Delete all of the user's Copilot chats

Deletes every Copilot chat of the signed-in user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

Search the user's Copilot chats

Returns the user's chats whose content matches query, which needs at least two characters. The optional start_date and end_date limit the search to a time range.

Query parameters

  • querystringrequired

    The text that the chats' content must match

  • start_datestring (date) | string (date-time) | null

    The earliest date whose chats the search returns

  • end_datestring (date) | string (date-time) | null

    The latest date whose chats the search returns

Responses

  • 200(Chat | ChatInfo)[]
    Chat
    • artifactsobject[] | null

      The artifacts that the chat produced.

    • createdAtintegerrequired

      When the chat was created, in milliseconds since 1970.

    • labelstringrequired

      The chat's title.

    • messagesChatMessage[]required

      The messages of the chat, in order.

      15 nested properties
      • citationsobject[] | null

        The sources that the answer cites.

      • contentstring | object | null

        The message, as text or as an object for a structured message.

      • copilotIdstringrequired

        The id of the Copilot that the message belongs to.

      • copilot_function_call_argumentsobject | null

        The arguments of the function call, as the Copilot gave them.

      • dataobject | object[] | null

        Data that the message carries.

      • extra_stateobject | null

        Further state that the web app keeps with the message.

      • functionstring | null

        The name of the function that was called.

      • inputobject | null

        The input of the function call.

      • isErrorboolean | null

        Whether the message reports an error.

      • isFCboolean | null

        Whether the message is a function call or the result of one.

      • isHiddenboolean | null

        Whether the web app hides the message.

      • roleChatMessageRolerequired

        Who wrote the message: ai, human, summary, system or tool.

      • timestampintegerrequired

        When the message was written, in milliseconds since 1970.

      • usedPersonalOpenAiKeyboolean | null

        Whether the user's own OpenAI key produced the answer.

      • uuidstring (uuid) | null

        The UUID of the message.

    • uuidstring | string (uuid) | null

      The UUID of the chat.

    ChatInfo
    • createdAtintegerrequired

      When the chat was created, in milliseconds since 1970.

    • labelstringrequired

      The chat's title.

    • uuidstring | string (uuid) | null

      The UUID of the chat.

GET/app/copilot-chats/{chat_uuid}​

Get a Copilot chat

Returns one of the user's chats with its messages and records that the user has just opened it. Answers 404 when the user has no chat with that UUID.

Path parameters

  • chat_uuidstring (uuid)required

    The UUID of the chat to read

Responses

  • 200Chat
    Chat
    • artifactsobject[] | null

      The artifacts that the chat produced.

    • createdAtintegerrequired

      When the chat was created, in milliseconds since 1970.

    • labelstringrequired

      The chat's title.

    • messagesChatMessage[]required

      The messages of the chat, in order.

      15 nested properties
      • citationsobject[] | null

        The sources that the answer cites.

      • contentstring | object | null

        The message, as text or as an object for a structured message.

      • copilotIdstringrequired

        The id of the Copilot that the message belongs to.

      • copilot_function_call_argumentsobject | null

        The arguments of the function call, as the Copilot gave them.

      • dataobject | object[] | null

        Data that the message carries.

      • extra_stateobject | null

        Further state that the web app keeps with the message.

      • functionstring | null

        The name of the function that was called.

      • inputobject | null

        The input of the function call.

      • isErrorboolean | null

        Whether the message reports an error.

      • isFCboolean | null

        Whether the message is a function call or the result of one.

      • isHiddenboolean | null

        Whether the web app hides the message.

      • roleChatMessageRolerequired

        Who wrote the message: ai, human, summary, system or tool.

      • timestampintegerrequired

        When the message was written, in milliseconds since 1970.

      • usedPersonalOpenAiKeyboolean | null

        Whether the user's own OpenAI key produced the answer.

      • uuidstring (uuid) | null

        The UUID of the message.

    • uuidstring | string (uuid) | null

      The UUID of the chat.

GET/app/copilot-keys​

Get the state of the user's own Copilot keys

Returns which provider keys the signed-in user has saved. It never returns the keys.

Responses

  • CopilotKeysStatus
    • has_openai_keybooleandefault false

      Whether the user saved an OpenAI key.

    • has_perplexity_keybooleandefault false

      Whether the user saved a Perplexity key.

PUT/app/copilot-keys​

Save the user's own Copilot keys

Saves the provider keys in the request for the signed-in user and returns which keys are saved.

Request body

application/jsonCopilotProviderKeysrequired
CopilotProviderKeys
  • openai_api_keystring | null

    The user's own OpenAI key.

  • perplexity_api_keystring | null

    The user's own Perplexity key.

Responses

  • CopilotKeysStatus
    • has_openai_keybooleandefault false

      Whether the user saved an OpenAI key.

    • has_perplexity_keybooleandefault false

      Whether the user saved a Perplexity key.

GET/app/copilot/access​

Get the user's Copilot access

Returns the Copilot models and the MCP tools that the user's roles grant, every tool of the MCP servers that the user's backends declare and that the user saved when the user's type may add connections (the deployment's default servers excepted, which only roles grant), and the Copilot capabilities that the roles disable.

Responses

  • CopilotAccess
    • disabled_capabilitiesCopilotCapability[]

      The Copilot capabilities that the user's roles switch off.

    • The MCP tools that the role grants.

      2 nested properties
      • server_urlstringrequiredminLength 1maxLength 400

        The address of the MCP server.

      • tool_namestringdefault "*"minLength 1maxLength 200

        The name of the tool, or * for every tool of the server.

    • The agents and models that the role grants.

      2 nested properties
      • agent_idstringrequiredminLength 1maxLength 255

        The id of the agent.

      • model_idstringrequiredminLength 1maxLength 255

        The id of the model, or * for every model of the agent.

POST/app/copilot/authorize​

Check the user's access to a model and tools

Reports whether the user's roles allow the agent, the model and the MCP tools in the request, and names the denied model and tools when they do not. Called with the agent's bearer token, the answer also carries the user's own provider keys. Only the Copilot service may call it, with the header X-Metering-Authorization: Bearer <token>, and the call answers 403 otherwise.

Request body

application/jsonCopilotAuthorizerequired
CopilotAuthorize
  • agent_idstring | null

    The id of the agent.

  • modelstring | null

    The id of the model.

  • The MCP tools that the agent wants to use.

    2 nested properties
    • tool_namestringrequired

      The name of the tool.

    • urlstringrequired

      The address of the MCP server.

Responses

  • CopilotAuthorizeResult
    • allowedbooleanrequired

      Whether the user may use the agent, the model and the tools.

    • denied_modelstring | null

      The model that the user may not use.

    • denied_toolsCopilotToolRef[]

      The tools that the user may not use.

      2 nested properties
      • tool_namestringrequired

        The name of the tool.

      • urlstringrequired

        The address of the MCP server.

    • disabled_capabilitiesCopilotCapability[]

      The Copilot capabilities that the user's roles switch off.

    • provider_keysCopilotProviderKeys | null

      The user's own provider keys. Only an answer to the Copilot agent carries them.

POST/app/copilot/token​

Get a token for the Copilot agent

Mints a short-lived bearer token that lets the Copilot agent call the API as the signed-in user, and returns it with its lifetime in seconds in expires_in. A sign-out revokes it. Answers 401 without the header X-Workspace-Client: web.

Responses

  • AgentToken
    • expires_inintegerrequired

      How many seconds the token stays valid.

    • tokenstringrequired

      The bearer token.

GET/app/custom-copilot​

List the user's custom Copilots

Returns the custom Copilots that the signed-in user saved.

Responses

  • CustomCopilot-Output
    • copilotsobject[] | null

      The agent descriptors that the address serves.

    • headerNamesstring[]

      The names of the stored credentials

    • urlstringrequiredmaxLength 200

      The address of the agent.

    • uuidstring (uuid) | null

      The UUID of the custom Copilot.

PUT/app/custom-copilot​

Create or update a custom Copilot

Saves a custom Copilot of the signed-in user: it creates the Copilot, or replaces the user's Copilot with the same id. Answers 403 when the user's type may not add connections.

Request body

application/jsonCustomCopilot-Inputrequired
CustomCopilot-Input
  • copilotsobject[] | null

    The agent descriptors that the address serves.

  • headerNamesstring[]

    The names of the stored credentials

  • headersobject | null

    The credentials the API sends to the agent. They are never returned. Left out, the stored ones are kept; given, they are the whole set: a blank value keeps the stored value of that name and a name that is missing is removed

  • urlstringrequiredmaxLength 200

    The address of the agent.

  • uuidstring (uuid) | null

    The UUID of the custom Copilot.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/custom-copilot/discover​

Read an agent's agents.json from the server

Reads the agents.json (or copilots.json) of the agent connection with its credentials, which are the stored ones of the saved connection id and, for the names given in headers, the ones being tried. The credentials never reach the browser. The status the agent answered comes back in status.

Request body

application/jsonAgentDiscoverRequestrequired
AgentDiscoverRequest
  • headersobject | null

    The credentials being tried; left out, those of the saved connection are used

  • idstring (uuid) | null

    The saved agent connection whose stored credentials a blank value keeps

  • urlstringrequiredmaxLength 200

    The address of the agent connection

Responses

  • AgentDiscovery
    • agentsobject | null

      The agents.json the agent answered

    • statusintegerrequired

      The status the agent answered for its agents.json, or 0 when it did not answer

GET/app/custom-copilot/{copilot_uuid}/relay​

Call an agent from the server

Sends the request to target, an address on the agent connection's own origin, with the connection's stored credentials, and streams the answer back with the agent's own status code. Nothing secret reaches the browser. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • copilot_uuidstring (uuid)required

    The UUID of the agent connection to call

Query parameters

  • targetstringrequired

    The absolute address to call on the connection's own origin

Responses

  • 200No content

POST/app/custom-copilot/{copilot_uuid}/relay​

Call an agent from the server

Sends the request to target, an address on the agent connection's own origin, with the connection's stored credentials, and streams the answer back with the agent's own status code. Nothing secret reaches the browser. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • copilot_uuidstring (uuid)required

    The UUID of the agent connection to call

Query parameters

  • targetstringrequired

    The absolute address to call on the connection's own origin

Responses

  • 200No content

PUT/app/custom-copilot/{copilot_uuid}/relay​

Call an agent from the server

Sends the request to target, an address on the agent connection's own origin, with the connection's stored credentials, and streams the answer back with the agent's own status code. Nothing secret reaches the browser. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • copilot_uuidstring (uuid)required

    The UUID of the agent connection to call

Query parameters

  • targetstringrequired

    The absolute address to call on the connection's own origin

Responses

  • 200No content

PATCH/app/custom-copilot/{copilot_uuid}/relay​

Call an agent from the server

Sends the request to target, an address on the agent connection's own origin, with the connection's stored credentials, and streams the answer back with the agent's own status code. Nothing secret reaches the browser. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • copilot_uuidstring (uuid)required

    The UUID of the agent connection to call

Query parameters

  • targetstringrequired

    The absolute address to call on the connection's own origin

Responses

  • 200No content

DELETE/app/custom-copilot/{copilot_uuid}/relay​

Call an agent from the server

Sends the request to target, an address on the agent connection's own origin, with the connection's stored credentials, and streams the answer back with the agent's own status code. Nothing secret reaches the browser. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • copilot_uuidstring (uuid)required

    The UUID of the agent connection to call

Query parameters

  • targetstringrequired

    The absolute address to call on the connection's own origin

Responses

  • 200No content

DELETE/app/custom-copilot/{uuid}​

Delete a custom Copilot

Deletes the user's custom Copilot with that UUID.

Path parameters

  • uuidstring (uuid)required

    The UUID of the custom Copilot to delete

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/display-settings​

Save the user's display settings

Replaces the display settings of the signed-in user with the object in the request.

Request body

application/jsonUserDisplaySettingsrequired
UserDisplaySettings
  • fontSize"small" | "medium" | "large"default "medium"

    The size of the text: small, medium or large.

  • gridCorners("ne" | "nw" | "se" | "sw")[]default ["se"]

    The corners of a widget card that offer a handle for resizing it.

  • gridSnapping"off" | "vertical"default "vertical"

    How widgets snap to the grid: off, or vertical for vertical snapping.

  • lastVisitedPagestring | nulldefault "/app"

    The last page that the user visited.

  • quickAddButtonTransparentbooleandefault false

    Whether the quick add button is drawn transparent.

  • showWidgetControlsbooleandefault false

    Whether widget cards always show their controls.

  • theme"light" | "dark" | null

    The color mode that the user chose, light or dark. When it is empty, the web app follows the system.

  • virtualizeWidgetsbooleandefault false

    Whether the web app unloads widgets that are scrolled far out of view.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/google-auth​

Sign in with Google

Verifies the Google credential that the browser received, finds the user by the verified email, or creates the user from the default user mapping when the email has none, and then signs the user in like POST /app/login, without a password. Answers 403 when Google has not verified the email, 400 when the account cannot be created or the request lacks the header X-Workspace-Client: web, and the same statuses as POST /app/login. It allows only a few attempts a minute for each client address.

Request body

application/jsonAuthDatarequired
AuthData
  • tokenstring | null

    The Google credential.

  • versionstring | null

    The version of the web app that signs in.

Responses

  • AppTokenWithContext
    • accessUserAccess | null

      The user's type and sharing level.

    • copilot_chats(ChatInfo | Chat)[] | null

      The user's Copilot chats.

    • copilot_keysCopilotKeysStatus | null

      Which provider keys the user saved.

    • custom_copilotsCustomCopilot-Output[] | null

      The user's custom Copilots.

    • dash_syncDashboardComplete | null

      The user's dashboards.

    • emailstring (email)required

      The user's email address.

    • entity_namestring | nullrequired

      The name of the user's organization.

    • entity_theme_settingsEntityThemeSettingsrequired

      The theme settings of the user's organization.

    • expiration_datestring (date-time)required

      When the session expires.

    • force_2fabooleanrequired

      Whether the user must set up two-factor authentication.

    • is_first_loginboolean | nulldefault false

      Whether this is the user's first sign-in.

    • mcp_serversMCPServer-Output[] | null

      The user's saved MCP servers.

    • questions_historystring[] | null

      The questions that the user asked the Copilot.

    • rolestring | nullrequired

      The user's type: Admin, Developer or User.

    • show_changelogbooleanrequired

      Whether the web app should show the change log, because the user last signed in with another version.

    • temporary_passwordbooleanrequired

      Whether the password is temporary and the user must change it.

    • usageUsageGet | null

      The user's Copilot usage and limits.

    • userAppUserReturn | null

      The user's profile data.

    • user_appsUserAppsCompleterequired

      The apps that the user owns and the apps that others shared with the user.

    • user_skillsSkillReturn[] | null

      The user's skills.

    • usernamestring | nullrequired

      The user's username.

    • uuidstring (uuid)required

      The user's UUID.

POST/app/login​

Sign in with an email and a password

Checks the email, the password and, when the user has an active authenticator, the code in totp_token, then starts a session in the cookie __Host-ws_session and returns the user's app token with the data that the web app needs at start. Answers 202 with two_factor_required when the user must set up two-factor authentication first, and 202 with the message Invalid TOTP token when the code is missing or wrong. Answers 401 when the credentials are wrong, 403 when the user is not confirmed, and 400 without the header X-Workspace-Client: web. It allows only a few attempts a minute for each client address.

Request body

application/jsonAppUserLoginrequired
AppUserLogin
  • emailstringrequired

    The user's email address or username.

  • passwordstringrequired

    The user's password.

  • rememberbooleandefault false

    Whether to keep the user signed in for longer.

  • source"app" | "oauth-app" | null

    The kind of client that signs in: app or oauth-app. It defaults to app.

  • totp_tokeninteger | null

    The code from the user's authenticator app. It is needed when the user has an active authenticator.

  • versionstring | null

    The version of the web app that signs in.

Responses

  • AppTokenWithContext
    • accessUserAccess | null

      The user's type and sharing level.

    • copilot_chats(ChatInfo | Chat)[] | null

      The user's Copilot chats.

    • copilot_keysCopilotKeysStatus | null

      Which provider keys the user saved.

    • custom_copilotsCustomCopilot-Output[] | null

      The user's custom Copilots.

    • dash_syncDashboardComplete | null

      The user's dashboards.

    • emailstring (email)required

      The user's email address.

    • entity_namestring | nullrequired

      The name of the user's organization.

    • entity_theme_settingsEntityThemeSettingsrequired

      The theme settings of the user's organization.

    • expiration_datestring (date-time)required

      When the session expires.

    • force_2fabooleanrequired

      Whether the user must set up two-factor authentication.

    • is_first_loginboolean | nulldefault false

      Whether this is the user's first sign-in.

    • mcp_serversMCPServer-Output[] | null

      The user's saved MCP servers.

    • questions_historystring[] | null

      The questions that the user asked the Copilot.

    • rolestring | nullrequired

      The user's type: Admin, Developer or User.

    • show_changelogbooleanrequired

      Whether the web app should show the change log, because the user last signed in with another version.

    • temporary_passwordbooleanrequired

      Whether the password is temporary and the user must change it.

    • usageUsageGet | null

      The user's Copilot usage and limits.

    • userAppUserReturn | null

      The user's profile data.

    • user_appsUserAppsCompleterequired

      The apps that the user owns and the apps that others shared with the user.

    • user_skillsSkillReturn[] | null

      The user's skills.

    • usernamestring | nullrequired

      The user's username.

    • uuidstring (uuid)required

      The user's UUID.

POST/app/logout​

Sign out

Ends the web app sessions of the signed-in user, releases the provider's tokens that the API keeps, revokes the user's agent tokens, and clears the session cookie. The route answers success even when no session was open. It allows only a few requests a minute for each client address.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/mcp-oauth/complete​

Finish signing in to an MCP server

Exchanges the authorization code that the MCP server's authorization server returned for tokens, and stores them as the user's grant for that server, replacing an earlier grant. Answers 400 when the attempt has expired, was not started by this user and session, or came back to another address. Only the web app can call it.

Request body

application/jsonMCPOAuthCallbackrequired
MCPOAuthCallback
  • codestringrequiredminLength 1maxLength 4096

    The authorization code that the MCP server's authorization server returned.

  • statestringrequiredminLength 1maxLength 512

    The state that the sign-in started with, which the redirect carried back.

Responses

  • MCPOAuthCompleted
    • server_urlstringrequired

      The address of the MCP server that the user is now signed in to.

POST/app/mcp-oauth/disconnect​

Disconnect from an MCP server

Deletes the user's grant for the MCP server in the request, so that the Copilot can no longer use the user's sign-in there. Only the web app can call it.

Request body

application/jsonMCPOAuthServerrequired
MCPOAuthServer
  • server_urlstringrequiredmaxLength 2048

    The address of the MCP server.

Responses

  • 204No content

POST/app/mcp-oauth/start​

Start signing in to an MCP server

Finds the authorization server of the MCP server in the request, registers FINOS Workspace as its client when the server needs that, and returns the address at which the user grants access. The API remembers the attempt for the user's session. Only the web app can call it, so the request must carry the header X-Workspace-Client: web.

Request body

application/jsonMCPOAuthServerrequired
MCPOAuthServer
  • server_urlstringrequiredmaxLength 2048

    The address of the MCP server.

Responses

  • MCPOAuthAuthorization
    • authorization_urlstringrequired

      The address at which the user grants FINOS Workspace access to the MCP server.

POST/app/mcp-proxy​

Forward a request to an MCP server

Forwards the request in the body to the MCP server that it names, with the headers or the OAuth sign-in that the user saved for that server, and streams the answer back. A call of a tool that the user's roles do not allow is refused. Answers 422 when the request does not go to the named server, 403 when the tool is not allowed or the server's address may not be reached, 504 when the server times out, and 502 when it cannot be reached. Only the web app can call it.

Request body

application/jsonMCPProxyRequestrequired
MCPProxyRequest
  • bodyobject | any[] | null

    The body of a POST request

  • headersmap<string, string> | null

    Extra headers of the request

  • method"GET" | "POST"default "GET"

    The HTTP method of the request

  • server_urlstringrequiredmaxLength 2048

    The address of the MCP server as it is registered for the user

  • urlstringrequiredmaxLength 8192

    The address on the server that receives the request

Responses

  • 200No content

POST/app/mcp-servers​

Save the user's MCP servers

Replaces the user's saved MCP servers with the list in the request and returns the saved list. Answers 403 when the user's type may not add connections.

Request body

application/jsonMCPServers-Inputrequired
MCPServers-Input
  • The user's MCP servers.

    9 nested properties
    • clientNamestring | null

      The name that the server reported for itself.

    • customHeaderNamesstring[]

      The names of the headers that the user saved for the server.

    • customHeadersobject | null

      The headers that the web app sends to the server, by name. The API stores the values and never returns them.

    • enabledbooleanrequired

      Whether the user switched the server on.

    • hasTokenbooleandefault false

      Whether the user saved an authorization token for the server.

    • idstringrequired

      The server's id.

    • namestringrequired

      The name that the user gave the server.

    • toolsMCPTool[]

      The tools that the server offers.

      4 nested properties
      • descriptionstring | null

        What the tool does, in the server's words.

      • enabledbooleandefault true

        Whether the user switched the tool on.

      • idstringrequired

        The tool's id.

      • namestringrequired

        The tool's name.

    • urlstringrequired

      The server's address.

Responses

  • MCPServers-Output
    • The user's MCP servers.

      8 nested properties
      • clientNamestring | null

        The name that the server reported for itself.

      • customHeaderNamesstring[]

        The names of the headers that the user saved for the server.

      • enabledbooleanrequired

        Whether the user switched the server on.

      • hasTokenbooleandefault false

        Whether the user saved an authorization token for the server.

      • idstringrequired

        The server's id.

      • namestringrequired

        The name that the user gave the server.

      • toolsMCPTool[]

        The tools that the server offers.

        4 nested properties
        • descriptionstring | null

          What the tool does, in the server's words.

        • enabledbooleandefault true

          Whether the user switched the tool on.

        • idstringrequired

          The tool's id.

        • namestringrequired

          The tool's name.

      • urlstringrequired

        The server's address.

GET/app/prompts​

List the user's prompts

Returns the prompts that the signed-in user saved.

Responses

  • 200Prompt[]
    Prompt
    • createdAtstringrequired

      When the prompt was created.

    • idstringrequired

      The prompt's id.

    • promptstringrequired

      The prompt's text.

    • updatedAtstringrequired

      When the prompt was last changed.

    • widgetsany[] | null

      The widgets that the prompt uses.

POST/app/prompts​

Save the user's prompts

Makes the list in the request the user's prompts: it adds new ones, updates existing ones and deletes the user's prompts that the list leaves out.

Request body

application/jsonPrompt[]required
Prompt
  • createdAtstringrequired

    When the prompt was created.

  • idstringrequired

    The prompt's id.

  • promptstringrequired

    The prompt's text.

  • updatedAtstringrequired

    When the prompt was last changed.

  • widgetsany[] | null

    The widgets that the prompt uses.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/reset-password​

Choose a new password with a reset link

Uses the token of a password reset link, which works once, to set a new password, clears the temporary-password flag, and ends every session of the user. Answers 400 when the link has expired or was used already, or when the request lacks the header X-Workspace-Client: web.

Request body

application/jsonPasswordResetrequired
PasswordReset
  • new_passwordstringrequired

    The new password. It needs at least 8 characters, with an uppercase letter, a lowercase letter, a number and a special character, and no spaces.

  • tokenstringrequiredminLength 1maxLength 128

    The token from the password reset link.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/resource-permissions​

List the user's access to resources

Returns the access that the user's roles grant, combined across the roles and listed by resource.

Responses

GET/app/role-permissions​

List the access that the user's roles grant

Returns the data connectors, templates and prompts that each of the user's roles grants, with the access level of each.

Responses

GET/app/session​

Get the current session

Returns the session of the signed-in user: the email, the expiry, whether the password is temporary, whether the user must set up two-factor authentication, the organization's name, the user's type and access, usage and the state of the user's own Copilot keys. Answers 401 without the header X-Workspace-Client: web.

Responses

  • AppSession
    • accessUserAccessrequired

      The user's type and sharing level.

    • copilot_keysCopilotKeysStatusrequired

      Which provider keys the user saved.

    • emailstring (email)required

      The user's email address.

    • entity_namestring | nullrequired

      The name of the user's organization.

    • expiration_datestring (date-time)required

      When the session expires.

    • force_2fabooleanrequired

      Whether the user must set up two-factor authentication.

    • rolestring | nullrequired

      The user's type: Admin, Developer or User.

    • temporary_passwordbooleanrequired

      Whether the password is temporary and the user must change it.

    • usageUsageGet | null

      The user's Copilot usage and limits.

    • userSessionUserrequired

      The user's name and display settings.

    • usernamestring | nullrequired

      The user's username.

    • uuidstring (uuid)required

      The user's UUID.

GET/app/sign-in/{provider}/callback​

Finish a Microsoft or Okta sign-in

The address the provider sends the browser back to. It exchanges the code for the provider's tokens on the server, signs the user in, and redirects to the web app, or to its sign-in page with the reason.

Path parameters

  • provider"microsoft" | "okta"required

    The identity provider that answered

Query parameters

  • codestring | null

    The authorization code

  • statestring | null

    The value the sign-in began with

  • errorstring | null

    Set when the provider refused

Responses

  • 303No content

POST/app/sign-in/{provider}/start​

Start a Microsoft or Okta sign-in

Returns the address of the provider's sign-in page. The browser opens it, and the provider sends it back to the callback, where the API signs the user in and keeps the provider's tokens on the server.

Path parameters

  • provider"microsoft" | "okta"required

    The identity provider to sign in with

Request body

application/jsonSignInStartrequired
SignInStart
  • versionstring | null

    The version of the web app that asks for the sign-in.

Responses

  • SignInStarted
    • authorization_urlstringrequired

      The address of the provider's sign-in page, which the browser opens.

POST/app/signup​

Ask for an account with an email address

Emails a single-use link to the address, through the mailer that SIGNUP_MAILER names. The link opens a page where the person chooses a password, and only then does the account exist. It answers 202 the same way whether or not an account with the address exists, and sends nothing for an address that has one or that has had three links in the last hour. Answers 404 unless SIGNUP_ENABLED is true, 403 when registration is disabled, 503 when the mailer or the default permissions mapping is not configured, and 400 without the header X-Workspace-Client: web.

Request body

application/jsonSignupRequestrequired
SignupRequest
  • emailstring (email)required

    The email address that gets the confirmation link.

  • first_namestring | null

    The user's first name.

  • last_namestring | null

    The user's last name.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/signup/confirm​

Create the account with the signup link

Uses the token of a signup link, which works once, to create the account with the chosen password. Answers 400 when the link has expired or was used already, 404 unless SIGNUP_ENABLED is true, and 400 without the header X-Workspace-Client: web. The person signs in afterwards.

Request body

application/jsonPasswordResetrequired
PasswordReset
  • new_passwordstringrequired

    The new password. It needs at least 8 characters, with an uppercase letter, a lowercase letter, a number and a special character, and no spaces.

  • tokenstringrequiredminLength 1maxLength 128

    The token from the password reset link.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/skills​

Create a skill

Adds a skill for the signed-in user and returns all of the user's skills.

Request body

application/jsonSkillCreaterequired
SkillCreate
  • contentstringrequired

    The skill's instructions.

  • descriptionstringrequired

    What the skill does and when to use it.

  • slugstringrequired

    The skill's short name, in lowercase letters, digits and hyphens.

Responses

  • SkillReturn
    • contentstringrequired

      The skill's instructions.

    • createdDatestring (date-time)required

      When the skill was created.

    • descriptionstringrequired

      What the skill does and when to use it.

    • idstring (uuid)required

      The UUID of the skill, repeated as id.

    • pluginNamestring | null

      The widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills

    • slugstringrequired

      The skill's short name, in lowercase letters, digits and hyphens.

    • updatedDatestring (date-time)required

      When the skill was last changed.

    • uuidstring (uuid)required

      The UUID of the skill.

DELETE/app/skills​

Delete skills

Deletes the user's skills whose UUIDs are in the request and returns the skills that remain.

Request body

application/jsonstring (uuid)[]required

Responses

  • SkillReturn
    • contentstringrequired

      The skill's instructions.

    • createdDatestring (date-time)required

      When the skill was created.

    • descriptionstringrequired

      What the skill does and when to use it.

    • idstring (uuid)required

      The UUID of the skill, repeated as id.

    • pluginNamestring | null

      The widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills

    • slugstringrequired

      The skill's short name, in lowercase letters, digits and hyphens.

    • updatedDatestring (date-time)required

      When the skill was last changed.

    • uuidstring (uuid)required

      The UUID of the skill.

PATCH/app/skills/{skill_uuid}​

Change a skill

Replaces the content of the user's skill with that UUID and returns all of the user's skills.

Path parameters

  • skill_uuidstring (uuid)required

    The UUID of the skill to change

Request body

application/jsonSkillCreaterequired
SkillCreate
  • contentstringrequired

    The skill's instructions.

  • descriptionstringrequired

    What the skill does and when to use it.

  • slugstringrequired

    The skill's short name, in lowercase letters, digits and hyphens.

Responses

  • SkillReturn
    • contentstringrequired

      The skill's instructions.

    • createdDatestring (date-time)required

      When the skill was created.

    • descriptionstringrequired

      What the skill does and when to use it.

    • idstring (uuid)required

      The UUID of the skill, repeated as id.

    • pluginNamestring | null

      The widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills

    • slugstringrequired

      The skill's short name, in lowercase letters, digits and hyphens.

    • updatedDatestring (date-time)required

      When the skill was last changed.

    • uuidstring (uuid)required

      The UUID of the skill.

GET/app/theme-settings​

Get the organization's theme settings

Returns the light and dark theme settings of the signed-in user's organization.

Responses

GET/app/usage​

Get the user's Copilot usage

Returns the user's Copilot calls and tokens for the day with the limits that the user's roles set, and the user's file storage use. Answers 404 when there is no usage.

Responses

  • UsageGet
    • copilot_calls_limitinteger | null

      The user's daily limit of Copilot calls. It is empty when there is no limit.

    • copilot_tokens_limitinteger | null

      The user's daily limit of Copilot tokens. It is empty when there is no limit.

    • file_upload_size_limitnumber | null

      The limit of the user's stored files, in gigabytes. It is empty when there is no limit.

    • number_copilot_calls_day_countintegerrequired

      The Copilot calls that the user made today.

    • number_copilot_tokens_day_countintegerdefault 0

      The Copilot tokens that the user used today.

    • total_file_upload_size_gb_countnumberrequired

      The storage that the user's files use, in gigabytes.

PUT/app/usage​

Report Copilot usage for a user

Adds to, subtracts from or resets the user's Copilot call and token counts for the day, and returns the new usage. When an addition would pass the user's limit, the answer reports the limit error instead of changing the count. Only the Copilot service may call it, with the header X-Metering-Authorization: Bearer <token>, and the call answers 403 otherwise.

Request body

application/jsonUsagePutrequired
UsagePut
  • add_copilot_countinteger | nulldefault 0

    How many Copilot calls to add to today's count.

  • add_copilot_tokensinteger | nulldefault 0

    How many Copilot tokens to add to today's count.

  • reset_copilot_countboolean | nulldefault false

    Whether to reset today's counts to zero before the change.

  • subtract_copilot_countinteger | nulldefault 0

    How many Copilot calls to take off today's count.

Responses

  • UsageGet
    • copilot_calls_limitinteger | null

      The user's daily limit of Copilot calls. It is empty when there is no limit.

    • copilot_tokens_limitinteger | null

      The user's daily limit of Copilot tokens. It is empty when there is no limit.

    • file_upload_size_limitnumber | null

      The limit of the user's stored files, in gigabytes. It is empty when there is no limit.

    • number_copilot_calls_day_countintegerrequired

      The Copilot calls that the user made today.

    • number_copilot_tokens_day_countintegerdefault 0

      The Copilot tokens that the user used today.

    • total_file_upload_size_gb_countnumberrequired

      The storage that the user's files use, in gigabytes.

GET/app/user​

Get the signed-in user

Returns the signed-in user's name, display settings, file widgets, backends and widget metadata. The Copilot agent can call it with a bearer token that it got from POST /app/copilot/token, and then the answer holds only the user's identity and display settings.

Responses

  • AppUserReturn
    • api_sourcesReturnApiSource[]required

      The user's own backends and, for an Admin, the organization's backends.

      9 nested properties
      • createdDatestring (date-time)required

        When the backend was created.

      • endpointHeadersApiSourceHeaderName[] | null

        The credential headers of the connection, with the values that are stored for it.

      • idstring (uuid)required

        The UUID of the backend, repeated as id.

      • isEntityBackendbooleanrequired

        Whether the backend belongs to the organization and not to one user.

      • mcpServersstring[] | null

        The MCP server URLs the backend declares, as last reported by its owner.

      • namestringrequired

        The backend's name.

      • updatedDatestring (date-time)required

        When the backend was last changed.

      • urlstring (uri)requiredminLength 1maxLength 2083

        The backend's base address.

      • uuidstring (uuid)required

        The UUID of the backend.

    • display_settingsUserDisplaySettingsdefault {"fontSize":"medium","gridCorners":["se"],"gridSnapping":"vertical","lastVisitedPage":"/app","quickAddButtonTransparent":false,"showWidgetControls":false,"virtualizeWidgets":false}

      The user's display settings.

    • emailstringrequired

      The user's email address.

    • entity_infoUserEntityInfo | null

      The user's organization and user type.

    • expiration_datestring (date-time)required

      When the session expires.

    • file_widgetsReturnFileWidget[]required

      The file widgets that the user created.

      14 nested properties
      • categorystring | null

        The widget's category.

      • createdDatestring (date-time)required

        When the widget was created.

      • dataKeystring | nullrequired

        The key that holds the data in the file.

      • descriptionstring | null

        A description of the widget.

      • extensionenumrequired

        The file's extension.

        One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
      • idstring (uuid)required

        The UUID of the widget, repeated as id.

      • namestringrequired

        The widget's name.

      • originalFileNamestring | nullrequired

        The name of the file as the user uploaded it.

      • sourcestring | null

        Where the file came from.

      • storedFileUuidstring (uuid) | null

        The UUID of the uploaded file that the widget shows.

      • subCategorystring | null

        The widget's subcategory.

      • updatedDatestring (date-time)required

        When the widget was last changed.

      • urlstring (uri)requiredminLength 1maxLength 2083

        The address of the file.

      • uuidstring (uuid)required

        The UUID of the widget.

    • first_namestring | null

      The user's first name.

    • last_namestring | null

      The user's last name.

    • usernamestring | null

      The user's username.

    • uuidstring (uuid)required

      The user's UUID.

    • widget_metadataWidgetMetadataResponse[] | null

      The metadata that the user saved for widgets.

GET/app/validate​

Check whether a session is open

Answers success true when the request carries a valid web app session, and success false when it does not. It never answers with an error status.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/widget-metadata​

Read the user's saved widget metadata

Returns the metadata that the signed-in user saved for widgets, such as the name and the description of an iframe widget that they added. The query narrows the answer.

Query parameters

  • widget_type"iframe" | "copilot_table" | "youtube" | "widget_studio" | "chart" | "html" | "ag_chart_from_table" | null

    Finds only the metadata of the widgets of this kind

  • namestring | null

    Finds only the metadata whose saved name matches

  • widget_idstring (uuid) | null

    Finds only the metadata of this widget

Responses

  • WidgetMetadataResponse
    • categorystringrequired

      The widget's category.

    • descriptionstringrequired

      A description of the widget.

    • namestringrequired

      The widget's name.

    • sourcestringrequired

      Where the widget's data comes from.

    • storageobjectrequired

      The widget's stored content.

    • subCategorystringrequired

      The widget's subcategory.

    • widgetConfigobject | null

      The widget's configuration.

    • widgetIdstring (uuid)required

      The id of the widget that the metadata describes.

    • widgetTypeenumrequired

      The kind of widget: iframe, copilot_table, youtube, widget_studio, chart, html or ag_chart_from_table.

      One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"

POST/app/widget-metadata​

Save a widget's metadata for the user

Saves the metadata of a widget for the signed-in user, under the widget's UUID.

Request body

application/jsonWidgetMetadataResponserequired
WidgetMetadataResponse
  • categorystringrequired

    The widget's category.

  • descriptionstringrequired

    A description of the widget.

  • namestringrequired

    The widget's name.

  • sourcestringrequired

    Where the widget's data comes from.

  • storageobjectrequired

    The widget's stored content.

  • subCategorystringrequired

    The widget's subcategory.

  • widgetConfigobject | null

    The widget's configuration.

  • widgetIdstring (uuid)required

    The id of the widget that the metadata describes.

  • widgetTypeenumrequired

    The kind of widget: iframe, copilot_table, youtube, widget_studio, chart, html or ag_chart_from_table.

    One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

PATCH/app/widget-metadata​

Update a widget's saved metadata

Updates the metadata that the signed-in user saved for one widget. Only the given fields change.

Query parameters

  • widget_idstring (uuid)required

    The UUID of the widget whose metadata to change

Request body

application/jsonWidgetMetadataResponsePatchrequired
WidgetMetadataResponsePatch
  • categorystring | null

    The widget's new category.

  • descriptionstring | null

    The widget's new description.

  • namestring | null

    The widget's new name.

  • sourcestring | null

    The widget's new source.

  • storageobject | null

    The widget's new stored content.

  • subCategorystring | null

    The widget's new subcategory.

  • widgetConfigobject | null

    The widget's new configuration.

  • widgetTypeenum | null

    The widget's new kind.

    One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/app/widget-metadata/{widget_id}​

Remove a widget's saved metadata

Removes the metadata that the signed-in user saved for one widget, and returns what is left.

Path parameters

  • widget_idstring (uuid)required

    The UUID of the widget whose metadata to remove

Responses

  • WidgetMetadataResponse
    • categorystringrequired

      The widget's category.

    • descriptionstringrequired

      A description of the widget.

    • namestringrequired

      The widget's name.

    • sourcestringrequired

      Where the widget's data comes from.

    • storageobjectrequired

      The widget's stored content.

    • subCategorystringrequired

      The widget's subcategory.

    • widgetConfigobject | null

      The widget's configuration.

    • widgetIdstring (uuid)required

      The id of the widget that the metadata describes.

    • widgetTypeenumrequired

      The kind of widget: iframe, copilot_table, youtube, widget_studio, chart, html or ag_chart_from_table.

      One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"

app-dash​

The routes under /app/dash synchronize the user's dashboards, show their versions, and manage how a dashboard is shared with other users and with the organization.

GET/app/dash/shared-dashboard-viewed​

List which shared dashboards the user has opened

Returns, for each dashboard that is shared with the signed-in user, whether the user has viewed it. The query parameter dashboard_uuid limits the list to one dashboard. Answers 400 when no dashboard is shared with the user.

Query parameters

  • dashboard_uuidstring (uuid) | null

    Return only whether the user has viewed this dashboard.

Responses

  • SharedDashboardViewed
    • dashboard_uuidstring (uuid)required

      The UUID of the dashboard.

    • viewedbooleanrequired

      Whether the user has viewed the dashboard.

PATCH/app/dash/shared-dashboard-viewed/{dashboard_uuid}​

Mark a shared dashboard as viewed

Records that the signed-in user has viewed the dashboard that is shared with them.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/dash/sync​

List all of the user's dashboards

Returns the dashboards that the user owns, the dashboards shared with the user, and the dashboards that the user's organization shares, each by UUID.

Responses

  • DashboardComplete
    • entity_sharedmap<string, DashboardReturn>required

      The dashboards that the user's organization shares with all of its users, by UUID.

    • ownedmap<string, DashboardReturn>required

      The dashboards that the user owns, by UUID.

    • sharedmap<string, DashboardReturn>required

      The dashboards that other users shared with the user, by UUID.

POST/app/dash/sync​

Save the user's dashboards

Creates, updates and deletes dashboards in one request. Each key of items is a dashboard UUID, and its value is the dashboard's content, or the string DELETE to delete the dashboard. The API strips credentials from the endpoints in the content. Answers 400 when the database rejects the change.

Request body

application/jsonDashboardsCreaterequired
DashboardsCreate
  • itemsmap<string, "DELETE" | object>required

    The dashboards to save, by UUID. Each value is the dashboard's content, or DELETE to delete the dashboard.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/dash/sync/owned​

List the dashboards that the user owns

Returns the dashboards that the signed-in user owns, by UUID.

Responses

GET/app/dash/sync/shared​

List the dashboards shared with the user

Returns the dashboards that other users shared with the signed-in user, and, separately, the dashboards that the user's organization shares with all of its users. A dashboard that is in both lists appears only in shared.

Responses

  • DashboardShared
    • entity_sharedmap<string, DashboardReturn>required

      The dashboards that the user's organization shares with all of its users, by UUID.

    • sharedmap<string, DashboardReturn>required

      The dashboards that other users shared with the user, by UUID.

GET/app/dash/validate-and-sync​

Load everything the web app needs at start

Checks the session and returns, in one answer, the data that the web app needs when it starts: the user's dashboards and apps, Copilot chats and question history, MCP servers, skills, usage, access and Copilot access, display settings, file widgets, widget metadata and the organization's theme settings.

Responses

  • DashboardCompleteWithContext
    • accessUserAccess | null

      The user's type and sharing level.

    • copilot_accessCopilotAccess | null

      The Copilot models, MCP tools and capabilities that the user may use.

    • copilot_chats(ChatInfo | Chat)[] | null

      The user's Copilot chats.

    • display_settingsUserDisplaySettingsdefault {"fontSize":"medium","gridCorners":["se"],"gridSnapping":"vertical","lastVisitedPage":"/app","quickAddButtonTransparent":false,"showWidgetControls":false,"virtualizeWidgets":false}

      The user's display settings.

    • entity_sharedmap<string, DashboardReturn>required

      The dashboards that the user's organization shares with all of its users, by UUID.

    • entity_theme_settingsEntityThemeSettingsrequired

      The theme settings of the user's organization.

    • file_widgetsReturnFileWidget[]required

      The file widgets that the user created.

      14 nested properties
      • categorystring | null

        The widget's category.

      • createdDatestring (date-time)required

        When the widget was created.

      • dataKeystring | nullrequired

        The key that holds the data in the file.

      • descriptionstring | null

        A description of the widget.

      • extensionenumrequired

        The file's extension.

        One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
      • idstring (uuid)required

        The UUID of the widget, repeated as id.

      • namestringrequired

        The widget's name.

      • originalFileNamestring | nullrequired

        The name of the file as the user uploaded it.

      • sourcestring | null

        Where the file came from.

      • storedFileUuidstring (uuid) | null

        The UUID of the uploaded file that the widget shows.

      • subCategorystring | null

        The widget's subcategory.

      • updatedDatestring (date-time)required

        When the widget was last changed.

      • urlstring (uri)requiredminLength 1maxLength 2083

        The address of the file.

      • uuidstring (uuid)required

        The UUID of the widget.

    • mcp_serversobject[] | null

      The user's saved MCP servers.

    • ownedmap<string, DashboardReturn>required

      The dashboards that the user owns, by UUID.

    • questions_historystring[] | null

      The questions that the user asked the Copilot.

    • sharedmap<string, DashboardReturn>required

      The dashboards that other users shared with the user, by UUID.

    • usageUsageGet | null

      The user's Copilot usage and limits.

    • user_appsUserAppsCompleterequired

      The apps that the user owns and the apps that others shared with the user.

    • user_skillsSkillReturn[] | null

      The user's skills.

    • widget_metadataWidgetMetadataResponse[] | null

      The metadata that the user saved for widgets.

POST/app/dash/{dashboard_uuid}/share​

Share a dashboard with users

Shares the dashboard with the users in the request, who must belong to the owner's organization and be allowed to receive shares, with the permissions that the request names. A user who already has a share is skipped. When the owner is a Developer, the shares become requests that an admin must approve, and the answer has pending_approval set to true. Answers 400 when the owner has no permissions map, 403 when the user does not own the dashboard or may not share, and 402 when none of the recipients is in the owner's organization.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Request body

application/jsonShareDashboardrequired
ShareDashboard
  • sharesmap<string, "view" | "comment">required

    The users to share with, by email address, each with the permissions to give: view or comment.

Responses

  • ShareReturn
    • pending_approvalbooleandefault false

      Whether the request waits for an admin's approval instead of taking effect.

    • successbooleanrequired

      Whether the operation succeeded.

PATCH/app/dash/{dashboard_uuid}/share​

Change the permissions of a dashboard share

Changes the permissions that the listed recipients have on the dashboard. When the owner is a Developer, the changes become requests that an admin must approve, and the answer has pending_approval set to true. Answers 403 when the user does not own the dashboard or may not share.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Request body

application/jsonShareDashboardrequired
ShareDashboard
  • sharesmap<string, "view" | "comment">required

    The users to share with, by email address, each with the permissions to give: view or comment.

Responses

  • ShareReturn
    • pending_approvalbooleandefault false

      Whether the request waits for an admin's approval instead of taking effect.

    • successbooleanrequired

      Whether the operation succeeded.

DELETE/app/dash/{dashboard_uuid}/share​

Stop sharing a dashboard with users

Ends the shares of the dashboard with the listed emails, and cancels their pending share requests. The owner can end any share of the dashboard, and a recipient can end their own.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Request body

application/jsonShareDashboardListrequired
ShareDashboardList
  • sharesstring[]required

    The email addresses of the users to stop sharing with.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/dash/{dashboard_uuid}/shares​

List the shares of a dashboard

Returns the users with whom the signed-in owner shares the dashboard, by email, each with the permissions that the share gives. A share that waits for an admin's approval is included with pending set to true.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Responses

  • 200map<string, DashboardShareReturn>
    DashboardShareReturn
    • created_datestring (date-time) | nullrequired

      When the share was created.

    • first_namestring | nullrequired

      The recipient's first name.

    • last_namestring | nullrequired

      The recipient's last name.

    • pendingbooleandefault false

      Whether the share waits for an admin's approval.

    • permissionsPermissionEnum | nullrequired

      What the recipient may do with the dashboard: view, comment or edit.

GET/app/dash/{dashboard_uuid}/shares/users​

List the users that a dashboard can be shared with

Returns the other users of the owner's organization who can receive shares, by email. A user who already has a share carries the permissions and the date of the share, and the others carry none. Answers 403 when the user does not own the dashboard and 400 when the user's organization cannot be found.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Responses

  • 200map<string, DashboardShareReturn>
    DashboardShareReturn
    • created_datestring (date-time) | nullrequired

      When the share was created.

    • first_namestring | nullrequired

      The recipient's first name.

    • last_namestring | nullrequired

      The recipient's last name.

    • pendingbooleandefault false

      Whether the share waits for an admin's approval.

    • permissionsPermissionEnum | nullrequired

      What the recipient may do with the dashboard: view, comment or edit.

POST/app/dash/{dashboard_uuid}/toggle-entity-sharing​

Share a dashboard with the organization, or stop

Switches sharing with the whole organization on when it is off, and off when it is on. When the user is a Developer, switching it on does not take effect at once: the route files a request that an admin must approve and answers with pending_approval set to true. Answers 403 when the user does not own the dashboard or the user's roles do not allow sharing.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Responses

  • ShareReturn
    • pending_approvalbooleandefault false

      Whether the request waits for an admin's approval instead of taking effect.

    • successbooleanrequired

      Whether the operation succeeded.

GET/app/dash/{dashboard_uuid}/versions​

List the saved versions of a dashboard

Returns the saved versions of the dashboard, newest first, each with its content. The owner can read them, and so can a user with whom the dashboard is shared and, when the dashboard is shared with the organization, any user of the organization whose roles allow sharing. Answers 403 to any other user and 400 when the user's organization cannot be found.

Path parameters

  • dashboard_uuidstring (uuid)required

    The UUID of the dashboard.

Responses

  • DashboardSave
    • contentobjectrequired

      The saved content of the dashboard.

    • created_datestring (date-time)required

      When the version was saved.

    • uuidstring (uuid)required

      The UUID of the saved version.

app-data-connectors​

The routes under /app/data-connectors manage the backends and the file widgets that a user connects, and list the files that the user has stored.

GET/app/data-connectors/api-source​

List the backends that the user can manage

Returns the backends that the signed-in user can edit, newest first: the user's own backends when the user's type may add connections, and, for an Admin, the organization's backends as well.

Responses

  • ReturnApiSource
    • createdDatestring (date-time)required

      When the backend was created.

    • endpointHeadersApiSourceHeaderName[] | null

      The credential headers of the connection, with the values that are stored for it.

    • idstring (uuid)required

      The UUID of the backend, repeated as id.

    • isEntityBackendbooleanrequired

      Whether the backend belongs to the organization and not to one user.

    • mcpServersstring[] | null

      The MCP server URLs the backend declares, as last reported by its owner.

    • namestringrequired

      The backend's name.

    • updatedDatestring (date-time)required

      When the backend was last changed.

    • urlstring (uri)requiredminLength 1maxLength 2083

      The backend's base address.

    • uuidstring (uuid)required

      The UUID of the backend.

POST/app/data-connectors/api-source-test/request​

Try a data connection from the server before it is saved

Like the request of a saved data connection, for credentials being tried in the form: they travel in this request only and are never stored or returned. A blank value keeps the saved one of the connection id. The address must be a public https one, unless the user is a superuser.

Request body

application/jsonSourceTestRequestrequired
SourceTestRequest
  • endpointHeadersApiSourceEndpointHeaders[]maxItems 32

    The credentials being tested; a blank value keeps the saved one

    3 nested properties
    • keystringrequired

      The name of the header or of the query parameter.

    • location"headers" | "query"default "headers"

      Where the web app puts the value: headers or query.

    • valuestringrequired

      The value to send.

  • idstring (uuid) | null

    The saved data connection whose stored values a blank header value keeps

  • requestSourceRequestrequired

    The request that the test sends to the connection

  • urlstring (uri)requiredminLength 1maxLength 2083

    The address of the data connection being tested

Responses

  • 200No content

POST/app/data-connectors/api-source/{source_uuid}​

Create or update a backend

Saves the user's backend under the UUID in the path with the name, URL and settings in the request: it creates the backend, or replaces the user's backend that has this UUID. Answers 403 when the user's type may not add connections.

Path parameters

  • source_uuidstring (uuid)required

    The UUID of the source to create or update

Request body

application/jsonCreateApiSourcerequired
CreateApiSource
  • endpointHeadersApiSourceEndpointHeaders[] | null

    The headers and query parameters that the web app adds to every request to the backend.

  • namestringrequired

    The backend's name.

  • urlstring (uri)requiredminLength 1maxLength 2083

    The backend's base address.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/app/data-connectors/api-source/{source_uuid}​

Delete a backend

Deletes the user's own backend with the given UUID. A UUID that is not one of the user's backends is ignored.

Path parameters

  • source_uuidstring (uuid)required

    The UUID of the source to delete

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/data-connectors/api-source/{source_uuid}/frame​

Open an iframe widget that needs the connection's credentials

Reads the connection's own widgets.json and, only when the widget is an iframe widget that declares requires_auth, returns a token that opens that widget's page through this API. The page runs in a sandbox without storage and the API adds the credentials; neither reaches the browser.

Path parameters

  • source_uuidstring (uuid)required

    The UUID of the data connection

Request body

application/jsonFrameRequestrequired
FrameRequest
  • widgetIdstringrequiredminLength 1maxLength 200

    The id of the iframe widget in the connection's widgets.json

Responses

  • FrameGrant
    • expiresInintegerrequired

      Seconds until the token stops working

    • prefixstringrequired

      The path below which the token lets the page load anything

    • tokenstringrequired

      Names the page in the address the browser opens; it opens nothing else

PUT/app/data-connectors/api-source/{source_uuid}/mcp-servers​

Record the MCP servers that a backend declares

Replaces the MCP server URLs that the backend with the given UUID declares, which the web app reports each time it loads the backend. The users who can read the backend may use these servers with every tool. The backend's owner can report them, and a superuser can for an organization's backend. Answers 404 to any other caller.

Path parameters

  • source_uuidstring (uuid)required

    The UUID of the source whose declared MCP servers to record

Request body

application/jsonApiSourceMcpServersrequired
ApiSourceMcpServers
  • serversstring[]requiredmaxItems 100

    The MCP server URLs the backend declares: iframe widgets' storage.mcpUrl and the apps' mcpServers.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/data-connectors/api-source/{source_uuid}/request​

Call a data connection from the server

Sends the request to the data connection with its stored credentials and the user's email as X-Workspace-User, and streams the answer back with the connection's own status code. Nothing secret reaches the browser, and the browser can read the answer's Content-Disposition, which names a file. For a connection that a role grants and the user does not keep, the route forwards only the catalog files of the connection and the routes that its widgets.json declares for widgets that one of the user's roles grants, and answers 403 to any other. A refusal by this route carries the header X-Workspace-Proxy-Error.

Path parameters

  • source_uuidstring (uuid)required

    The UUID of the data connection to call

Request body

application/jsonSourceRequestrequired
SourceRequest
  • acceptstring | null

    The media types the caller accepts

  • bodystring | null

    The text to send as the body, JSON unless the connection sets another Content-Type

  • headersmap<string, string>maxProperties 32

    Header params of the widget; never a credential

  • methodenumdefault "GET"

    How the data connection is called

    One of"GET""HEAD""POST""PUT""PATCH""DELETE""OPTIONS"
  • urlstringrequiredmaxLength 4096

    The absolute URL on the connection's own origin, without its credentials

Responses

  • 200No content

GET/app/data-connectors/file​

List the user's file widgets

Returns the file widgets that the signed-in user has created. A user whose type may not add connections receives an empty list.

Responses

  • ReturnFileWidget
    • categorystring | null

      The widget's category.

    • createdDatestring (date-time)required

      When the widget was created.

    • dataKeystring | nullrequired

      The key that holds the data in the file.

    • descriptionstring | null

      A description of the widget.

    • extensionenumrequired

      The file's extension.

      One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
    • idstring (uuid)required

      The UUID of the widget, repeated as id.

    • namestringrequired

      The widget's name.

    • originalFileNamestring | nullrequired

      The name of the file as the user uploaded it.

    • sourcestring | null

      Where the file came from.

    • storedFileUuidstring (uuid) | null

      The UUID of the uploaded file that the widget shows.

    • subCategorystring | null

      The widget's subcategory.

    • updatedDatestring (date-time)required

      When the widget was last changed.

    • urlstring (uri)requiredminLength 1maxLength 2083

      The address of the file.

    • uuidstring (uuid)required

      The UUID of the widget.

POST/app/data-connectors/file/{widget_uuid}​

Create or update a file widget

Saves the user's file widget under the UUID in the path and links it to the file that the user uploaded, named by stored_file_uuid. Answers 403 when the user's type may not add connections, and 404 when the file is not stored and no upload of it is pending.

Path parameters

  • widget_uuidstring (uuid)required

    The UUID of the widget to create or update

Request body

application/jsonCreateFileWidgetrequired
CreateFileWidget
  • categorystring | null

    The widget's category.

  • dataKeystring | nullrequired

    The key that holds the data in the file.

  • descriptionstring | null

    A description of the widget.

  • extensionenumrequired

    The file's extension.

    One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
  • namestringrequired

    The widget's name.

  • originalFileNamestring | nullrequired

    The name of the file as the user uploaded it.

  • sourcestring | null

    Where the file came from.

  • storedFileUuidstring (uuid) | null

    The UUID of the uploaded file that the widget shows.

  • subCategorystring | null

    The widget's subcategory.

  • urlstring (uri)requiredminLength 1maxLength 2083

    The address of the file.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/app/data-connectors/file/{widget_uuid}​

Delete a file widget

Deletes the user's file widget and, when the storage allows it, the file behind it. A file that the storage cannot delete is kept and detached from the widget.

Path parameters

  • widget_uuidstring (uuid)required

    The UUID of the widget to delete

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/data-connectors/frame/{token}/{path}​

A page of an iframe widget, with the connection's credentials added

Authorized by the token in the address alone: the page runs without cookies or storage.

Path parameters

  • tokenstringrequired

    The token from the frame grant

  • pathstringrequired

    The path on the connection's origin

Responses

  • 200No content

POST/app/data-connectors/frame/{token}/{path}​

A page of an iframe widget, with the connection's credentials added

Authorized by the token in the address alone: the page runs without cookies or storage.

Path parameters

  • tokenstringrequired

    The token from the frame grant

  • pathstringrequired

    The path on the connection's origin

Responses

  • 200No content

PUT/app/data-connectors/frame/{token}/{path}​

A page of an iframe widget, with the connection's credentials added

Authorized by the token in the address alone: the page runs without cookies or storage.

Path parameters

  • tokenstringrequired

    The token from the frame grant

  • pathstringrequired

    The path on the connection's origin

Responses

  • 200No content

PATCH/app/data-connectors/frame/{token}/{path}​

A page of an iframe widget, with the connection's credentials added

Authorized by the token in the address alone: the page runs without cookies or storage.

Path parameters

  • tokenstringrequired

    The token from the frame grant

  • pathstringrequired

    The path on the connection's origin

Responses

  • 200No content

DELETE/app/data-connectors/frame/{token}/{path}​

A page of an iframe widget, with the connection's credentials added

Authorized by the token in the address alone: the page runs without cookies or storage.

Path parameters

  • tokenstringrequired

    The token from the frame grant

  • pathstringrequired

    The path on the connection's origin

Responses

  • 200No content

GET/app/data-connectors/stored-files​

List the user's stored files

Returns the files that the signed-in user has uploaded, each with its extension, size and the file widget that uses it. A user whose type may not add connections receives an empty list.

Responses

  • StoredFileReturn
    • extensionenumrequired

      The file's extension.

      One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
    • file_widget_uuidstring (uuid) | null

      The UUID of the file widget that uses the file. It is empty while no widget uses it.

    • is_globalbooleandefault false

      Whether the file is available to every user.

    • original_file_namestring | nullrequired

      The name of the file as the user uploaded it.

    • sizeinteger | null

      The file's size in bytes.

    • uuidstring (uuid)required

      The UUID of the stored file.

app-file-storage​

The routes under /app/files upload, download and delete files, and hand out signed links to them.

POST/app/files​

Upload files

Uploads the files of a multipart request to the storage and returns a description of each one, including whether its upload failed. An uploaded file stays pending until a file widget claims it. Answers 403 when the user's type may not add connections and 413 when the upload would exceed the user's upload size limit.

Request body

multipart/form-dataBody_post_files_app_files_postrequired
Body_post_files_app_files_post
  • filesstring[]required

    The files to upload.

Responses

  • PendingFileReturn
    • extensionstring | null

      The file's extension.

    • failedbooleandefault false

      Whether the upload failed.

    • original_file_namestring | null

      The name of the file as the user uploaded it.

    • stored_file_uuidstring (uuid) | null

      The UUID that the stored file received.

    • urlstring | null

      The address at which the API serves the file.

DELETE/app/files​

Delete several files

Deletes the user's own stored files whose UUIDs are in the request. A file that the storage cannot delete is kept and detached from its widget. Answers 404 when none of the files belongs to the user.

Request body

application/jsonDeleteStoredFilesrequired
DeleteStoredFiles
  • file_uuidsstring (uuid)[]required

    The UUIDs of the stored files to delete.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/app/files/download​

Download files as a ZIP archive

Returns a ZIP archive that holds the requested files and a file_manifest.json that lists them. The user can request the files that they uploaded, the global files, and the files that others shared with them. Answers 404 when no file is found.

Request body

application/jsonPostStoredFile[]required
PostStoredFile
  • file_uuidstring (uuid) | null

    The UUID of the stored file.

  • filenamestring | null

    The name of the file as the user uploaded it.

Responses

  • 200No content

GET/app/files/presigned/{file_name}​

Download a file through a signed link

Streams a file when Expires and Signature form a valid signed link, and needs no session. Answers 403 when the link is invalid or has expired and 404 when the file does not exist.

Path parameters

  • file_namestringrequired

    The name of the file in the storage, as the signed link carries it.

Query parameters

  • Expiresintegerrequired

    The time at which the link expires, in seconds since 1970, as the link carries it.

  • Signaturestringrequired

    The signature of the link, as the link carries it.

Responses

  • 200No content

GET/app/files/{file_name}​

Download a file

Streams the file with the given name or UUID. The user can read the files that they uploaded, the global files, and the files that others shared with them. Answers 404 when no such file is available to the user.

Path parameters

  • file_namestringrequired

    The name of the file in the storage, or its UUID.

Responses

  • 200No content

GET/app/files/{file_name}/presigned-url​

Create a signed download link

Returns a signed link to the file, together with the file's details. The link works without a session until expiration seconds have passed, and the API caps the lifetime at 900 seconds. Answers 404 when no such file is available to the user.

Path parameters

  • file_namestringrequired

    The name of the file in the storage, or its UUID.

Query parameters

  • expirationinteger

    How many seconds the link stays valid. The API lowers a larger value to its maximum.

Responses

  • PreSignedUrlReturn
    • original_file_namestringrequired

      The name of the file as the user uploaded it.

    • pre_signed_urlstringrequired

      The signed link, which works without a session until it expires.

    • stored_file_uuidstring (uuid)required

      The UUID of the stored file.

DELETE/app/files/{file_uuid}​

Delete a file

Deletes one of the user's own stored files. Answers 404 when the user has no file with that UUID and 400 when the storage cannot delete it.

Path parameters

  • file_uuidstring (uuid)required

    The UUID of the stored file.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

app-user-apps​

The routes under /app/user-apps synchronize, save, delete and share the apps of a user.

GET/app/user-apps/shared-app-viewed​

List which shared apps the user has opened

Returns, for each app that is shared with the signed-in user, whether the user has viewed it. The query parameter app_uuid limits the list to one app. Answers 400 when no app is shared with the user.

Query parameters

  • app_uuidstring (uuid) | null

    Return only whether the user has viewed this app.

Responses

  • SharedAppViewed
    • app_uuidstring (uuid)required

      The UUID of the app.

    • viewedbooleanrequired

      Whether the user has viewed the app.

PATCH/app/user-apps/shared-app-viewed/{app_uuid}​

Mark a shared app as viewed

Records that the signed-in user has viewed the app that is shared with them.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/user-apps/sync​

List the user's apps

Returns the apps that the user owns and the apps that others shared with the user, each by UUID. Answers 404 when there is no data.

Responses

POST/app/user-apps/{app_uuid}​

Create or update an app

Saves the user's app under the UUID in the path: it creates the app, or replaces the content of the user's app with that UUID, and returns the user's apps.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Request body

application/jsonUserAppCreaterequired
UserAppCreate
  • currentTabstring | null

    The tab that the app opens on.

  • descriptionstring | null

    A description of the app.

  • gridLayoutmap<string, object[]>

    The layout of the app's widgets, by tab.

  • groupsobject[]

    The widget groups of the app.

  • imgstring | null

    The app's image.

  • img_darkstring | null

    The image to use in dark mode.

  • img_lightstring | null

    The image to use in light mode.

  • namestringrequired

    The app's name.

  • promptsstring[]

    The prompts that the app offers.

  • widgetsobject[]

    The widgets of the app.

Responses

DELETE/app/user-apps/{app_uuid}​

Delete an app

Deletes the user's own app with that UUID and returns the user's remaining apps. Answers 404 when the user has no such app.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Responses

POST/app/user-apps/{app_uuid}/share​

Share an app with users

Shares the app with the users in the request, who must belong to the owner's organization and be allowed to receive shares, with the permissions that the request names. A user who already has a share is skipped. When the owner is a Developer, the shares become requests that an admin must approve, and the answer has pending_approval set to true. Answers 400 when the owner has no permissions map, 403 when the user does not own the app or may not share, and 402 when none of the recipients is in the owner's organization.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Request body

application/jsonShareUserApprequired
ShareUserApp
  • sharesmap<string, "view" | "comment">required

    The users to share with, by email address, each with the permissions to give: view or comment.

Responses

  • ShareReturn
    • pending_approvalbooleandefault false

      Whether the request waits for an admin's approval instead of taking effect.

    • successbooleanrequired

      Whether the operation succeeded.

PATCH/app/user-apps/{app_uuid}/share​

Change the permissions of an app share

Changes the permissions that the listed recipients have on the app. When the owner is a Developer, the changes become requests that an admin must approve, and the answer has pending_approval set to true. Answers 403 when the user does not own the app or may not share.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Request body

application/jsonShareUserApprequired
ShareUserApp
  • sharesmap<string, "view" | "comment">required

    The users to share with, by email address, each with the permissions to give: view or comment.

Responses

  • ShareReturn
    • pending_approvalbooleandefault false

      Whether the request waits for an admin's approval instead of taking effect.

    • successbooleanrequired

      Whether the operation succeeded.

DELETE/app/user-apps/{app_uuid}/share​

Stop sharing an app with users

Ends the shares of the app with the listed emails, and cancels their pending share requests. The owner can end any share of the app, and a recipient can end their own.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Request body

application/jsonShareUserAppListrequired
ShareUserAppList
  • sharesstring[]required

    The email addresses of the users to stop sharing with.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/app/user-apps/{app_uuid}/shares​

List the shares of an app

Returns the users with whom the signed-in owner shares the app, by email, each with the permissions that the share gives. A share that waits for an admin's approval is included with pending set to true.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Responses

  • 200map<string, UserAppShareReturn>
    UserAppShareReturn
    • created_datestring (date-time) | nullrequired

      When the share was created.

    • first_namestring | nullrequired

      The recipient's first name.

    • last_namestring | nullrequired

      The recipient's last name.

    • pendingbooleandefault false

      Whether the share waits for an admin's approval.

    • permissionsPermissionEnum | nullrequired

      What the recipient may do with the app: view, comment or edit.

GET/app/user-apps/{app_uuid}/shares/users​

List the users that an app can be shared with

Returns the other users of the owner's organization who can receive shares, by email. A user who already has a share carries the permissions and the date of the share, and the others carry none. Answers 403 when the user does not own the app and 400 when the user's organization cannot be found.

Path parameters

  • app_uuidstring (uuid)required

    The UUID of the app.

Responses

  • 200map<string, UserAppShareReturn>
    UserAppShareReturn
    • created_datestring (date-time) | nullrequired

      When the share was created.

    • first_namestring | nullrequired

      The recipient's first name.

    • last_namestring | nullrequired

      The recipient's last name.

    • pendingbooleandefault false

      Whether the share waits for an admin's approval.

    • permissionsPermissionEnum | nullrequired

      What the recipient may do with the app: view, comment or edit.

auth​

These routes set up two-factor authentication under /totp, and let a user change or delete their own account under /user.

POST/totp​

Start the setup of two-factor authentication

Generates a new authenticator secret for the signed-in user and returns it with the provisioning URI that an authenticator app reads. The secret has no effect until POST /totp/activate confirms it. Answers 400 when two-factor authentication is already active.

Responses

  • TotpGenerateReturn
    • secretstringrequired

      The authenticator secret, in base 32.

    • uristringrequired

      The provisioning URI that an authenticator app reads, usually as a QR code.

POST/totp/activate​

Activate two-factor authentication

Checks the code from the authenticator app against the generated secret and activates two-factor authentication. When the user signed in only to enroll, as a user whose organization requires two-factor authentication must, the enrollment session ends and the answer is the user's app token with a new session. Otherwise the answer is a success message. Answers 400 when no secret has been generated and 401 when the code is wrong.

Request body

application/jsonTotpActivaterequired
TotpActivate
  • rememberbooleandefault false

    Whether to keep the user signed in for longer.

  • totp_tokeninteger | null

    The code from the user's authenticator app.

  • versionstring | null

    The version of the web app.

Responses

  • AppTokenWithContext
    • accessUserAccess | null

      The user's type and sharing level.

    • copilot_chats(ChatInfo | Chat)[] | null

      The user's Copilot chats.

    • copilot_keysCopilotKeysStatus | null

      Which provider keys the user saved.

    • custom_copilotsCustomCopilot-Output[] | null

      The user's custom Copilots.

    • dash_syncDashboardComplete | null

      The user's dashboards.

    • emailstring (email)required

      The user's email address.

    • entity_namestring | nullrequired

      The name of the user's organization.

    • entity_theme_settingsEntityThemeSettingsrequired

      The theme settings of the user's organization.

    • expiration_datestring (date-time)required

      When the session expires.

    • force_2fabooleanrequired

      Whether the user must set up two-factor authentication.

    • is_first_loginboolean | nulldefault false

      Whether this is the user's first sign-in.

    • mcp_serversMCPServer-Output[] | null

      The user's saved MCP servers.

    • questions_historystring[] | null

      The questions that the user asked the Copilot.

    • rolestring | nullrequired

      The user's type: Admin, Developer or User.

    • show_changelogbooleanrequired

      Whether the web app should show the change log, because the user last signed in with another version.

    • temporary_passwordbooleanrequired

      Whether the password is temporary and the user must change it.

    • usageUsageGet | null

      The user's Copilot usage and limits.

    • userAppUserReturn | null

      The user's profile data.

    • user_appsUserAppsCompleterequired

      The apps that the user owns and the apps that others shared with the user.

    • user_skillsSkillReturn[] | null

      The user's skills.

    • usernamestring | nullrequired

      The user's username.

    • uuidstring (uuid)required

      The user's UUID.

    SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

PUT/user​

Change the signed-in user's password

Changes the password of the signed-in user when the request carries both old_password and new_password, and ends every other session of the user. Answers 401 when the old password is wrong and 400 when the request is too large.

Request body

application/jsonUserUpdaterequired
UserUpdate
  • new_passwordstring | null

    The new password. It needs at least 8 characters, with an uppercase letter, a lowercase letter, a number and a special character, and no spaces.

  • old_passwordstring | null

    The user's current password.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/user​

Delete the signed-in user's account

Deletes the account of the signed-in user: every session ends, the account is marked as deleted, and its email, username and password are overwritten. The user's agent tokens are revoked and the session cookie is cleared.

Responses

  • MessageReturn
    • messagestringrequired

      A sentence that describes the result.

    • successbooleanrequired

      Whether the operation succeeded.

entity​

The routes under /entity manage organizations, which the API calls entities, together with their permission maps, roles and data backends, and they register administrators. They require a superuser.

GET/entity/data-backends/{entity_uuid}​

List the data backends of an organization

Returns the data backends that belong to the organization.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the organization.

Responses

  • ReturnApiSource
    • createdDatestring (date-time)required

      When the backend was created.

    • endpointHeadersApiSourceHeaderName[] | null

      The credential headers of the connection, with the values that are stored for it.

    • idstring (uuid)required

      The UUID of the backend, repeated as id.

    • isEntityBackendbooleanrequired

      Whether the backend belongs to the organization and not to one user.

    • mcpServersstring[] | null

      The MCP server URLs the backend declares, as last reported by its owner.

    • namestringrequired

      The backend's name.

    • updatedDatestring (date-time)required

      When the backend was last changed.

    • urlstring (uri)requiredminLength 1maxLength 2083

      The backend's base address.

    • uuidstring (uuid)required

      The UUID of the backend.

POST/entity/data-backends/{entity_uuid}​

Add a data backend to an organization

Adds a data backend with the name and URL in the request to the organization. Users see it only when one of their roles grants access to it.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the organization.

Request body

application/jsonCreateApiSourcerequired
CreateApiSource
  • endpointHeadersApiSourceEndpointHeaders[] | null

    The headers and query parameters that the web app adds to every request to the backend.

  • namestringrequired

    The backend's name.

  • urlstring (uri)requiredminLength 1maxLength 2083

    The backend's base address.

Responses

  • 200any

DELETE/entity/data-backends/{entity_uuid}/{backend_name}​

Delete a data backend of an organization

Deletes the organization's data backend with the given name. Answers 404 when the organization has no backend with that name.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the organization.

  • backend_namestringrequired

    The name of the data backend.

Responses

  • 200any

GET/entity/entity​

List the organizations

Returns a page of the organizations, ordered by name. The query parameter removed lists the removed organizations instead, under the names they had before. The query parameters page and size select the page.

Query parameters

  • removedboolean

    List the removed organizations instead.

  • pageinteger

    Page number

  • sizeinteger

    How many items a page holds

Responses

  • PageCustomized_EntityReturn_
    • itemsEntityReturn[]required

      The items on this page.

      4 nested properties
      • disabledbooleanrequired

        Whether the organization is disabled and its users cannot sign in.

      • namestringrequired

        The organization's name.

      • sharing_enabledbooleanrequired

        Whether the organization's users may share dashboards and apps.

      • uuidstring (uuid)required

        The UUID of the organization.

    • pageintegerrequiredminimum 1

      The number of this page, counted from 1.

    • pagesintegerrequiredminimum 0

      How many pages there are.

    • sizeintegerrequiredminimum 1

      How many items a page holds.

    • totalintegerrequiredminimum 0

      How many items there are in all.

POST/entity/entity​

Create an organization

Creates an organization with the given name and sharing setting, together with its three permission maps, Admin, Developer and User, and its default roles, and returns the UUIDs of the organization and of its Admin map. The API notifies its administrators in the background that the organization was created. Answers 409 when an organization with that name exists. POST /entity/register-admin invites the organization's first admin.

Request body

application/jsonEntityPostrequired
EntityPost
  • admin_emailstring (email)required

    The email address of the organization's admin.

  • namestringrequired

    The organization's name.

  • sharing_enabledbooleandefault true

    Whether the organization's users may share dashboards and apps. It defaults to true.

Responses

  • AddEntityReturn
    • entity_uuidstring (uuid)required

      The UUID of the new organization.

    • permission_map_uuidstring (uuid)required

      The UUID of the organization's Admin permissions map.

GET/entity/entity-map​

List the permission maps of all organizations

Returns a page of the permission maps of every organization, each with its organization. The query parameters page and size select the page.

Query parameters

  • pageinteger

    Page number

  • sizeinteger

    How many items a page holds

Responses

  • PageCustomized_EntityMapReturn_
    • itemsEntityMapReturn[]required

      The items on this page.

      4 nested properties
      • entityEntityReturnrequired

        The organization that the map belongs to.

      • entity_uuidstring (uuid)required

        The UUID of the organization.

      • namestringrequired

        The user type that the map stands for: Admin, Developer or User.

      • uuidstring (uuid)required

        The UUID of the permissions map.

    • pageintegerrequiredminimum 1

      The number of this page, counted from 1.

    • pagesintegerrequiredminimum 0

      How many pages there are.

    • sizeintegerrequiredminimum 1

      How many items a page holds.

    • totalintegerrequiredminimum 0

      How many items there are in all.

POST/entity/entity-map​

Add a permission map to an organization

Adds a permission map of the given type, Admin, Developer or User, to an organization and returns its UUID. Answers 409 when the organization already has a map of that type and 404 when the map cannot be created.

Request body

application/jsonEntityMapCreaterequired
EntityMapCreate
  • entity_uuidstring (uuid)required

    The UUID of the organization.

  • name"Admin" | "Developer" | "User"required

    The user type that the map stands for: Admin, Developer or User.

Responses

  • UUIDReturn
    • uuidstring (uuid)required

      The UUID of the new item.

PUT/entity/entity-map/{map_uuid}​

Change a permission map

Changes the organization and the type of a permission map. Answers 409 when the organization already has a map of that type, 404 when the map does not exist, and 400 when the data is rejected.

Path parameters

  • map_uuidstring (uuid)required

    The UUID of the permission map.

Request body

application/jsonEntityMapCreaterequired
EntityMapCreate
  • entity_uuidstring (uuid)required

    The UUID of the organization.

  • name"Admin" | "Developer" | "User"required

    The user type that the map stands for: Admin, Developer or User.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

PUT/entity/entity/{entity_uuid}​

Change an organization's name, sharing and disabled state

Changes the name, the sharing setting and, when the request has disabled, whether the organization is disabled. When sharing is switched off, the shares that the change no longer allows are revoked. Disabling an organization ends the sessions of its users and stops them from signing in. Answers 404 when the organization does not exist, and 409 when another organization has the name or when the organization to disable has a superuser.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the organization.

Request body

application/jsonEntityUpdaterequired
EntityUpdate
  • disabledboolean | null

    Whether the organization is disabled: its users cannot sign in and their sessions end. Leave it out to keep the current value.

  • namestringrequired

    The organization's name.

  • sharing_enabledbooleanrequired

    Whether the organization's users may share dashboards and apps.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/entity/entity/{entity_uuid}​

Remove an organization

Removes an organization that has no users: it leaves every list, its name is freed for another organization, and its data stays in the database. Answers 400 when the organization still has users and 404 when it does not exist or was removed.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the organization.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/entity/entity/{entity_uuid}/restore​

Restore a removed organization

Brings a removed organization back, with its permission maps, roles, settings and backends, under the name it had before or under the name in the request. Answers 404 when the organization does not exist or was not removed, and 409 when another organization has the name.

Path parameters

  • entity_uuidstring (uuid)required

    The UUID of the removed organization.

Request body

application/jsonEntityRestore | null
EntityRestore
  • namestring | null

    The name to give the restored organization. Leave it out to restore the name it had before.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

POST/entity/register-admin​

Invite a user into any organization

Records an invitation for the email address, so that the person can register with the user type of the given permissions map, which may belong to any organization. Use the Admin map of an organization to invite its admin. Answers 409 when a user with that email exists or the address is already invited, and 403 when registration is disabled.

Request body

application/jsonUserCreateAdminrequired
UserCreateAdmin
  • emailstring (email)required

    The user's email address.

  • first_namestring | null

    The user's first name.

  • last_namestring | null

    The user's last name.

  • messagestring | null

    A message for the new user, up to 500 characters.

  • permissions_uuidstring (uuid)required

    The UUID of the permissions map that gives the user their type.

  • rolestring (uuid) | null

    The UUID of a role to give the user.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/entity/role​

List the roles of the superuser's organization

Returns the roles of the organization of the signed-in superuser, each with the emails of its users.

Responses

  • GetRoleWithUsers
    • copilot_calls_dayinteger | nullrequired

      The daily limit of Copilot calls that the role sets. It is empty when the role sets none.

    • copilot_tokens_dayinteger | nullrequired

      The daily limit of Copilot tokens that the role sets. It is empty when the role sets none.

    • descriptionstringrequired

      What the role is for.

    • fetch_from_webbooleanrequired

      Whether the role lets its users fetch pages from the web.

    • namestringrequired

      The role's name.

    • search_webbooleanrequired

      Whether the role lets its users search the web.

    • sharing"none" | "receive" | "share"required

      The sharing level that the role gives: none, receive or share.

    • updated_datestring (date-time)required

      When the role was last changed.

    • upload_size_gbinteger | nullrequired

      The limit of stored files in gigabytes that the role sets. It is empty when the role sets none.

    • usersstring (email)[]required

      The email addresses of the role's users.

    • uuidstring (uuid)required

      The UUID of the role.

POST/entity/role​

Create a role in the superuser's organization

Creates a role in the organization of the signed-in superuser and adds the listed users, who must belong to that organization.

Request body

application/jsonPostRolerequired
PostRole
  • copilot_calls_dayinteger | null

    The daily limit of Copilot calls for the role's users. Leave it empty for no limit.

  • copilot_tokens_dayinteger | null

    The daily limit of Copilot tokens for the role's users. Leave it empty for no limit.

  • descriptionstringrequired

    What the role is for.

  • fetch_from_webbooleandefault true

    Whether the role lets its users fetch pages from the web.

  • namestringrequired

    The role's name.

  • search_webbooleandefault true

    Whether the role lets its users search the web.

  • sharing"none" | "receive" | "share"default "none"

    The sharing level that the role gives: none, receive or share.

  • upload_size_gbinteger | null

    The limit of stored files in gigabytes for the role's users. Leave it empty for no limit.

  • usersstring (email)[] | null

    The email addresses of the users that the role starts with.

  • uuidstring (uuid) | null

    The UUID for the new role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/entity/role-permissions/{role_uuid}​

List the backends and files that a role grants

Returns the backends and files that the role grants access to, each with its access level. Answers 404 when the role does not exist in the superuser's organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • RolePermissions
    • access"no-access" | "access" | "full-access"required

      The access level that the role gives: no-access, access or full-access.

    • category"data-connectors" | "templates" | "prompts"required

      The group that the item belongs to: data-connectors, templates or prompts.

    • file_extensionenum | null

      The file's extension, for a file.

      One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
    • promptPrompt | null

      The prompt, for a prompt.

    • templatesTemplateAccess[] | null

      The access to each template of a backend.

    • type"backend" | "file" | "prompt"required

      What the permission is about: a backend, a file or a prompt.

    • uuidstring (uuid)required

      The UUID of the backend, the file widget or the prompt.

    • widgetsWidgetAccess[] | null

      The access to each widget of a backend.

PUT/entity/role-permissions/{role_uuid}​

Set the access of a role to backends and files

Sets the access level that the role grants to each backend and file in the request, and leaves the items that the request does not name as they are. Items of any other type are ignored. Answers 404 when the role does not exist in the superuser's organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonRolePermissions[]required
RolePermissions
  • access"no-access" | "access" | "full-access"required

    The access level that the role gives: no-access, access or full-access.

  • category"data-connectors" | "templates" | "prompts"required

    The group that the item belongs to: data-connectors, templates or prompts.

  • file_extensionenum | null

    The file's extension, for a file.

    One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"
  • promptPrompt | null

    The prompt, for a prompt.

  • templatesTemplateAccess[] | null

    The access to each template of a backend.

  • type"backend" | "file" | "prompt"required

    What the permission is about: a backend, a file or a prompt.

  • uuidstring (uuid)required

    The UUID of the backend, the file widget or the prompt.

  • widgetsWidgetAccess[] | null

    The access to each widget of a backend.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/entity/role/{role_uuid}​

Get a role of the superuser's organization

Returns one role of the organization of the signed-in superuser with the emails of its users. Answers 404 when the role does not exist in that organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • GetRoleWithUsers
    • copilot_calls_dayinteger | nullrequired

      The daily limit of Copilot calls that the role sets. It is empty when the role sets none.

    • copilot_tokens_dayinteger | nullrequired

      The daily limit of Copilot tokens that the role sets. It is empty when the role sets none.

    • descriptionstringrequired

      What the role is for.

    • fetch_from_webbooleanrequired

      Whether the role lets its users fetch pages from the web.

    • namestringrequired

      The role's name.

    • search_webbooleanrequired

      Whether the role lets its users search the web.

    • sharing"none" | "receive" | "share"required

      The sharing level that the role gives: none, receive or share.

    • updated_datestring (date-time)required

      When the role was last changed.

    • upload_size_gbinteger | nullrequired

      The limit of stored files in gigabytes that the role sets. It is empty when the role sets none.

    • usersstring (email)[]required

      The email addresses of the role's users.

    • uuidstring (uuid)required

      The UUID of the role.

PATCH/entity/role/{role_uuid}​

Change a role of the superuser's organization

Changes the fields of the role that the request names. When users is present, the listed users become the members of the role: the missing ones are added and the others are removed. Answers 404 when the role does not exist in the superuser's organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonPatchRolerequired
PatchRole
  • copilot_calls_dayinteger | null

    The role's new daily limit of Copilot calls. Null removes the limit.

  • copilot_tokens_dayinteger | null

    The role's new daily limit of Copilot tokens. Null removes the limit.

  • descriptionstring | null

    The role's new description.

  • fetch_from_webboolean | null

    Whether the role lets its users fetch pages from the web.

  • namestring | null

    The role's new name.

  • search_webboolean | null

    Whether the role lets its users search the web.

  • sharing"none" | "receive" | "share" | null

    The role's new sharing level: none, receive or share.

  • upload_size_gbinteger | null

    The role's new limit of stored files in gigabytes. Null removes the limit.

  • usersstring (email)[] | null

    The email addresses that the role's members become. Users that the list leaves out are removed from the role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

DELETE/entity/role/{role_uuid}​

Delete a role of the superuser's organization

Deletes the role, so that its users lose the access that only the role gave them. Answers 404 when the role does not exist in the superuser's organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/entity/user​

List the users

Returns a page of the users who are not deleted, ordered by email, each with their permissions map. The query parameter email keeps only the users whose email contains it, and page and size select the page.

Query parameters

  • emailstring

    Keep only the users whose email contains this text.

  • pageinteger

    Page number

  • sizeinteger

    How many items a page holds

Responses

  • PageCustomized_EntityUserReturn_
    • itemsEntityUserReturn[]required

      The items on this page.

      3 nested properties
      • emailstringrequired

        The user's email address.

      • permissionsEntityMapReturn | null

        The permissions map that gives the user their type.

      • uuidstring (uuid)required

        The user's UUID.

    • pageintegerrequiredminimum 1

      The number of this page, counted from 1.

    • pagesintegerrequiredminimum 0

      How many pages there are.

    • sizeintegerrequiredminimum 1

      How many items a page holds.

    • totalintegerrequiredminimum 0

      How many items there are in all.

PUT/entity/user/{user_uuid}​

Move a user to a permissions map

Gives the user the permissions map, which may belong to another organization, and ends the user's web app sessions. When the organization changes, the shares between the user and the old organization's users are removed and the user receives the default roles of the new organization. Answers 404 when the map or the user does not exist, or when the map's organization was removed.

Path parameters

  • user_uuidstring (uuid)required

    The UUID of the user.

Request body

application/jsonUserUpdateAdminrequired
UserUpdateAdmin
  • permissions_uuidstring (uuid)required

    The UUID of the permissions map to move the user to.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

GET/entity/validate​

Check that the caller is a superuser

Answers success when the signed-in user is a superuser, and the status 403 when the user is not.

Responses

  • SuccessReturn
    • successbooleanrequired

      Whether the operation succeeded.

widget-plugins​

These are the widget plugin routes. Superuser routes are under /plugins, organization admin routes are under /admin/plugins, member routes are under /app/widget-plugins, and the backends' data route is under /internal/plugin-broker. Plugin lifecycle and administration explains how they fit together.

GET/admin/plugins​

List the plugins of the organization

Returns whether the deployment has the plugin feature turned on, the plugins that are approved at the deployment with what the admin's organization has done with each, and the organization's backends that a plugin's data source can map to.

Responses

  • 200any

PUT/admin/plugins/{plugin_id}​

Change a plugin for the organization

Applies the changes in the request to what the admin's organization does with the plugin: enabling it, narrowing its permissions, frame sources and server hosts, mapping its data sources to the organization's backends, filling in its settings, choosing which plugin renders a widget type, and setting how many presets each user may keep of each widget.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Request body

application/jsonEntityChangesrequired
EntityChanges
  • csp_narrowmap<string, string[]> | null

    The frame sources that the organization removes, by directive.

  • data_sourcesmap<string, string (uuid) | null> | null

    The organization's backend for each data source that the plugin declares, by data source id. A null value clears the mapping.

  • enabledboolean | null

    Whether the organization enables the plugin.

  • handlersmap<string, string | null> | null

    For each widget type that the plugin handles, the id of the plugin widget that renders it for the organization, or null to clear the choice.

  • narrowed_permissionsstring[] | null

    The permissions that the organization removes from what the plugin may do.

  • preset_limitinteger | null

    How many presets each user may keep of each of the plugin's widgets, or null for the default of 100.

  • server_network_narrowstring[] | null

    The server hosts that the organization removes.

  • settingsobject | null

    The values of the plugin's settings.

Responses

  • 200any

GET/admin/plugins/{plugin_id}/csp-reports​

List the requests that a plugin's frame was refused for the organization

Returns the reports of requests that the plugin's frame policy refused for users of the admin's organization, one for each directive and origin, most frequent first, with the number of times it occurred and when it was first and last seen.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

GET/admin/plugins/{plugin_id}/events​

List the events of a plugin for the organization

Returns the recorded events of the plugin that concern the admin's organization, newest first.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

GET/admin/plugins/{plugin_id}/widgets/{widget_id}/presets​

List the organization's presets of a plugin widget

Returns { presets }, the presets that the admin's organization publishes for the widget, ordered by name. Each preset is { id, name, scope, is_default, config, state, updated_at }. Answers 404 when the plugin has no approved version with that widget.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

Responses

  • 200any

POST/admin/plugins/{plugin_id}/widgets/{widget_id}/presets​

Publish a preset of a plugin widget to the organization

Saves a preset that every user of the admin's organization who may use the widget can apply, and returns it. Making it the default replaces the organization's previous default for the widget. Answers 404 when the plugin has no approved version with that widget, 422 when the name or the settings are not valid, and 413 when the state is too large.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

Request body

application/jsonPresetBodyrequired
PresetBody
  • configobject | null

    The values of the widget's settings. They must satisfy the widget's settings schema.

  • is_defaultbooleandefault false

    Whether the preset is the default, which a new card of the widget starts from.

  • namestringrequiredmaxLength 200

    The name of the preset, 1 to 80 characters once trimmed.

  • stateany

    The plugin's own state of the widget, at most 64 KiB of JSON.

Responses

  • 200any

PATCH/admin/plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}​

Change a preset that the organization publishes

Applies the changes in the request to one of the organization's presets of the widget and returns it. Making it the default replaces the organization's previous default for the widget. Answers 404 when the preset does not exist, 422 when the name or the settings are not valid, and 413 when the state is too large.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

  • preset_idstring (uuid)required

    The id of the preset.

Request body

application/jsonPresetChangesrequired
PresetChanges
  • configobject | null

    The new values of the widget's settings, or null to clear them. They must satisfy the widget's settings schema.

  • is_defaultboolean | null

    Whether the preset is the default, which a new card of the widget starts from.

  • namestring | null

    The new name of the preset, 1 to 80 characters once trimmed.

  • stateany

    The plugin's new state of the widget, at most 64 KiB of JSON.

Responses

  • 200any

DELETE/admin/plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}​

Delete a preset that the organization publishes

Deletes one of the organization's presets of the widget. Answers 404 when the preset does not exist.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

  • preset_idstring (uuid)required

    The id of the preset.

Responses

  • 200any

GET/admin/role/{role_uuid}/plugin-access​

List the plugin widgets that a role grants

Returns the plugin widgets that the role grants, each as a plugin id and a widget id, where * stands for every widget of the plugin. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Responses

  • RoleGrants
    • grantsRoleGrant[]maxItems 500

      The plugin widgets that the role grants.

      2 nested properties
      • plugin_idstringrequiredpattern ^[a-z][a-z0-9-]{1,47}$

        The id of the plugin.

      • widget_idstringdefault "*"pattern ^(\*|[a-z][a-z0-9_-]{0,47})$

        The id of the widget, or * for every widget of the plugin.

PUT/admin/role/{role_uuid}/plugin-access​

Set the plugin widgets that a role grants

Replaces the plugin widgets that the role grants with the list in the request. Answers 404 when the role does not exist in the organization.

Path parameters

  • role_uuidstring (uuid)required

    The UUID of the role.

Request body

application/jsonRoleGrantsrequired
RoleGrants
  • grantsRoleGrant[]maxItems 500

    The plugin widgets that the role grants.

    2 nested properties
    • plugin_idstringrequiredpattern ^[a-z][a-z0-9-]{1,47}$

      The id of the plugin.

    • widget_idstringdefault "*"pattern ^(\*|[a-z][a-z0-9_-]{0,47})$

      The id of the widget, or * for every widget of the plugin.

Responses

  • 200any

GET/app/widget-plugins​

List the plugins that the user may use

Returns { enabled, etag, plugins, vizHandlers }, which describes the plugins and the widget types that the signed-in user may use. The answer carries an ETag and the header Cache-Control: private, no-cache.

Responses

  • 200any

POST/app/widget-plugins/report​

Report refused requests and frame failures

Stores the reports that the web app sends when a plugin's frame policy refuses a request, and the failure of a frame, for the plugin version in the body. The answer is { stored }, the number of reports that the API kept.

Request body

application/jsonReportBodyrequired
ReportBody
  • failureenum | null

    How the frame failed, if it did: sandbox-failed, integrity-failed, load-failed, plugin-error, unresponsive or ended.

    One of"sandbox-failed""integrity-failed""load-failed""plugin-error""unresponsive""ended"
  • plugin_idstringrequiredpattern ^[a-z][a-z0-9-]{1,47}$

    The id of the plugin.

  • reportsReport[]maxItems 50

    The requests that the frame policy refused.

    2 nested properties
    • directivestringrequiredmaxLength 32

      The directive of the frame policy that refused the request.

    • originstringrequiredmaxLength 255

      The origin that the policy refused.

  • versionstringrequiredpattern ^(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})\.(0|[1-9]\d{0,5})$

    The version of the plugin.

Responses

  • 200any

GET/app/widget-plugins/widgets-schema​

Get the widgets.json schema of the user's organization

Returns the JSON Schema of widgets.json, extended with the widget types that the organization's plugins add. The answer carries an ETag, and a request whose If-None-Match names it receives 304. A superuser can read the schema of another organization with the query parameter entity, and other users receive 403 when they name one.

Query parameters

  • entitystring (uuid) | null

    The UUID of the organization whose schema to read. Only a superuser may name one.

Responses

  • 200any

POST/app/widget-plugins/{plugin_id}/backend/{route_id}​

Call a route of a plugin's backend

Calls a route of the plugin's backend on behalf of the signed-in user. The body is {"widget": "<widget id>", "instance": "<id>", "args": {...}}, and the answer is { body }. Answers 404 when the plugin, the widget or the route does not exist, 422 when the body is not valid, 413 when it is too large, and a refusal with { code, message } when the call is not allowed or fails.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • route_idstringrequired

    The id of a backend route that the plugin's manifest declares.

Responses

  • 200any

POST/app/widget-plugins/{plugin_id}/proxy/{proxy_id}​

Call a proxy of a plugin

Runs one of the proxies that the plugin's manifest declares on behalf of the signed-in user. The body is {"widget": "<widget id>", "args": {...}}, and the answer is { content_type, body }. Answers 404 when the plugin, the widget or the proxy does not exist, 422 when the body is not valid, 413 when it is too large, and a refusal with { code, message } when the call is not allowed or fails.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • proxy_idstringrequired

    The id of a proxy that the plugin's manifest declares.

Responses

  • 200any

GET/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets​

List the presets of a plugin widget

Returns { presets, limit }: the signed-in user's own presets of the widget, then the presets that the organization publishes, each group ordered by name, and how many presets the user may keep of the widget. Each preset is { id, name, scope, is_default, config, state, updated_at }, where scope is user or org. Answers 404 when the user may not use the widget.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

Responses

  • 200any

POST/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets​

Save a preset of a plugin widget

Saves the settings and the state in the request as a preset of the signed-in user, which they can apply on any of their dashboards, and returns it. Making it the default replaces the user's previous default for the widget. Answers 404 when the user may not use the widget, 409 when the user already keeps as many presets of the widget as the organization allows, 422 when the name or the settings are not valid, and 413 when the state is too large.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

Request body

application/jsonPresetBodyrequired
PresetBody
  • configobject | null

    The values of the widget's settings. They must satisfy the widget's settings schema.

  • is_defaultbooleandefault false

    Whether the preset is the default, which a new card of the widget starts from.

  • namestringrequiredmaxLength 200

    The name of the preset, 1 to 80 characters once trimmed.

  • stateany

    The plugin's own state of the widget, at most 64 KiB of JSON.

Responses

  • 200any

PATCH/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}​

Change a preset of a plugin widget

Applies the changes in the request to one of the signed-in user's own presets and returns it. Making it the default replaces the user's previous default for the widget. Answers 404 when the preset is not one of the user's own, 422 when the name or the settings are not valid, and 413 when the state is too large.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

  • preset_idstring (uuid)required

    The id of the preset.

Request body

application/jsonPresetChangesrequired
PresetChanges
  • configobject | null

    The new values of the widget's settings, or null to clear them. They must satisfy the widget's settings schema.

  • is_defaultboolean | null

    Whether the preset is the default, which a new card of the widget starts from.

  • namestring | null

    The new name of the preset, 1 to 80 characters once trimmed.

  • stateany

    The plugin's new state of the widget, at most 64 KiB of JSON.

Responses

  • 200any

DELETE/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}​

Delete a preset of a plugin widget

Deletes one of the signed-in user's own presets. Answers 404 when the preset is not one of the user's own.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • widget_idstringrequired

    The id of the widget.

  • preset_idstring (uuid)required

    The id of the preset.

Responses

  • 200any

GET/app/widget-plugins/{plugin_id}/{digest}/files/{file_path}​

Download a file of a plugin version

Returns a file of the approved plugin version whose digest is in the path, as application/octet-stream with Content-Disposition: attachment. The API checks the file against its recorded hash and lets the browser cache it for good. The user must be allowed to use the plugin.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • digeststringrequired

    The digest of the plugin version.

  • file_pathstringrequired

    The path of the file inside the plugin version.

Responses

  • 200any

POST/internal/plugin-broker/data/{data_source_id}​

Read from a data source for a plugin backend

Lets a plugin's backend read through FINOS Workspace from the backend that an organization mapped to the data source. The caller proves the call with the header X-Workspace-Call, and the body is { path, method, query, body }, where path starts with / below the mapped backend's address. Browsers do not call this route. Answers 404 when the data source does not exist, 422 when the body is not valid, and a refusal with { code, message } when the call is not allowed or fails.

Path parameters

  • data_source_idstringrequired

    The id of the data source that the organization mapped to a backend.

Responses

  • 200any

GET/plugins​

List the plugins at the deployment

Returns every plugin that a rescan has found, ordered by id. Each entry has the plugin's status, its active version, the newer version that waits for approval, its overrides, the organizations that enabled it, its versions with their reviews, the state of its secrets and the state of its backend. The field enabled says whether the deployment has the plugin feature turned on. Only a superuser can call it.

Responses

  • 200any

POST/plugins/rescan​

Rescan the plugin directory

Reads every version directory of the plugins directory, validates the manifests, hashes the files, and records each version as discovered, or as blocked with the reason. The API scans only when someone asks, and never at startup. Only a superuser can call it.

Responses

  • 200any

GET/plugins/{plugin_id}​

Get a plugin

Returns one plugin with the same detail as the listing, and adds every organization with whether the plugin is enabled for it, and the plugin's latest events. Answers 404 when no plugin has that id. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

DELETE/plugins/{plugin_id}​

Forget a plugin

Deletes the record of a plugin and its secrets. Answers 409 unless the files of all its versions are gone. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

POST/plugins/{plugin_id}/backend/check​

Check a plugin's backend now

Contacts the plugin's registered backend, when it has one, and returns the state of its registration and identity. Answers 409 when no version of the plugin is active. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

GET/plugins/{plugin_id}/csp-reports​

List the requests that a plugin's frame was refused

Returns the reports of requests that the plugin's frame policy refused, one for each directive and origin, most frequent first, with the version, the organization, the number of times it occurred and when it was first and last seen. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

PUT/plugins/{plugin_id}/entities​

Enable or disable a plugin for every organization

Sets whether the plugin is enabled for all organizations and returns how many organizations it changed, in the field entities. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Request body

application/jsonAllEntitiesChangesrequired
AllEntitiesChanges
  • enabledbooleanrequired

    Whether the plugin is enabled for every organization.

Responses

  • 200any

PUT/plugins/{plugin_id}/entities/{entity_uuid}​

Change a plugin for one organization

Applies the changes in the request to what one organization does with the plugin: enabling it, narrowing its permissions, frame sources and server hosts, mapping its data sources to the organization's backends, filling in its settings, and choosing which plugin renders a widget type. Answers 404 when the organization does not exist. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • entity_uuidstring (uuid)required

    The UUID of the organization.

Request body

application/jsonEntityChangesrequired
EntityChanges
  • csp_narrowmap<string, string[]> | null

    The frame sources that the organization removes, by directive.

  • data_sourcesmap<string, string (uuid) | null> | null

    The organization's backend for each data source that the plugin declares, by data source id. A null value clears the mapping.

  • enabledboolean | null

    Whether the organization enables the plugin.

  • handlersmap<string, string | null> | null

    For each widget type that the plugin handles, the id of the plugin widget that renders it for the organization, or null to clear the choice.

  • narrowed_permissionsstring[] | null

    The permissions that the organization removes from what the plugin may do.

  • preset_limitinteger | null

    How many presets each user may keep of each of the plugin's widgets, or null for the default of 100.

  • server_network_narrowstring[] | null

    The server hosts that the organization removes.

  • settingsobject | null

    The values of the plugin's settings.

Responses

  • 200any

GET/plugins/{plugin_id}/events​

List the events of a plugin

Returns the recorded events of the plugin, newest first: versions that were found, changed, gone or back, approvals, blocks, revocations, restores, overrides, enablement, secrets and backend mismatches. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

PUT/plugins/{plugin_id}/overrides​

Set the overrides of a plugin

Replaces the plugin's overrides of the frame policy (csp) and of the server network (server_network) with the ones in the request, after checking them. confirmations names the risky choices that the superuser accepts. Answers 422 with the list of errors when an override is not valid, and 404 when no plugin has that id. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Request body

application/jsonOverridesBodyrequired
OverridesBody
  • confirmations("insecure-scheme" | "private-host" | "remote-script")[]

    The risky choices that the superuser confirms: insecure-scheme, private-host or remote-script.

  • cspmap<string, string[]> | null

    The override of the frame policy, as the sources that each directive allows.

  • server_networkstring[] | null

    The override of the server network: the hosts that the plugin's server side may reach.

Responses

  • 200any

POST/plugins/{plugin_id}/restore​

Restore a revoked plugin

Marks the plugin as enabled again when it has an active version, and as disabled when it has none, and resets the state of its backend. Answers 404 when no plugin has that id. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

POST/plugins/{plugin_id}/revoke​

Revoke a plugin

Marks the plugin as revoked, so that it stops serving its widgets until a superuser restores it. The versions and the settings stay. Answers 404 when no plugin has that id. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

Responses

  • 200any

PUT/plugins/{plugin_id}/secrets/{name}​

Set a plugin secret

Stores the value of a secret that a version of the plugin declares. The body is {"value": "<the secret>"}. Answers 404 when no version declares the secret, 409 when the deployment sets the secret itself, and 422 when the body or the value is not valid. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • namestringrequired

    The name of the secret that the plugin declares.

Responses

  • 200any

DELETE/plugins/{plugin_id}/secrets/{name}​

Clear a plugin secret

Deletes the stored value of a plugin's secret. Answers 404 when no value is stored. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • namestringrequired

    The name of the secret that the plugin declares.

Responses

  • 200any

POST/plugins/{plugin_id}/versions/{version}/approve​

Approve a plugin version

Approves a version that the superuser reviewed. The request's digest must be the digest that the version has now, and acknowledged lists every request that the version adds to what the active version asked for. The first approval enables the plugin at the deployment, and approving a newer version retires the active one. Answers 404 when the version does not exist, and 409 when the version cannot be approved in its state or its files changed since the review. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • versionstringrequired

    The version of the plugin, as major.minor.patch.

Request body

application/jsonApproveBodyrequired
ApproveBody
  • acknowledgedstring[]maxItems 500

    The requests of the version that the superuser acknowledges.

  • digeststringrequiredmaxLength 80

    The digest of the version as the superuser reviewed it. The approval fails when the digest has changed.

Responses

  • 200any

POST/plugins/{plugin_id}/versions/{version}/develop​

Start the next version of a plugin

Copies an approved version of the plugin to the next patch, minor or major number, rewrites the version and the checksum in the copy's manifest, and records the copy as a version in development. The API serves the copy from its files as they change until a superuser approves it. Only one version of a plugin is in development at a time. Answers the plugin id, the new version and its path. Answers 404 when the plugin or the version does not exist, and 409 when the deployment is not a local stack, where MODE is local, when the version is not approved, when another version is in development, or when the plugins directory cannot be written. Only a superuser can call it.

Path parameters

  • plugin_idstringrequired

    The id of the plugin.

  • versionstringrequired

    The approved version, as major.minor.patch, that the new version starts from.

Request body

application/jsonDevelopBodyrequired
DevelopBody
  • bump"patch" | "minor" | "major"required

    Which part of the version number to raise: patch, minor or major.

Responses

  • 200any

workspace-mcp​

These routes manage the personal access tokens and the bridge session of the FINOS Workspace MCP server, which FINOS Workspace MCP server describes.

POST/app/workspace-mcp/bridge/session/start​

Start a bridge session for the open tab

Starts a session through which the FINOS Workspace MCP server sends commands to the signed-in user's browser tab, and returns the session with the address of the WebSocket that the tab then opens. The request names the client and the dashboard and inner tab that the tab shows.

Request body

application/jsonBrowserSessionStartRequestrequired
BrowserSessionStartRequest
  • client_namestringdefault "workspace-ui"

    The name of the client that opens the session.

  • current_dashboard_idstring | null

    The dashboard that the tab shows.

  • current_tab_idstring | null

    The inner tab that the tab shows.

Responses

GET/app/workspace-mcp/tokens​

List the user's FINOS Workspace MCP tokens

Returns the personal access tokens that the signed-in user created for the FINOS Workspace MCP server and has not revoked, newest first. A token's secret is shown only once, when it is created.

Responses

  • TokenMetadata
    • created_dateany | null

      When the token was created.

    • last_used_atany | null

      When the token last authenticated a request. It is empty when it never did.

    • namestringrequired

      The name that the user gave the token.

    • token_prefixstringrequired

      The first characters of the token, which identify it in a list.

    • token_typestringrequired

      The kind of token.

    • updated_dateany | null

      When the token was last changed.

    • uuidstring (uuid)required

      The UUID of the token.

POST/app/workspace-mcp/tokens​

Create a FINOS Workspace MCP token

Creates a personal access token with the given name for the FINOS Workspace MCP server and returns it. The field token holds the secret, and this answer is the only time that it can be read, because the API stores only a hash of it.

Request body

application/jsonTokenCreateRequestrequired
TokenCreateRequest
  • namestringrequiredminLength 1maxLength 100

    The name that the user gives the token.

Responses

  • TokenCreateResponse
    • created_dateany | null

      When the token was created.

    • last_used_atany | null

      When the token last authenticated a request. It is empty when it never did.

    • namestringrequired

      The name that the user gave the token.

    • tokenstringrequired

      The token's secret. Only this answer shows it.

    • token_prefixstringrequired

      The first characters of the token, which identify it in a list.

    • token_typestringrequired

      The kind of token.

    • updated_dateany | null

      When the token was last changed.

    • uuidstring (uuid)required

      The UUID of the token.

DELETE/app/workspace-mcp/tokens/{token_uuid}​

Revoke a FINOS Workspace MCP token

Revokes the user's token with the given UUID, so that it no longer authenticates. A UUID that is not one of the user's active tokens is ignored, and the answer is 204 in both cases.

Path parameters

  • token_uuidstring (uuid)required

    The UUID of the token.

Responses

  • 204No content

workspace-tools​

These routes list the FINOS Workspace's own tools for the embedded agent and prepare a call to one of them.

GET/app/workspace-tools​

List the tools that FINOS Workspace offers the Copilot

Returns the tools of FINOS Workspace's own MCP server that the signed-in user's roles allow, each with its name, description and input schema, and the URL that identifies the server.

Responses

  • WorkspaceTools
    • toolsWorkspaceTool[]required

      The tools that the user's roles allow.

      4 nested properties
      • annotationsobject | null

        Hints about the tool, such as whether it only reads.

      • descriptionstring | null

        What the tool does.

      • inputSchemaobjectrequired

        The JSON Schema of the tool's input.

      • namestringrequired

        The tool's name.

    • urlstringrequired

      The address that identifies the tool server.

POST/app/workspace-tools/prepare​

Prepare a call to one of the tools

Validates a call to a tool of FINOS Workspace's own MCP server and returns either the command that the web app then carries out in the user's tab, or the result of a tool that needs no command. Answers 403 when the user's roles do not allow the tool and 404 when there is no such tool. A call that fails validation answers with an invalid request result instead of an error status.

Request body

application/jsonWorkspaceToolCallrequired
WorkspaceToolCall
  • argumentsobject

    The tool's arguments.

  • namestringrequiredminLength 1maxLength 200

    The name of the tool to call.

Responses

  • WorkspaceToolCallResult
    • commandobject | null

      The command that the web app carries out in the user's tab.

    • resultobject | null

      The result of a tool that needs no command.

service​

These routes carry no tag. They are the root path and the two health checks, /health and /healthz.

GET/​

Check that the API is running

Answers success with the status 200 while the API runs. A request to /health or /healthz needs no Origin header, and every other path, including /, needs one.

Responses

  • 200any

GET/health​

Check that the API is running

Answers success with the status 200 while the API runs. A request to /health or /healthz needs no Origin header, and every other path, including /, needs one.

Responses

  • 200any

GET/healthz​

Check that the API is running

Answers success with the status 200 while the API runs. A request to /health or /healthz needs no Origin header, and every other path, including /, needs one.

Responses

  • 200any

Metrics​

The setting PROMETHEUS turns the metrics on. It is off by default, and with it off the API has no /metrics route and does not sample its runtime. With it on, the API serves metrics in Prometheus's text format in two places, and both show all its worker processes together.

  • GET /metrics on the API's port. The route passes through the origin check like every other route, so a request without an allowed Origin header receives the status 403. The API compresses the answer with gzip when the client accepts it.
  • A second listener on port 6970. The main process of the web server serves it, and it checks neither the origin nor a token. A scraper uses this port.

The API runs several worker processes, and each one writes its counters to files that the answer reads, so the counters and the histograms are the totals of the whole API, and a worker that the server replaces leaves its counts in them. The gauges of the runtime metrics describe one worker's event loop, thread pool and database pools, so they have one series for each live worker, which the label pid tells apart. The runtime metrics are sampled every RUNTIME_METRICS_INTERVAL seconds, 2 seconds by default. The API serves the metrics below and the metrics of the widget plugins, which Plugin lifecycle and administration lists, and no others.

MetricTypeLabelsWhat it counts
payment_backend_fastapi_http_request_duration_secondshistogram
  • handler
  • method
  • status
Duration of HTTP requests in seconds
payment_backend_fastapi_http_requests_totalcounter
  • handler
  • method
  • status
Total number of requests by method, status and handler.
payment_backend_fastapi_http_response_size_bytessummary
  • handler
  • method
  • status
Content bytes of responses.
db_pool_connectionsgauge
  • engine: sync_read, sync_write, async_read, async_write, async_validate
  • state: checked_out, checked_in, size, overflow
SQLAlchemy connection pool counters
event_loop_lag_secondsgaugenoneEvent loop scheduling delay (elapsed beyond the sampler's sleep)
threadpool_tokensgauge
  • state: borrowed, total
anyio default threadpool capacity limiter (FastAPI sync routes)