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
/admin/appsReturns 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
- 200AppReturn[]
AppReturn
created_datestring (date-time)requiredWhen the backend was created.
enabledbooleanrequiredWhether the backend is enabled. A disabled backend is unavailable to its users.
namestringrequiredThe backend's name.
updated_datestring (date-time)requiredWhen the backend was last changed.
urlstringrequiredThe backend's address.
user_emailstring | nullThe email address of the user who connected the backend. It is null for a backend of the organization.
user_uuidstring (uuid) | nullThe UUID of the user who connected the backend. It is null for a backend of the organization.
uuidstring (uuid)requiredThe UUID of the backend.
PATCH/admin/apps/{app_uuid}
Enable or disable a backend of the organization or its users
/admin/apps/{app_uuid}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)requiredThe UUID of the backend.
Request body
AppEnabledPut
enabledbooleanrequiredWhether the backend is enabled.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/admin/apps/{app_uuid}
Delete a backend of the organization or its users
/admin/apps/{app_uuid}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)requiredThe UUID of the backend.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/admin/create-user
Create a user
/admin/create-userCreates 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
UserCreateAdmin
emailstring (email)requiredThe user's email address.
first_namestring | nullThe user's first name.
last_namestring | nullThe user's last name.
messagestring | nullA message for the new user, up to 500 characters.
permissions_uuidstring (uuid)requiredThe UUID of the permissions map that gives the user their type.
rolestring (uuid) | nullThe UUID of a role to give the user.
Responses
PasswordResetLink
expires_atstring (date-time)requiredWhen the link stops working.
linkstringrequiredThe single-use link at which the user chooses a new password.
successbooleanrequiredWhether the operation succeeded.
GET/admin/entity
Get the organization's two-factor requirement
/admin/entityReturns whether the admin's organization requires two-factor authentication, in the field require_authenticator.
Responses
AdminPutEntity
require_authenticatorboolean | nullWhether the organization requires two-factor authentication. Leave it out to keep the current value.
PATCH/admin/entity
Change the organization's two-factor requirement
/admin/entityStores 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
AdminPutEntity
require_authenticatorboolean | nullWhether the organization requires two-factor authentication. Leave it out to keep the current value.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/entity-map
List the permission maps of the organization
/admin/entity-mapReturns 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
- 200EntityMapReturn[]
EntityMapReturn
The organization that the map belongs to.
entity_uuidstring (uuid)requiredThe UUID of the organization.
namestringrequiredThe user type that the map stands for: Admin, Developer or User.
uuidstring (uuid)requiredThe UUID of the permissions map.
POST/admin/register
Invite a user
/admin/registerRecords 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
UserCreateAdmin
emailstring (email)requiredThe user's email address.
first_namestring | nullThe user's first name.
last_namestring | nullThe user's last name.
messagestring | nullA message for the new user, up to 500 characters.
permissions_uuidstring (uuid)requiredThe UUID of the permissions map that gives the user their type.
rolestring (uuid) | nullThe UUID of a role to give the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/admin/register/{invite_uuid}
Revoke an invitation
/admin/register/{invite_uuid}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)requiredThe UUID of the invitation.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/admin/reset-2fa/{user_uuid}
Reset a user's two-factor authentication
/admin/reset-2fa/{user_uuid}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)requiredThe UUID of the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/admin/reset-password/{user_uuid}
Reset a user's password
/admin/reset-password/{user_uuid}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)requiredThe UUID of the user.
Responses
PasswordResetLink
expires_atstring (date-time)requiredWhen the link stops working.
linkstringrequiredThe single-use link at which the user chooses a new password.
successbooleanrequiredWhether the operation succeeded.
GET/admin/role
List the roles of the organization
/admin/roleReturns the roles of the admin's organization that are not deleted, each with the emails of its users.
Responses
- 200GetRoleWithUsers[]
GetRoleWithUsers
copilot_calls_dayinteger | nullrequiredThe daily limit of Copilot calls that the role sets. It is empty when the role sets none.
copilot_tokens_dayinteger | nullrequiredThe daily limit of Copilot tokens that the role sets. It is empty when the role sets none.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleanrequiredWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleanrequiredWhether the role lets its users search the web.
sharing"none" | "receive" | "share"requiredThe sharing level that the role gives:
none,receiveorshare.updated_datestring (date-time)requiredWhen the role was last changed.
upload_size_gbinteger | nullrequiredThe limit of stored files in gigabytes that the role sets. It is empty when the role sets none.
usersstring (email)[]requiredThe email addresses of the role's users.
uuidstring (uuid)requiredThe UUID of the role.
POST/admin/role
Create a role
/admin/roleCreates 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
PostRole
copilot_calls_dayinteger | nullThe daily limit of Copilot calls for the role's users. Leave it empty for no limit.
copilot_tokens_dayinteger | nullThe daily limit of Copilot tokens for the role's users. Leave it empty for no limit.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleandefaulttrueWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleandefaulttrueWhether the role lets its users search the web.
sharing"none" | "receive" | "share"default"none"The sharing level that the role gives:
none,receiveorshare.upload_size_gbinteger | nullThe limit of stored files in gigabytes for the role's users. Leave it empty for no limit.
usersstring (email)[] | nullThe email addresses of the users that the role starts with.
uuidstring (uuid) | nullThe UUID for the new role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/role-permissions-audit-logs
List the audit log of role changes
/admin/role-permissions-audit-logsReturns 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) | nullReturn only entries created at or after this time.
end_datestring (date-time) | nullReturn only entries created at or before this time.
actionRoleAuditAction | nullReturn only entries of this action.
resource_typeRoleResourceType | nullReturn only entries about this kind of resource.
role_uuidstring (uuid) | nullReturn only entries about this role.
Responses
- 200RoleAuditLogReturn[]
RoleAuditLogReturn
What kind of change it was.
created_atstring (date-time)requiredWhen the change happened.
detailsobjectrequiredDetails of the change, which depend on the action.
details_msgstring | nullA sentence that describes the change.
entity_uuidstring (uuid)requiredThe UUID of the organization.
performed_by_emailstringrequiredThe email address of the admin who made the change.
The kind of resource that the change concerned.
resource_uuidstring (uuid)requiredThe UUID of the resource that the change concerned.
role_namestringrequiredThe name of the role.
role_uuidstring (uuid) | nullThe UUID of the role that changed.
uuidstring (uuid)requiredThe UUID of the entry.
GET/admin/role-permissions/{role_uuid}
List the access that a role grants
/admin/role-permissions/{role_uuid}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)requiredThe UUID of the role.
Responses
- 200RolePermissions[]
RolePermissions
access"no-access" | "access" | "full-access"requiredThe access level that the role gives:
no-access,accessorfull-access.category"data-connectors" | "templates" | "prompts"requiredThe group that the item belongs to:
data-connectors,templatesorprompts.file_extensionenum | nullThe file's extension, for a file.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"promptPrompt | nullThe prompt, for a prompt.
templatesTemplateAccess[] | nullThe access to each template of a backend.
type"backend" | "file" | "prompt"requiredWhat the permission is about: a
backend, afileor aprompt.uuidstring (uuid)requiredThe UUID of the backend, the file widget or the prompt.
widgetsWidgetAccess[] | nullThe access to each widget of a backend.
PUT/admin/role-permissions/{role_uuid}
Set the access of a role to backends, files and prompts
/admin/role-permissions/{role_uuid}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)requiredThe UUID of the role.
Request body
RolePermissions
access"no-access" | "access" | "full-access"requiredThe access level that the role gives:
no-access,accessorfull-access.category"data-connectors" | "templates" | "prompts"requiredThe group that the item belongs to:
data-connectors,templatesorprompts.file_extensionenum | nullThe file's extension, for a file.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"promptPrompt | nullThe prompt, for a prompt.
templatesTemplateAccess[] | nullThe access to each template of a backend.
type"backend" | "file" | "prompt"requiredWhat the permission is about: a
backend, afileor aprompt.uuidstring (uuid)requiredThe UUID of the backend, the file widget or the prompt.
widgetsWidgetAccess[] | nullThe access to each widget of a backend.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/role/{role_uuid}
Get a role
/admin/role/{role_uuid}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)requiredThe UUID of the role.
Responses
GetRoleWithUsers
copilot_calls_dayinteger | nullrequiredThe daily limit of Copilot calls that the role sets. It is empty when the role sets none.
copilot_tokens_dayinteger | nullrequiredThe daily limit of Copilot tokens that the role sets. It is empty when the role sets none.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleanrequiredWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleanrequiredWhether the role lets its users search the web.
sharing"none" | "receive" | "share"requiredThe sharing level that the role gives:
none,receiveorshare.updated_datestring (date-time)requiredWhen the role was last changed.
upload_size_gbinteger | nullrequiredThe limit of stored files in gigabytes that the role sets. It is empty when the role sets none.
usersstring (email)[]requiredThe email addresses of the role's users.
uuidstring (uuid)requiredThe UUID of the role.
PATCH/admin/role/{role_uuid}
Change a role
/admin/role/{role_uuid}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)requiredThe UUID of the role.
Request body
PatchRole
copilot_calls_dayinteger | nullThe role's new daily limit of Copilot calls. Null removes the limit.
copilot_tokens_dayinteger | nullThe role's new daily limit of Copilot tokens. Null removes the limit.
descriptionstring | nullThe role's new description.
fetch_from_webboolean | nullWhether the role lets its users fetch pages from the web.
namestring | nullThe role's new name.
search_webboolean | nullWhether the role lets its users search the web.
sharing"none" | "receive" | "share" | nullThe role's new sharing level:
none,receiveorshare.upload_size_gbinteger | nullThe role's new limit of stored files in gigabytes. Null removes the limit.
usersstring (email)[] | nullThe email addresses that the role's members become. Users that the list leaves out are removed from the role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/admin/role/{role_uuid}
Delete a role
/admin/role/{role_uuid}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)requiredThe UUID of the role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/role/{role_uuid}/copilot-access
Get the Copilot access of a role
/admin/role/{role_uuid}/copilot-accessReturns 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)requiredThe UUID of the role.
Responses
RoleCopilotAccess
mcpMcpGrant[]The MCP tools that the role grants.
2 nested properties
server_urlstringrequiredminLength 1maxLength 400The address of the MCP server.
tool_namestringdefault"*"minLength 1maxLength 200The name of the tool, or
*for every tool of the server.
modelsCopilotModelGrant[]The agents and models that the role grants.
2 nested properties
agent_idstringrequiredminLength 1maxLength 255The id of the agent.
model_idstringrequiredminLength 1maxLength 255The 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
/admin/role/{role_uuid}/copilot-accessReplaces 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)requiredThe UUID of the role.
Request body
RoleCopilotAccess
mcpMcpGrant[]The MCP tools that the role grants.
2 nested properties
server_urlstringrequiredminLength 1maxLength 400The address of the MCP server.
tool_namestringdefault"*"minLength 1maxLength 200The name of the tool, or
*for every tool of the server.
modelsCopilotModelGrant[]The agents and models that the role grants.
2 nested properties
agent_idstringrequiredminLength 1maxLength 255The id of the agent.
model_idstringrequiredminLength 1maxLength 255The id of the model, or
*for every model of the agent.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/share-requests
List the share requests of the organization
/admin/share-requestsReturns 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
- 200ShareRequestReturn[]
ShareRequestReturn
created_datestring (date-time) | nullrequiredWhen the request was made.
item_namestringrequiredThe name of the dashboard or the app.
item_type"dashboard" | "app"requiredWhat the request shares: a
dashboardor anapp.item_uuidstring (uuid)requiredThe UUID of the dashboard or the app.
permissionsstring | nullrequiredWhat the recipient may do with the item:
vieworcomment.The user who receives the share. It is empty when a dashboard is shared with the whole organization.
The user who asked to share.
uuidstring (uuid)requiredThe UUID of the share request.
POST/admin/share-requests/{request_uuid}/approve
Approve a share request
/admin/share-requests/{request_uuid}/approveCarries 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)requiredThe UUID of the share request.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/admin/share-requests/{request_uuid}/decline
Decline a share request
/admin/share-requests/{request_uuid}/declineDeletes the request without sharing anything. Answers 404 when the request does not belong to the organization.
Path parameters
request_uuidstring (uuid)requiredThe UUID of the share request.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/theme-presets
List the theme presets
/admin/theme-presetsReturns the organization's theme presets and the UUID of the active one.
Responses
- 200ThemePresets
ThemePresets
active_presetstring (uuid) | nullThe UUID of the active preset. It is empty when no preset is active.
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 60The preset's name.
uuidstring (uuid)requiredThe UUID of the preset.
PUT/admin/theme-presets/active
Select the active theme preset
/admin/theme-presets/activeMakes 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
ThemeActivePreset
uuidstring (uuid) | nullrequiredThe UUID of the preset to make active, or null to clear the selection.
Responses
- 200ThemePresets
ThemePresets
active_presetstring (uuid) | nullThe UUID of the active preset. It is empty when no preset is active.
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 60The preset's name.
uuidstring (uuid)requiredThe UUID of the preset.
PUT/admin/theme-presets/{preset_uuid}
Create or replace a theme preset
/admin/theme-presets/{preset_uuid}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)requiredThe UUID of the theme preset.
Request body
ThemePresetBody
darkmap<string, string>The theme's properties for dark mode.
lightmap<string, string>The theme's properties for light mode.
namestringrequiredminLength 1maxLength 60The preset's name.
Responses
- 200ThemePreset
ThemePreset
darkmap<string, string>The theme's properties for dark mode.
lightmap<string, string>The theme's properties for light mode.
namestringrequiredminLength 1maxLength 60The preset's name.
uuidstring (uuid)requiredThe UUID of the preset.
DELETE/admin/theme-presets/{preset_uuid}
Delete a theme preset
/admin/theme-presets/{preset_uuid}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)requiredThe UUID of the theme preset.
Responses
- 200ThemePresets
ThemePresets
active_presetstring (uuid) | nullThe UUID of the active preset. It is empty when no preset is active.
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 60The preset's name.
uuidstring (uuid)requiredThe UUID of the preset.
PATCH/admin/theme-settings
Change the organization's theme settings
/admin/theme-settingsMerges 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
EntityThemeSettings
darkThemeSettings | nullThe theme settings for dark mode.
lightThemeSettings | nullThe theme settings for light mode.
propertiesThemeVariants | nullThe theme properties for light and dark mode.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/admin/usage/{user_uuid}/reset
Reset a user's daily Copilot usage
/admin/usage/{user_uuid}/resetSets 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)requiredThe UUID of the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/user-permissions/{user_uuid}
Get the access of a user
/admin/user-permissions/{user_uuid}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)requiredThe UUID of the user.
Responses
- 200UserPermissions[]
UserPermissions
data_connectorsobject[]requiredThe data connectors that the user can reach, with the user's final access to each.
promptsobject[]requiredThe prompts that the user can reach, with the user's final access to each.
templatesobject[]requiredThe 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
/admin/usersReturns 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
- 200UserAdminReturn[]
UserAdminReturn
emailstringrequiredThe user's email address.
first_namestring | nullThe user's first name.
last_activestring (date-time) | nullWhen the user was last active.
last_loginstring (date-time) | nullWhen the user last signed in.
last_namestring | nullThe user's last name.
permissions_uuidstring (uuid) | nullThe UUID of the user's permissions map.
rolestringrequiredThe user's type: Admin, Developer or User.
source"user" | "invite"requiredWhether the entry is a
useror aninvite.status"active" | "pending" | "revoked" | "expired"default"pending"The state of the account:
active,pending,revokedorexpired.uuidstring (uuid)requiredThe UUID of the user or of the invitation.
PATCH/admin/users/{user_uuid}
Change a user's type
/admin/users/{user_uuid}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)requiredThe UUID of the user.
Request body
UserAdminUpdate
permissions_uuidstring (uuid) | nullThe UUID of the permissions map to move the user to.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/admin/users/{user_uuid}
Delete a user
/admin/users/{user_uuid}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)requiredThe UUID of the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/admin/users/{user_uuid}/remove
Remove a user from the organization
/admin/users/{user_uuid}/removeTakes 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)requiredThe UUID of the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/admin/validate
Check that the caller is an admin
/admin/validateAnswers success when the signed-in user is a user of type Admin, and the status 403 when the user is not.
Responses
SuccessReturn
successbooleanrequiredWhether 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
/app/2faReturns 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_authenticatorbooleanrequiredWhether the user's organization requires two-factor authentication.
two_factor_authbooleanrequiredWhether two-factor authentication is on for the user.
PUT/app/2fa
Turn the user's two-factor authentication on or off
/app/2faSets 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
TwoFactorAuth
two_factor_authbooleanrequiredWhether two-factor authentication is on for the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/access
Get the user's type and sharing level
/app/accessReturns the user's type, Admin, Developer or User, and the sharing level that the user's roles allow.
Responses
- 200UserAccess
UserAccess
sharing"none" | "receive" | "share"requiredThe sharing level that the user's roles allow:
none,receiveorshare.user_type"Admin" | "Developer" | "User" | nullrequiredThe user's type: Admin, Developer or User.
POST/app/copilot-chats
Save the user's Copilot chats
/app/copilot-chatsCreates 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
CopilotChatsCreate
The chats to save, by UUID. Each value is the chat, or
DELETEto delete the chat.
Responses
- 200UsageGet
UsageGet
copilot_calls_limitinteger | nullThe user's daily limit of Copilot calls. It is empty when there is no limit.
copilot_tokens_limitinteger | nullThe user's daily limit of Copilot tokens. It is empty when there is no limit.
file_upload_size_limitnumber | nullThe limit of the user's stored files, in gigabytes. It is empty when there is no limit.
number_copilot_calls_day_countintegerrequiredThe Copilot calls that the user made today.
number_copilot_tokens_day_countintegerdefault0The Copilot tokens that the user used today.
total_file_upload_size_gb_countnumberrequiredThe storage that the user's files use, in gigabytes.
DELETE/app/copilot-chats
Delete all of the user's Copilot chats
/app/copilot-chatsDeletes every Copilot chat of the signed-in user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/copilot-chats/search
Search the user's Copilot chats
/app/copilot-chats/searchReturns 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
querystringrequiredThe text that the chats' content must match
start_datestring (date) | string (date-time) | nullThe earliest date whose chats the search returns
end_datestring (date) | string (date-time) | nullThe latest date whose chats the search returns
Responses
Chat
artifactsobject[] | nullThe artifacts that the chat produced.
createdAtintegerrequiredWhen the chat was created, in milliseconds since 1970.
labelstringrequiredThe chat's title.
The messages of the chat, in order.
15 nested properties
citationsobject[] | nullThe sources that the answer cites.
contentstring | object | nullThe message, as text or as an object for a structured message.
copilotIdstringrequiredThe id of the Copilot that the message belongs to.
copilot_function_call_argumentsobject | nullThe arguments of the function call, as the Copilot gave them.
dataobject | object[] | nullData that the message carries.
extra_stateobject | nullFurther state that the web app keeps with the message.
functionstring | nullThe name of the function that was called.
inputobject | nullThe input of the function call.
isErrorboolean | nullWhether the message reports an error.
isFCboolean | nullWhether the message is a function call or the result of one.
isHiddenboolean | nullWhether the web app hides the message.
Who wrote the message:
ai,human,summary,systemortool.timestampintegerrequiredWhen the message was written, in milliseconds since 1970.
usedPersonalOpenAiKeyboolean | nullWhether the user's own OpenAI key produced the answer.
uuidstring (uuid) | nullThe UUID of the message.
uuidstring | string (uuid) | nullThe UUID of the chat.
ChatInfo
createdAtintegerrequiredWhen the chat was created, in milliseconds since 1970.
labelstringrequiredThe chat's title.
uuidstring | string (uuid) | nullThe UUID of the chat.
GET/app/copilot-chats/{chat_uuid}
Get a Copilot chat
/app/copilot-chats/{chat_uuid}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)requiredThe UUID of the chat to read
Responses
- 200Chat
Chat
artifactsobject[] | nullThe artifacts that the chat produced.
createdAtintegerrequiredWhen the chat was created, in milliseconds since 1970.
labelstringrequiredThe chat's title.
The messages of the chat, in order.
15 nested properties
citationsobject[] | nullThe sources that the answer cites.
contentstring | object | nullThe message, as text or as an object for a structured message.
copilotIdstringrequiredThe id of the Copilot that the message belongs to.
copilot_function_call_argumentsobject | nullThe arguments of the function call, as the Copilot gave them.
dataobject | object[] | nullData that the message carries.
extra_stateobject | nullFurther state that the web app keeps with the message.
functionstring | nullThe name of the function that was called.
inputobject | nullThe input of the function call.
isErrorboolean | nullWhether the message reports an error.
isFCboolean | nullWhether the message is a function call or the result of one.
isHiddenboolean | nullWhether the web app hides the message.
Who wrote the message:
ai,human,summary,systemortool.timestampintegerrequiredWhen the message was written, in milliseconds since 1970.
usedPersonalOpenAiKeyboolean | nullWhether the user's own OpenAI key produced the answer.
uuidstring (uuid) | nullThe UUID of the message.
uuidstring | string (uuid) | nullThe UUID of the chat.
GET/app/copilot-keys
Get the state of the user's own Copilot keys
/app/copilot-keysReturns which provider keys the signed-in user has saved. It never returns the keys.
Responses
CopilotKeysStatus
has_openai_keybooleandefaultfalseWhether the user saved an OpenAI key.
has_perplexity_keybooleandefaultfalseWhether the user saved a Perplexity key.
PUT/app/copilot-keys
Save the user's own Copilot keys
/app/copilot-keysSaves the provider keys in the request for the signed-in user and returns which keys are saved.
Request body
CopilotProviderKeys
openai_api_keystring | nullThe user's own OpenAI key.
perplexity_api_keystring | nullThe user's own Perplexity key.
Responses
CopilotKeysStatus
has_openai_keybooleandefaultfalseWhether the user saved an OpenAI key.
has_perplexity_keybooleandefaultfalseWhether the user saved a Perplexity key.
GET/app/copilot/access
Get the user's Copilot access
/app/copilot/accessReturns 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.
mcpMcpGrant[]The MCP tools that the role grants.
2 nested properties
server_urlstringrequiredminLength 1maxLength 400The address of the MCP server.
tool_namestringdefault"*"minLength 1maxLength 200The name of the tool, or
*for every tool of the server.
modelsCopilotModelGrant[]The agents and models that the role grants.
2 nested properties
agent_idstringrequiredminLength 1maxLength 255The id of the agent.
model_idstringrequiredminLength 1maxLength 255The 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
/app/copilot/authorizeReports 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
CopilotAuthorize
agent_idstring | nullThe id of the agent.
modelstring | nullThe id of the model.
toolsCopilotToolRef[]The MCP tools that the agent wants to use.
2 nested properties
tool_namestringrequiredThe name of the tool.
urlstringrequiredThe address of the MCP server.
Responses
CopilotAuthorizeResult
allowedbooleanrequiredWhether the user may use the agent, the model and the tools.
denied_modelstring | nullThe model that the user may not use.
denied_toolsCopilotToolRef[]The tools that the user may not use.
2 nested properties
tool_namestringrequiredThe name of the tool.
urlstringrequiredThe address of the MCP server.
disabled_capabilitiesCopilotCapability[]The Copilot capabilities that the user's roles switch off.
provider_keysCopilotProviderKeys | nullThe 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
/app/copilot/tokenMints 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
- 200AgentToken
AgentToken
expires_inintegerrequiredHow many seconds the token stays valid.
tokenstringrequiredThe bearer token.
GET/app/custom-copilot
List the user's custom Copilots
/app/custom-copilotReturns the custom Copilots that the signed-in user saved.
Responses
- 200CustomCopilot-Output[]
CustomCopilot-Output
copilotsobject[] | nullThe agent descriptors that the address serves.
headerNamesstring[]The names of the stored credentials
urlstringrequiredmaxLength 200The address of the agent.
uuidstring (uuid) | nullThe UUID of the custom Copilot.
PUT/app/custom-copilot
Create or update a custom Copilot
/app/custom-copilotSaves 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
CustomCopilot-Input
copilotsobject[] | nullThe agent descriptors that the address serves.
headerNamesstring[]The names of the stored credentials
headersobject | nullThe 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 200The address of the agent.
uuidstring (uuid) | nullThe UUID of the custom Copilot.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/custom-copilot/discover
Read an agent's agents.json from the server
/app/custom-copilot/discoverReads 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
AgentDiscoverRequest
headersobject | nullThe credentials being tried; left out, those of the saved connection are used
idstring (uuid) | nullThe saved agent connection whose stored credentials a blank value keeps
urlstringrequiredmaxLength 200The address of the agent connection
Responses
AgentDiscovery
agentsobject | nullThe agents.json the agent answered
statusintegerrequiredThe 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
/app/custom-copilot/{copilot_uuid}/relaySends 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)requiredThe UUID of the agent connection to call
Query parameters
targetstringrequiredThe 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
/app/custom-copilot/{copilot_uuid}/relaySends 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)requiredThe UUID of the agent connection to call
Query parameters
targetstringrequiredThe 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
/app/custom-copilot/{copilot_uuid}/relaySends 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)requiredThe UUID of the agent connection to call
Query parameters
targetstringrequiredThe 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
/app/custom-copilot/{copilot_uuid}/relaySends 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)requiredThe UUID of the agent connection to call
Query parameters
targetstringrequiredThe 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
/app/custom-copilot/{copilot_uuid}/relaySends 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)requiredThe UUID of the agent connection to call
Query parameters
targetstringrequiredThe absolute address to call on the connection's own origin
Responses
- 200No content
DELETE/app/custom-copilot/{uuid}
Delete a custom Copilot
/app/custom-copilot/{uuid}Deletes the user's custom Copilot with that UUID.
Path parameters
uuidstring (uuid)requiredThe UUID of the custom Copilot to delete
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/display-settings
Save the user's display settings
/app/display-settingsReplaces the display settings of the signed-in user with the object in the request.
Request body
UserDisplaySettings
fontSize"small" | "medium" | "large"default"medium"The size of the text:
small,mediumorlarge.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, orverticalfor vertical snapping.lastVisitedPagestring | nulldefault"/app"The last page that the user visited.
quickAddButtonTransparentbooleandefaultfalseWhether the quick add button is drawn transparent.
showWidgetControlsbooleandefaultfalseWhether widget cards always show their controls.
theme"light" | "dark" | nullThe color mode that the user chose,
lightordark. When it is empty, the web app follows the system.virtualizeWidgetsbooleandefaultfalseWhether the web app unloads widgets that are scrolled far out of view.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/google-auth
Sign in with Google
/app/google-authVerifies 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
AuthData
tokenstring | nullThe Google credential.
versionstring | nullThe version of the web app that signs in.
Responses
AppTokenWithContext
accessUserAccess | nullThe user's type and sharing level.
The user's Copilot chats.
copilot_keysCopilotKeysStatus | nullWhich provider keys the user saved.
custom_copilotsCustomCopilot-Output[] | nullThe user's custom Copilots.
dash_syncDashboardComplete | nullThe user's dashboards.
emailstring (email)requiredThe user's email address.
entity_namestring | nullrequiredThe name of the user's organization.
The theme settings of the user's organization.
expiration_datestring (date-time)requiredWhen the session expires.
force_2fabooleanrequiredWhether the user must set up two-factor authentication.
is_first_loginboolean | nulldefaultfalseWhether this is the user's first sign-in.
mcp_serversMCPServer-Output[] | nullThe user's saved MCP servers.
questions_historystring[] | nullThe questions that the user asked the Copilot.
rolestring | nullrequiredThe user's type: Admin, Developer or User.
show_changelogbooleanrequiredWhether the web app should show the change log, because the user last signed in with another version.
temporary_passwordbooleanrequiredWhether the password is temporary and the user must change it.
usageUsageGet | nullThe user's Copilot usage and limits.
userAppUserReturn | nullThe user's profile data.
The apps that the user owns and the apps that others shared with the user.
user_skillsSkillReturn[] | nullThe user's skills.
usernamestring | nullrequiredThe user's username.
uuidstring (uuid)requiredThe user's UUID.
POST/app/login
Sign in with an email and a password
/app/loginChecks 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
AppUserLogin
emailstringrequiredThe user's email address or username.
passwordstringrequiredThe user's password.
rememberbooleandefaultfalseWhether to keep the user signed in for longer.
source"app" | "oauth-app" | nullThe kind of client that signs in:
apporoauth-app. It defaults toapp.totp_tokeninteger | nullThe code from the user's authenticator app. It is needed when the user has an active authenticator.
versionstring | nullThe version of the web app that signs in.
Responses
AppTokenWithContext
accessUserAccess | nullThe user's type and sharing level.
The user's Copilot chats.
copilot_keysCopilotKeysStatus | nullWhich provider keys the user saved.
custom_copilotsCustomCopilot-Output[] | nullThe user's custom Copilots.
dash_syncDashboardComplete | nullThe user's dashboards.
emailstring (email)requiredThe user's email address.
entity_namestring | nullrequiredThe name of the user's organization.
The theme settings of the user's organization.
expiration_datestring (date-time)requiredWhen the session expires.
force_2fabooleanrequiredWhether the user must set up two-factor authentication.
is_first_loginboolean | nulldefaultfalseWhether this is the user's first sign-in.
mcp_serversMCPServer-Output[] | nullThe user's saved MCP servers.
questions_historystring[] | nullThe questions that the user asked the Copilot.
rolestring | nullrequiredThe user's type: Admin, Developer or User.
show_changelogbooleanrequiredWhether the web app should show the change log, because the user last signed in with another version.
temporary_passwordbooleanrequiredWhether the password is temporary and the user must change it.
usageUsageGet | nullThe user's Copilot usage and limits.
userAppUserReturn | nullThe user's profile data.
The apps that the user owns and the apps that others shared with the user.
user_skillsSkillReturn[] | nullThe user's skills.
usernamestring | nullrequiredThe user's username.
uuidstring (uuid)requiredThe user's UUID.
POST/app/logout
Sign out
/app/logoutEnds 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
successbooleanrequiredWhether the operation succeeded.
POST/app/mcp-oauth/complete
Finish signing in to an MCP server
/app/mcp-oauth/completeExchanges 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
MCPOAuthCallback
codestringrequiredminLength 1maxLength 4096The authorization code that the MCP server's authorization server returned.
statestringrequiredminLength 1maxLength 512The state that the sign-in started with, which the redirect carried back.
Responses
MCPOAuthCompleted
server_urlstringrequiredThe address of the MCP server that the user is now signed in to.
POST/app/mcp-oauth/disconnect
Disconnect from an MCP server
/app/mcp-oauth/disconnectDeletes 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
MCPOAuthServer
server_urlstringrequiredmaxLength 2048The address of the MCP server.
Responses
- 204No content
POST/app/mcp-oauth/start
Start signing in to an MCP server
/app/mcp-oauth/startFinds 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
MCPOAuthServer
server_urlstringrequiredmaxLength 2048The address of the MCP server.
Responses
MCPOAuthAuthorization
authorization_urlstringrequiredThe address at which the user grants FINOS Workspace access to the MCP server.
POST/app/mcp-proxy
Forward a request to an MCP server
/app/mcp-proxyForwards 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
MCPProxyRequest
bodyobject | any[] | nullThe body of a POST request
headersmap<string, string> | nullExtra headers of the request
method"GET" | "POST"default"GET"The HTTP method of the request
server_urlstringrequiredmaxLength 2048The address of the MCP server as it is registered for the user
urlstringrequiredmaxLength 8192The address on the server that receives the request
Responses
- 200No content
POST/app/mcp-servers
Save the user's MCP servers
/app/mcp-serversReplaces 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
MCPServers-Input
serversMCPServer-Input[]The user's MCP servers.
9 nested properties
clientNamestring | nullThe name that the server reported for itself.
customHeaderNamesstring[]The names of the headers that the user saved for the server.
customHeadersobject | nullThe headers that the web app sends to the server, by name. The API stores the values and never returns them.
enabledbooleanrequiredWhether the user switched the server on.
hasTokenbooleandefaultfalseWhether the user saved an authorization token for the server.
idstringrequiredThe server's id.
namestringrequiredThe name that the user gave the server.
toolsMCPTool[]The tools that the server offers.
4 nested properties
descriptionstring | nullWhat the tool does, in the server's words.
enabledbooleandefaulttrueWhether the user switched the tool on.
idstringrequiredThe tool's id.
namestringrequiredThe tool's name.
urlstringrequiredThe server's address.
Responses
MCPServers-Output
serversMCPServer-Output[]The user's MCP servers.
8 nested properties
clientNamestring | nullThe name that the server reported for itself.
customHeaderNamesstring[]The names of the headers that the user saved for the server.
enabledbooleanrequiredWhether the user switched the server on.
hasTokenbooleandefaultfalseWhether the user saved an authorization token for the server.
idstringrequiredThe server's id.
namestringrequiredThe name that the user gave the server.
toolsMCPTool[]The tools that the server offers.
4 nested properties
descriptionstring | nullWhat the tool does, in the server's words.
enabledbooleandefaulttrueWhether the user switched the tool on.
idstringrequiredThe tool's id.
namestringrequiredThe tool's name.
urlstringrequiredThe server's address.
GET/app/prompts
List the user's prompts
/app/promptsReturns the prompts that the signed-in user saved.
Responses
- 200Prompt[]
Prompt
createdAtstringrequiredWhen the prompt was created.
idstringrequiredThe prompt's id.
promptstringrequiredThe prompt's text.
updatedAtstringrequiredWhen the prompt was last changed.
widgetsany[] | nullThe widgets that the prompt uses.
POST/app/prompts
Save the user's prompts
/app/promptsMakes 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
Prompt
createdAtstringrequiredWhen the prompt was created.
idstringrequiredThe prompt's id.
promptstringrequiredThe prompt's text.
updatedAtstringrequiredWhen the prompt was last changed.
widgetsany[] | nullThe widgets that the prompt uses.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/reset-password
Choose a new password with a reset link
/app/reset-passwordUses 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
PasswordReset
new_passwordstringrequiredThe 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 128The token from the password reset link.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/resource-permissions
List the user's access to resources
/app/resource-permissionsReturns the access that the user's roles grant, combined across the roles and listed by resource.
Responses
UserRolesPermissionsFlattened
backendsBackendPermissionsModel[] | nullThe backends that the user's roles grant, with the access to each.
filesFilePermissionsModel[] | nullThe file widgets that the user's roles grant, with the access to each.
promptsPromptPermissionsModel[] | nullThe prompts that the user's roles grant, with the access to each.
GET/app/role-permissions
List the access that the user's roles grant
/app/role-permissionsReturns the data connectors, templates and prompts that each of the user's roles grants, with the access level of each.
Responses
UserRolesPermissions
permissionsmap<string, UserRolePermissions>The permissions of each of the user's roles, by role UUID.
GET/app/session
Get the current session
/app/sessionReturns 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
- 200AppSession
AppSession
The user's type and sharing level.
Which provider keys the user saved.
emailstring (email)requiredThe user's email address.
entity_namestring | nullrequiredThe name of the user's organization.
expiration_datestring (date-time)requiredWhen the session expires.
force_2fabooleanrequiredWhether the user must set up two-factor authentication.
rolestring | nullrequiredThe user's type: Admin, Developer or User.
temporary_passwordbooleanrequiredWhether the password is temporary and the user must change it.
usageUsageGet | nullThe user's Copilot usage and limits.
The user's name and display settings.
usernamestring | nullrequiredThe user's username.
uuidstring (uuid)requiredThe user's UUID.
GET/app/sign-in/{provider}/callback
Finish a Microsoft or Okta sign-in
/app/sign-in/{provider}/callbackThe 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"requiredThe identity provider that answered
Query parameters
codestring | nullThe authorization code
statestring | nullThe value the sign-in began with
errorstring | nullSet when the provider refused
Responses
- 303No content
POST/app/sign-in/{provider}/start
Start a Microsoft or Okta sign-in
/app/sign-in/{provider}/startReturns 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"requiredThe identity provider to sign in with
Request body
SignInStart
versionstring | nullThe version of the web app that asks for the sign-in.
Responses
SignInStarted
authorization_urlstringrequiredThe address of the provider's sign-in page, which the browser opens.
POST/app/signup
Ask for an account with an email address
/app/signupEmails 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
SignupRequest
emailstring (email)requiredThe email address that gets the confirmation link.
first_namestring | nullThe user's first name.
last_namestring | nullThe user's last name.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/signup/confirm
Create the account with the signup link
/app/signup/confirmUses 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
PasswordReset
new_passwordstringrequiredThe 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 128The token from the password reset link.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/skills
Create a skill
/app/skillsAdds a skill for the signed-in user and returns all of the user's skills.
Request body
SkillCreate
contentstringrequiredThe skill's instructions.
descriptionstringrequiredWhat the skill does and when to use it.
slugstringrequiredThe skill's short name, in lowercase letters, digits and hyphens.
Responses
- 200SkillReturn[]
SkillReturn
contentstringrequiredThe skill's instructions.
createdDatestring (date-time)requiredWhen the skill was created.
descriptionstringrequiredWhat the skill does and when to use it.
idstring (uuid)requiredThe UUID of the skill, repeated as
id.pluginNamestring | nullThe widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills
slugstringrequiredThe skill's short name, in lowercase letters, digits and hyphens.
updatedDatestring (date-time)requiredWhen the skill was last changed.
uuidstring (uuid)requiredThe UUID of the skill.
DELETE/app/skills
Delete skills
/app/skillsDeletes the user's skills whose UUIDs are in the request and returns the skills that remain.
Request body
application/jsonstring (uuid)[]requiredResponses
- 200SkillReturn[]
SkillReturn
contentstringrequiredThe skill's instructions.
createdDatestring (date-time)requiredWhen the skill was created.
descriptionstringrequiredWhat the skill does and when to use it.
idstring (uuid)requiredThe UUID of the skill, repeated as
id.pluginNamestring | nullThe widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills
slugstringrequiredThe skill's short name, in lowercase letters, digits and hyphens.
updatedDatestring (date-time)requiredWhen the skill was last changed.
uuidstring (uuid)requiredThe UUID of the skill.
PATCH/app/skills/{skill_uuid}
Change a skill
/app/skills/{skill_uuid}Replaces the content of the user's skill with that UUID and returns all of the user's skills.
Path parameters
skill_uuidstring (uuid)requiredThe UUID of the skill to change
Request body
SkillCreate
contentstringrequiredThe skill's instructions.
descriptionstringrequiredWhat the skill does and when to use it.
slugstringrequiredThe skill's short name, in lowercase letters, digits and hyphens.
Responses
- 200SkillReturn[]
SkillReturn
contentstringrequiredThe skill's instructions.
createdDatestring (date-time)requiredWhen the skill was created.
descriptionstringrequiredWhat the skill does and when to use it.
idstring (uuid)requiredThe UUID of the skill, repeated as
id.pluginNamestring | nullThe widget plugin that provides this skill. A plugin's skill is read-only; left out for the user's own skills
slugstringrequiredThe skill's short name, in lowercase letters, digits and hyphens.
updatedDatestring (date-time)requiredWhen the skill was last changed.
uuidstring (uuid)requiredThe UUID of the skill.
GET/app/theme-settings
Get the organization's theme settings
/app/theme-settingsReturns the light and dark theme settings of the signed-in user's organization.
Responses
EntityThemeSettings
darkThemeSettings | nullThe theme settings for dark mode.
lightThemeSettings | nullThe theme settings for light mode.
propertiesThemeVariants | nullThe theme properties for light and dark mode.
GET/app/usage
Get the user's Copilot usage
/app/usageReturns 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
- 200UsageGet
UsageGet
copilot_calls_limitinteger | nullThe user's daily limit of Copilot calls. It is empty when there is no limit.
copilot_tokens_limitinteger | nullThe user's daily limit of Copilot tokens. It is empty when there is no limit.
file_upload_size_limitnumber | nullThe limit of the user's stored files, in gigabytes. It is empty when there is no limit.
number_copilot_calls_day_countintegerrequiredThe Copilot calls that the user made today.
number_copilot_tokens_day_countintegerdefault0The Copilot tokens that the user used today.
total_file_upload_size_gb_countnumberrequiredThe storage that the user's files use, in gigabytes.
PUT/app/usage
Report Copilot usage for a user
/app/usageAdds 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
UsagePut
add_copilot_countinteger | nulldefault0How many Copilot calls to add to today's count.
add_copilot_tokensinteger | nulldefault0How many Copilot tokens to add to today's count.
reset_copilot_countboolean | nulldefaultfalseWhether to reset today's counts to zero before the change.
subtract_copilot_countinteger | nulldefault0How many Copilot calls to take off today's count.
Responses
- 200UsageGet
UsageGet
copilot_calls_limitinteger | nullThe user's daily limit of Copilot calls. It is empty when there is no limit.
copilot_tokens_limitinteger | nullThe user's daily limit of Copilot tokens. It is empty when there is no limit.
file_upload_size_limitnumber | nullThe limit of the user's stored files, in gigabytes. It is empty when there is no limit.
number_copilot_calls_day_countintegerrequiredThe Copilot calls that the user made today.
number_copilot_tokens_day_countintegerdefault0The Copilot tokens that the user used today.
total_file_upload_size_gb_countnumberrequiredThe storage that the user's files use, in gigabytes.
GET/app/user
Get the signed-in user
/app/userReturns 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
The user's own backends and, for an Admin, the organization's backends.
9 nested properties
createdDatestring (date-time)requiredWhen the backend was created.
endpointHeadersApiSourceHeaderName[] | nullThe credential headers of the connection, with the values that are stored for it.
idstring (uuid)requiredThe UUID of the backend, repeated as
id.isEntityBackendbooleanrequiredWhether the backend belongs to the organization and not to one user.
mcpServersstring[] | nullThe MCP server URLs the backend declares, as last reported by its owner.
namestringrequiredThe backend's name.
updatedDatestring (date-time)requiredWhen the backend was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The backend's base address.
uuidstring (uuid)requiredThe 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.
emailstringrequiredThe user's email address.
entity_infoUserEntityInfo | nullThe user's organization and user type.
expiration_datestring (date-time)requiredWhen the session expires.
The file widgets that the user created.
14 nested properties
categorystring | nullThe widget's category.
createdDatestring (date-time)requiredWhen the widget was created.
dataKeystring | nullrequiredThe key that holds the data in the file.
descriptionstring | nullA description of the widget.
extensionenumrequiredThe file's extension.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"idstring (uuid)requiredThe UUID of the widget, repeated as
id.namestringrequiredThe widget's name.
originalFileNamestring | nullrequiredThe name of the file as the user uploaded it.
sourcestring | nullWhere the file came from.
storedFileUuidstring (uuid) | nullThe UUID of the uploaded file that the widget shows.
subCategorystring | nullThe widget's subcategory.
updatedDatestring (date-time)requiredWhen the widget was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The address of the file.
uuidstring (uuid)requiredThe UUID of the widget.
first_namestring | nullThe user's first name.
last_namestring | nullThe user's last name.
usernamestring | nullThe user's username.
uuidstring (uuid)requiredThe user's UUID.
widget_metadataWidgetMetadataResponse[] | nullThe metadata that the user saved for widgets.
GET/app/validate
Check whether a session is open
/app/validateAnswers 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
successbooleanrequiredWhether the operation succeeded.
GET/app/widget-metadata
Read the user's saved widget metadata
/app/widget-metadataReturns 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" | nullFinds only the metadata of the widgets of this kind
namestring | nullFinds only the metadata whose saved name matches
widget_idstring (uuid) | nullFinds only the metadata of this widget
Responses
WidgetMetadataResponse
categorystringrequiredThe widget's category.
descriptionstringrequiredA description of the widget.
namestringrequiredThe widget's name.
sourcestringrequiredWhere the widget's data comes from.
storageobjectrequiredThe widget's stored content.
subCategorystringrequiredThe widget's subcategory.
widgetConfigobject | nullThe widget's configuration.
widgetIdstring (uuid)requiredThe id of the widget that the metadata describes.
widgetTypeenumrequiredThe kind of widget:
iframe,copilot_table,youtube,widget_studio,chart,htmlorag_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
/app/widget-metadataSaves the metadata of a widget for the signed-in user, under the widget's UUID.
Request body
WidgetMetadataResponse
categorystringrequiredThe widget's category.
descriptionstringrequiredA description of the widget.
namestringrequiredThe widget's name.
sourcestringrequiredWhere the widget's data comes from.
storageobjectrequiredThe widget's stored content.
subCategorystringrequiredThe widget's subcategory.
widgetConfigobject | nullThe widget's configuration.
widgetIdstring (uuid)requiredThe id of the widget that the metadata describes.
widgetTypeenumrequiredThe kind of widget:
iframe,copilot_table,youtube,widget_studio,chart,htmlorag_chart_from_table.One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
PATCH/app/widget-metadata
Update a widget's saved metadata
/app/widget-metadataUpdates the metadata that the signed-in user saved for one widget. Only the given fields change.
Query parameters
widget_idstring (uuid)requiredThe UUID of the widget whose metadata to change
Request body
WidgetMetadataResponsePatch
categorystring | nullThe widget's new category.
descriptionstring | nullThe widget's new description.
namestring | nullThe widget's new name.
sourcestring | nullThe widget's new source.
storageobject | nullThe widget's new stored content.
subCategorystring | nullThe widget's new subcategory.
widgetConfigobject | nullThe widget's new configuration.
widgetTypeenum | nullThe widget's new kind.
One of"iframe""copilot_table""youtube""widget_studio""chart""html""ag_chart_from_table"
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/app/widget-metadata/{widget_id}
Remove a widget's saved metadata
/app/widget-metadata/{widget_id}Removes the metadata that the signed-in user saved for one widget, and returns what is left.
Path parameters
widget_idstring (uuid)requiredThe UUID of the widget whose metadata to remove
Responses
WidgetMetadataResponse
categorystringrequiredThe widget's category.
descriptionstringrequiredA description of the widget.
namestringrequiredThe widget's name.
sourcestringrequiredWhere the widget's data comes from.
storageobjectrequiredThe widget's stored content.
subCategorystringrequiredThe widget's subcategory.
widgetConfigobject | nullThe widget's configuration.
widgetIdstring (uuid)requiredThe id of the widget that the metadata describes.
widgetTypeenumrequiredThe kind of widget:
iframe,copilot_table,youtube,widget_studio,chart,htmlorag_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
/app/dash/shared-dashboard-viewedReturns, 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) | nullReturn only whether the user has viewed this dashboard.
Responses
SharedDashboardViewed
dashboard_uuidstring (uuid)requiredThe UUID of the dashboard.
viewedbooleanrequiredWhether the user has viewed the dashboard.
PATCH/app/dash/shared-dashboard-viewed/{dashboard_uuid}
Mark a shared dashboard as viewed
/app/dash/shared-dashboard-viewed/{dashboard_uuid}Records that the signed-in user has viewed the dashboard that is shared with them.
Path parameters
dashboard_uuidstring (uuid)requiredThe UUID of the dashboard.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/dash/sync
List all of the user's dashboards
/app/dash/syncReturns 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
The dashboards that the user's organization shares with all of its users, by UUID.
The dashboards that the user owns, by UUID.
The dashboards that other users shared with the user, by UUID.
POST/app/dash/sync
Save the user's dashboards
/app/dash/syncCreates, 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
DashboardsCreate
itemsmap<string, "DELETE" | object>requiredThe dashboards to save, by UUID. Each value is the dashboard's content, or
DELETEto delete the dashboard.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/dash/sync/owned
List the dashboards that the user owns
/app/dash/sync/ownedReturns the dashboards that the signed-in user owns, by UUID.
Responses
DashboardOwned
The dashboards that the user owns, by UUID.
GET/app/dash/sync/shared
List the dashboards shared with the user
/app/dash/sync/sharedReturns 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
The dashboards that the user's organization shares with all of its users, by UUID.
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
/app/dash/validate-and-syncChecks 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 | nullThe user's type and sharing level.
copilot_accessCopilotAccess | nullThe Copilot models, MCP tools and capabilities that the user may use.
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.
The dashboards that the user's organization shares with all of its users, by UUID.
The theme settings of the user's organization.
The file widgets that the user created.
14 nested properties
categorystring | nullThe widget's category.
createdDatestring (date-time)requiredWhen the widget was created.
dataKeystring | nullrequiredThe key that holds the data in the file.
descriptionstring | nullA description of the widget.
extensionenumrequiredThe file's extension.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"idstring (uuid)requiredThe UUID of the widget, repeated as
id.namestringrequiredThe widget's name.
originalFileNamestring | nullrequiredThe name of the file as the user uploaded it.
sourcestring | nullWhere the file came from.
storedFileUuidstring (uuid) | nullThe UUID of the uploaded file that the widget shows.
subCategorystring | nullThe widget's subcategory.
updatedDatestring (date-time)requiredWhen the widget was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The address of the file.
uuidstring (uuid)requiredThe UUID of the widget.
mcp_serversobject[] | nullThe user's saved MCP servers.
The dashboards that the user owns, by UUID.
questions_historystring[] | nullThe questions that the user asked the Copilot.
The dashboards that other users shared with the user, by UUID.
usageUsageGet | nullThe user's Copilot usage and limits.
The apps that the user owns and the apps that others shared with the user.
user_skillsSkillReturn[] | nullThe user's skills.
widget_metadataWidgetMetadataResponse[] | nullThe metadata that the user saved for widgets.
POST/app/dash/{dashboard_uuid}/share
Share a dashboard with users
/app/dash/{dashboard_uuid}/shareShares 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)requiredThe UUID of the dashboard.
Request body
ShareDashboard
sharesmap<string, "view" | "comment">requiredThe users to share with, by email address, each with the permissions to give:
vieworcomment.
Responses
- 200ShareReturn
ShareReturn
pending_approvalbooleandefaultfalseWhether the request waits for an admin's approval instead of taking effect.
successbooleanrequiredWhether the operation succeeded.
PATCH/app/dash/{dashboard_uuid}/share
Change the permissions of a dashboard share
/app/dash/{dashboard_uuid}/shareChanges 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)requiredThe UUID of the dashboard.
Request body
ShareDashboard
sharesmap<string, "view" | "comment">requiredThe users to share with, by email address, each with the permissions to give:
vieworcomment.
Responses
- 200ShareReturn
ShareReturn
pending_approvalbooleandefaultfalseWhether the request waits for an admin's approval instead of taking effect.
successbooleanrequiredWhether the operation succeeded.
DELETE/app/dash/{dashboard_uuid}/share
Stop sharing a dashboard with users
/app/dash/{dashboard_uuid}/shareEnds 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)requiredThe UUID of the dashboard.
Request body
ShareDashboardList
sharesstring[]requiredThe email addresses of the users to stop sharing with.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/dash/{dashboard_uuid}/shares
List the shares of a dashboard
/app/dash/{dashboard_uuid}/sharesReturns 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)requiredThe UUID of the dashboard.
Responses
- 200map<string, DashboardShareReturn>
DashboardShareReturn
created_datestring (date-time) | nullrequiredWhen the share was created.
first_namestring | nullrequiredThe recipient's first name.
last_namestring | nullrequiredThe recipient's last name.
pendingbooleandefaultfalseWhether the share waits for an admin's approval.
What the recipient may do with the dashboard:
view,commentoredit.
GET/app/dash/{dashboard_uuid}/shares/users
List the users that a dashboard can be shared with
/app/dash/{dashboard_uuid}/shares/usersReturns 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)requiredThe UUID of the dashboard.
Responses
- 200map<string, DashboardShareReturn>
DashboardShareReturn
created_datestring (date-time) | nullrequiredWhen the share was created.
first_namestring | nullrequiredThe recipient's first name.
last_namestring | nullrequiredThe recipient's last name.
pendingbooleandefaultfalseWhether the share waits for an admin's approval.
What the recipient may do with the dashboard:
view,commentoredit.
POST/app/dash/{dashboard_uuid}/toggle-entity-sharing
Share a dashboard with the organization, or stop
/app/dash/{dashboard_uuid}/toggle-entity-sharingSwitches 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)requiredThe UUID of the dashboard.
Responses
- 200ShareReturn
ShareReturn
pending_approvalbooleandefaultfalseWhether the request waits for an admin's approval instead of taking effect.
successbooleanrequiredWhether the operation succeeded.
GET/app/dash/{dashboard_uuid}/versions
List the saved versions of a dashboard
/app/dash/{dashboard_uuid}/versionsReturns 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)requiredThe UUID of the dashboard.
Responses
- 200DashboardSave[]
DashboardSave
contentobjectrequiredThe saved content of the dashboard.
created_datestring (date-time)requiredWhen the version was saved.
uuidstring (uuid)requiredThe 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
/app/data-connectors/api-sourceReturns 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
- 200ReturnApiSource[]
ReturnApiSource
createdDatestring (date-time)requiredWhen the backend was created.
endpointHeadersApiSourceHeaderName[] | nullThe credential headers of the connection, with the values that are stored for it.
idstring (uuid)requiredThe UUID of the backend, repeated as
id.isEntityBackendbooleanrequiredWhether the backend belongs to the organization and not to one user.
mcpServersstring[] | nullThe MCP server URLs the backend declares, as last reported by its owner.
namestringrequiredThe backend's name.
updatedDatestring (date-time)requiredWhen the backend was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The backend's base address.
uuidstring (uuid)requiredThe UUID of the backend.
POST/app/data-connectors/api-source-test/request
Try a data connection from the server before it is saved
/app/data-connectors/api-source-test/requestLike 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
SourceTestRequest
The credentials being tested; a blank value keeps the saved one
3 nested properties
keystringrequiredThe name of the header or of the query parameter.
location"headers" | "query"default"headers"Where the web app puts the value:
headersorquery.valuestringrequiredThe value to send.
idstring (uuid) | nullThe saved data connection whose stored values a blank header value keeps
The request that the test sends to the connection
urlstring (uri)requiredminLength 1maxLength 2083The address of the data connection being tested
Responses
- 200No content
POST/app/data-connectors/api-source/{source_uuid}
Create or update a backend
/app/data-connectors/api-source/{source_uuid}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)requiredThe UUID of the source to create or update
Request body
CreateApiSource
endpointHeadersApiSourceEndpointHeaders[] | nullThe headers and query parameters that the web app adds to every request to the backend.
namestringrequiredThe backend's name.
urlstring (uri)requiredminLength 1maxLength 2083The backend's base address.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/app/data-connectors/api-source/{source_uuid}
Delete a backend
/app/data-connectors/api-source/{source_uuid}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)requiredThe UUID of the source to delete
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/data-connectors/api-source/{source_uuid}/frame
Open an iframe widget that needs the connection's credentials
/app/data-connectors/api-source/{source_uuid}/frameReads 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)requiredThe UUID of the data connection
Request body
FrameRequest
widgetIdstringrequiredminLength 1maxLength 200The id of the iframe widget in the connection's widgets.json
Responses
- 200FrameGrant
FrameGrant
expiresInintegerrequiredSeconds until the token stops working
prefixstringrequiredThe path below which the token lets the page load anything
tokenstringrequiredNames 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
/app/data-connectors/api-source/{source_uuid}/mcp-serversReplaces 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)requiredThe UUID of the source whose declared MCP servers to record
Request body
ApiSourceMcpServers
serversstring[]requiredmaxItems 100The MCP server URLs the backend declares: iframe widgets' storage.mcpUrl and the apps' mcpServers.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/data-connectors/api-source/{source_uuid}/request
Call a data connection from the server
/app/data-connectors/api-source/{source_uuid}/requestSends 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)requiredThe UUID of the data connection to call
Request body
SourceRequest
acceptstring | nullThe media types the caller accepts
bodystring | nullThe text to send as the body, JSON unless the connection sets another Content-Type
headersmap<string, string>maxProperties 32Header 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 4096The 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
/app/data-connectors/fileReturns the file widgets that the signed-in user has created. A user whose type may not add connections receives an empty list.
Responses
- 200ReturnFileWidget[]
ReturnFileWidget
categorystring | nullThe widget's category.
createdDatestring (date-time)requiredWhen the widget was created.
dataKeystring | nullrequiredThe key that holds the data in the file.
descriptionstring | nullA description of the widget.
extensionenumrequiredThe file's extension.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"idstring (uuid)requiredThe UUID of the widget, repeated as
id.namestringrequiredThe widget's name.
originalFileNamestring | nullrequiredThe name of the file as the user uploaded it.
sourcestring | nullWhere the file came from.
storedFileUuidstring (uuid) | nullThe UUID of the uploaded file that the widget shows.
subCategorystring | nullThe widget's subcategory.
updatedDatestring (date-time)requiredWhen the widget was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The address of the file.
uuidstring (uuid)requiredThe UUID of the widget.
POST/app/data-connectors/file/{widget_uuid}
Create or update a file widget
/app/data-connectors/file/{widget_uuid}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)requiredThe UUID of the widget to create or update
Request body
CreateFileWidget
categorystring | nullThe widget's category.
dataKeystring | nullrequiredThe key that holds the data in the file.
descriptionstring | nullA description of the widget.
extensionenumrequiredThe file's extension.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"namestringrequiredThe widget's name.
originalFileNamestring | nullrequiredThe name of the file as the user uploaded it.
sourcestring | nullWhere the file came from.
storedFileUuidstring (uuid) | nullThe UUID of the uploaded file that the widget shows.
subCategorystring | nullThe widget's subcategory.
urlstring (uri)requiredminLength 1maxLength 2083The address of the file.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/app/data-connectors/file/{widget_uuid}
Delete a file widget
/app/data-connectors/file/{widget_uuid}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)requiredThe UUID of the widget to delete
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/data-connectors/frame/{token}/{path}
A page of an iframe widget, with the connection's credentials added
/app/data-connectors/frame/{token}/{path}Authorized by the token in the address alone: the page runs without cookies or storage.
Path parameters
tokenstringrequiredThe token from the frame grant
pathstringrequiredThe 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
/app/data-connectors/frame/{token}/{path}Authorized by the token in the address alone: the page runs without cookies or storage.
Path parameters
tokenstringrequiredThe token from the frame grant
pathstringrequiredThe 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
/app/data-connectors/frame/{token}/{path}Authorized by the token in the address alone: the page runs without cookies or storage.
Path parameters
tokenstringrequiredThe token from the frame grant
pathstringrequiredThe 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
/app/data-connectors/frame/{token}/{path}Authorized by the token in the address alone: the page runs without cookies or storage.
Path parameters
tokenstringrequiredThe token from the frame grant
pathstringrequiredThe 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
/app/data-connectors/frame/{token}/{path}Authorized by the token in the address alone: the page runs without cookies or storage.
Path parameters
tokenstringrequiredThe token from the frame grant
pathstringrequiredThe path on the connection's origin
Responses
- 200No content
GET/app/data-connectors/stored-files
List the user's stored files
/app/data-connectors/stored-filesReturns 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
- 200StoredFileReturn[]
StoredFileReturn
extensionenumrequiredThe file's extension.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"file_widget_uuidstring (uuid) | nullThe UUID of the file widget that uses the file. It is empty while no widget uses it.
is_globalbooleandefaultfalseWhether the file is available to every user.
original_file_namestring | nullrequiredThe name of the file as the user uploaded it.
sizeinteger | nullThe file's size in bytes.
uuidstring (uuid)requiredThe 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
/app/filesUploads 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
Body_post_files_app_files_post
filesstring[]requiredThe files to upload.
Responses
- 200PendingFileReturn[]
PendingFileReturn
extensionstring | nullThe file's extension.
failedbooleandefaultfalseWhether the upload failed.
original_file_namestring | nullThe name of the file as the user uploaded it.
stored_file_uuidstring (uuid) | nullThe UUID that the stored file received.
urlstring | nullThe address at which the API serves the file.
DELETE/app/files
Delete several files
/app/filesDeletes 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
DeleteStoredFiles
file_uuidsstring (uuid)[]requiredThe UUIDs of the stored files to delete.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/app/files/download
Download files as a ZIP archive
/app/files/downloadReturns 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
PostStoredFile
file_uuidstring (uuid) | nullThe UUID of the stored file.
filenamestring | nullThe 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
/app/files/presigned/{file_name}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_namestringrequiredThe name of the file in the storage, as the signed link carries it.
Query parameters
ExpiresintegerrequiredThe time at which the link expires, in seconds since 1970, as the link carries it.
SignaturestringrequiredThe signature of the link, as the link carries it.
Responses
- 200No content
GET/app/files/{file_name}
Download a file
/app/files/{file_name}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_namestringrequiredThe 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
/app/files/{file_name}/presigned-urlReturns 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_namestringrequiredThe name of the file in the storage, or its UUID.
Query parameters
expirationintegerHow many seconds the link stays valid. The API lowers a larger value to its maximum.
Responses
PreSignedUrlReturn
original_file_namestringrequiredThe name of the file as the user uploaded it.
pre_signed_urlstringrequiredThe signed link, which works without a session until it expires.
stored_file_uuidstring (uuid)requiredThe UUID of the stored file.
DELETE/app/files/{file_uuid}
Delete a file
/app/files/{file_uuid}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)requiredThe UUID of the stored file.
Responses
SuccessReturn
successbooleanrequiredWhether 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
/app/user-apps/shared-app-viewedReturns, 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) | nullReturn only whether the user has viewed this app.
Responses
- 200SharedAppViewed[]
SharedAppViewed
app_uuidstring (uuid)requiredThe UUID of the app.
viewedbooleanrequiredWhether the user has viewed the app.
PATCH/app/user-apps/shared-app-viewed/{app_uuid}
Mark a shared app as viewed
/app/user-apps/shared-app-viewed/{app_uuid}Records that the signed-in user has viewed the app that is shared with them.
Path parameters
app_uuidstring (uuid)requiredThe UUID of the app.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/user-apps/sync
List the user's apps
/app/user-apps/syncReturns 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
UserAppsComplete
The apps that the user owns, by UUID.
The apps that others shared with the user, by UUID.
POST/app/user-apps/{app_uuid}
Create or update an app
/app/user-apps/{app_uuid}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)requiredThe UUID of the app.
Request body
UserAppCreate
currentTabstring | nullThe tab that the app opens on.
descriptionstring | nullA description of the app.
gridLayoutmap<string, object[]>The layout of the app's widgets, by tab.
groupsobject[]The widget groups of the app.
imgstring | nullThe app's image.
img_darkstring | nullThe image to use in dark mode.
img_lightstring | nullThe image to use in light mode.
namestringrequiredThe app's name.
promptsstring[]The prompts that the app offers.
widgetsobject[]The widgets of the app.
Responses
UserAppsComplete
The apps that the user owns, by UUID.
The apps that others shared with the user, by UUID.
DELETE/app/user-apps/{app_uuid}
Delete an app
/app/user-apps/{app_uuid}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)requiredThe UUID of the app.
Responses
UserAppsComplete
The apps that the user owns, by UUID.
The apps that others shared with the user, by UUID.
POST/app/user-apps/{app_uuid}/share
Share an app with users
/app/user-apps/{app_uuid}/shareShares 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)requiredThe UUID of the app.
Request body
ShareUserApp
sharesmap<string, "view" | "comment">requiredThe users to share with, by email address, each with the permissions to give:
vieworcomment.
Responses
- 200ShareReturn
ShareReturn
pending_approvalbooleandefaultfalseWhether the request waits for an admin's approval instead of taking effect.
successbooleanrequiredWhether the operation succeeded.
PATCH/app/user-apps/{app_uuid}/share
Change the permissions of an app share
/app/user-apps/{app_uuid}/shareChanges 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)requiredThe UUID of the app.
Request body
ShareUserApp
sharesmap<string, "view" | "comment">requiredThe users to share with, by email address, each with the permissions to give:
vieworcomment.
Responses
- 200ShareReturn
ShareReturn
pending_approvalbooleandefaultfalseWhether the request waits for an admin's approval instead of taking effect.
successbooleanrequiredWhether the operation succeeded.
DELETE/app/user-apps/{app_uuid}/share
Stop sharing an app with users
/app/user-apps/{app_uuid}/shareEnds 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)requiredThe UUID of the app.
Request body
ShareUserAppList
sharesstring[]requiredThe email addresses of the users to stop sharing with.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/app/user-apps/{app_uuid}/shares
List the shares of an app
/app/user-apps/{app_uuid}/sharesReturns 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)requiredThe UUID of the app.
Responses
- 200map<string, UserAppShareReturn>
UserAppShareReturn
created_datestring (date-time) | nullrequiredWhen the share was created.
first_namestring | nullrequiredThe recipient's first name.
last_namestring | nullrequiredThe recipient's last name.
pendingbooleandefaultfalseWhether the share waits for an admin's approval.
What the recipient may do with the app:
view,commentoredit.
GET/app/user-apps/{app_uuid}/shares/users
List the users that an app can be shared with
/app/user-apps/{app_uuid}/shares/usersReturns 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)requiredThe UUID of the app.
Responses
- 200map<string, UserAppShareReturn>
UserAppShareReturn
created_datestring (date-time) | nullrequiredWhen the share was created.
first_namestring | nullrequiredThe recipient's first name.
last_namestring | nullrequiredThe recipient's last name.
pendingbooleandefaultfalseWhether the share waits for an admin's approval.
What the recipient may do with the app:
view,commentoredit.
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
/totpGenerates 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
secretstringrequiredThe authenticator secret, in base 32.
uristringrequiredThe provisioning URI that an authenticator app reads, usually as a QR code.
POST/totp/activate
Activate two-factor authentication
/totp/activateChecks 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
TotpActivate
rememberbooleandefaultfalseWhether to keep the user signed in for longer.
totp_tokeninteger | nullThe code from the user's authenticator app.
versionstring | nullThe version of the web app.
Responses
AppTokenWithContext
accessUserAccess | nullThe user's type and sharing level.
The user's Copilot chats.
copilot_keysCopilotKeysStatus | nullWhich provider keys the user saved.
custom_copilotsCustomCopilot-Output[] | nullThe user's custom Copilots.
dash_syncDashboardComplete | nullThe user's dashboards.
emailstring (email)requiredThe user's email address.
entity_namestring | nullrequiredThe name of the user's organization.
The theme settings of the user's organization.
expiration_datestring (date-time)requiredWhen the session expires.
force_2fabooleanrequiredWhether the user must set up two-factor authentication.
is_first_loginboolean | nulldefaultfalseWhether this is the user's first sign-in.
mcp_serversMCPServer-Output[] | nullThe user's saved MCP servers.
questions_historystring[] | nullThe questions that the user asked the Copilot.
rolestring | nullrequiredThe user's type: Admin, Developer or User.
show_changelogbooleanrequiredWhether the web app should show the change log, because the user last signed in with another version.
temporary_passwordbooleanrequiredWhether the password is temporary and the user must change it.
usageUsageGet | nullThe user's Copilot usage and limits.
userAppUserReturn | nullThe user's profile data.
The apps that the user owns and the apps that others shared with the user.
user_skillsSkillReturn[] | nullThe user's skills.
usernamestring | nullrequiredThe user's username.
uuidstring (uuid)requiredThe user's UUID.
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
PUT/user
Change the signed-in user's password
/userChanges 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
UserUpdate
new_passwordstring | nullThe 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 | nullThe user's current password.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/user
Delete the signed-in user's account
/userDeletes 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
messagestringrequiredA sentence that describes the result.
successbooleanrequiredWhether 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
/entity/data-backends/{entity_uuid}Returns the data backends that belong to the organization.
Path parameters
entity_uuidstring (uuid)requiredThe UUID of the organization.
Responses
- 200ReturnApiSource[]
ReturnApiSource
createdDatestring (date-time)requiredWhen the backend was created.
endpointHeadersApiSourceHeaderName[] | nullThe credential headers of the connection, with the values that are stored for it.
idstring (uuid)requiredThe UUID of the backend, repeated as
id.isEntityBackendbooleanrequiredWhether the backend belongs to the organization and not to one user.
mcpServersstring[] | nullThe MCP server URLs the backend declares, as last reported by its owner.
namestringrequiredThe backend's name.
updatedDatestring (date-time)requiredWhen the backend was last changed.
urlstring (uri)requiredminLength 1maxLength 2083The backend's base address.
uuidstring (uuid)requiredThe UUID of the backend.
POST/entity/data-backends/{entity_uuid}
Add a data backend to an organization
/entity/data-backends/{entity_uuid}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)requiredThe UUID of the organization.
Request body
CreateApiSource
endpointHeadersApiSourceEndpointHeaders[] | nullThe headers and query parameters that the web app adds to every request to the backend.
namestringrequiredThe backend's name.
urlstring (uri)requiredminLength 1maxLength 2083The backend's base address.
Responses
- 200any
DELETE/entity/data-backends/{entity_uuid}/{backend_name}
Delete a data backend of an organization
/entity/data-backends/{entity_uuid}/{backend_name}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)requiredThe UUID of the organization.
backend_namestringrequiredThe name of the data backend.
Responses
- 200any
GET/entity/entity
List the organizations
/entity/entityReturns 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
removedbooleanList the removed organizations instead.
pageintegerPage number
sizeintegerHow many items a page holds
Responses
PageCustomized_EntityReturn_
The items on this page.
4 nested properties
disabledbooleanrequiredWhether the organization is disabled and its users cannot sign in.
namestringrequiredThe organization's name.
sharing_enabledbooleanrequiredWhether the organization's users may share dashboards and apps.
uuidstring (uuid)requiredThe UUID of the organization.
pageintegerrequiredminimum 1The number of this page, counted from 1.
pagesintegerrequiredminimum 0How many pages there are.
sizeintegerrequiredminimum 1How many items a page holds.
totalintegerrequiredminimum 0How many items there are in all.
POST/entity/entity
Create an organization
/entity/entityCreates 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
EntityPost
admin_emailstring (email)requiredThe email address of the organization's admin.
namestringrequiredThe organization's name.
sharing_enabledbooleandefaulttrueWhether the organization's users may share dashboards and apps. It defaults to true.
Responses
AddEntityReturn
entity_uuidstring (uuid)requiredThe UUID of the new organization.
permission_map_uuidstring (uuid)requiredThe UUID of the organization's Admin permissions map.
GET/entity/entity-map
List the permission maps of all organizations
/entity/entity-mapReturns a page of the permission maps of every organization, each with its organization. The query parameters page and size select the page.
Query parameters
pageintegerPage number
sizeintegerHow many items a page holds
Responses
PageCustomized_EntityMapReturn_
The items on this page.
4 nested properties
The organization that the map belongs to.
entity_uuidstring (uuid)requiredThe UUID of the organization.
namestringrequiredThe user type that the map stands for: Admin, Developer or User.
uuidstring (uuid)requiredThe UUID of the permissions map.
pageintegerrequiredminimum 1The number of this page, counted from 1.
pagesintegerrequiredminimum 0How many pages there are.
sizeintegerrequiredminimum 1How many items a page holds.
totalintegerrequiredminimum 0How many items there are in all.
POST/entity/entity-map
Add a permission map to an organization
/entity/entity-mapAdds 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
EntityMapCreate
entity_uuidstring (uuid)requiredThe UUID of the organization.
name"Admin" | "Developer" | "User"requiredThe user type that the map stands for: Admin, Developer or User.
Responses
- 200UUIDReturn
UUIDReturn
uuidstring (uuid)requiredThe UUID of the new item.
PUT/entity/entity-map/{map_uuid}
Change a permission map
/entity/entity-map/{map_uuid}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)requiredThe UUID of the permission map.
Request body
EntityMapCreate
entity_uuidstring (uuid)requiredThe UUID of the organization.
name"Admin" | "Developer" | "User"requiredThe user type that the map stands for: Admin, Developer or User.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
PUT/entity/entity/{entity_uuid}
Change an organization's name, sharing and disabled state
/entity/entity/{entity_uuid}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)requiredThe UUID of the organization.
Request body
EntityUpdate
disabledboolean | nullWhether the organization is disabled: its users cannot sign in and their sessions end. Leave it out to keep the current value.
namestringrequiredThe organization's name.
sharing_enabledbooleanrequiredWhether the organization's users may share dashboards and apps.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/entity/entity/{entity_uuid}
Remove an organization
/entity/entity/{entity_uuid}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)requiredThe UUID of the organization.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/entity/entity/{entity_uuid}/restore
Restore a removed organization
/entity/entity/{entity_uuid}/restoreBrings 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)requiredThe UUID of the removed organization.
Request body
application/jsonEntityRestore | nullEntityRestore
namestring | nullThe name to give the restored organization. Leave it out to restore the name it had before.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
POST/entity/register-admin
Invite a user into any organization
/entity/register-adminRecords 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
UserCreateAdmin
emailstring (email)requiredThe user's email address.
first_namestring | nullThe user's first name.
last_namestring | nullThe user's last name.
messagestring | nullA message for the new user, up to 500 characters.
permissions_uuidstring (uuid)requiredThe UUID of the permissions map that gives the user their type.
rolestring (uuid) | nullThe UUID of a role to give the user.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/entity/role
List the roles of the superuser's organization
/entity/roleReturns the roles of the organization of the signed-in superuser, each with the emails of its users.
Responses
- 200GetRoleWithUsers[]
GetRoleWithUsers
copilot_calls_dayinteger | nullrequiredThe daily limit of Copilot calls that the role sets. It is empty when the role sets none.
copilot_tokens_dayinteger | nullrequiredThe daily limit of Copilot tokens that the role sets. It is empty when the role sets none.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleanrequiredWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleanrequiredWhether the role lets its users search the web.
sharing"none" | "receive" | "share"requiredThe sharing level that the role gives:
none,receiveorshare.updated_datestring (date-time)requiredWhen the role was last changed.
upload_size_gbinteger | nullrequiredThe limit of stored files in gigabytes that the role sets. It is empty when the role sets none.
usersstring (email)[]requiredThe email addresses of the role's users.
uuidstring (uuid)requiredThe UUID of the role.
POST/entity/role
Create a role in the superuser's organization
/entity/roleCreates a role in the organization of the signed-in superuser and adds the listed users, who must belong to that organization.
Request body
PostRole
copilot_calls_dayinteger | nullThe daily limit of Copilot calls for the role's users. Leave it empty for no limit.
copilot_tokens_dayinteger | nullThe daily limit of Copilot tokens for the role's users. Leave it empty for no limit.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleandefaulttrueWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleandefaulttrueWhether the role lets its users search the web.
sharing"none" | "receive" | "share"default"none"The sharing level that the role gives:
none,receiveorshare.upload_size_gbinteger | nullThe limit of stored files in gigabytes for the role's users. Leave it empty for no limit.
usersstring (email)[] | nullThe email addresses of the users that the role starts with.
uuidstring (uuid) | nullThe UUID for the new role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/entity/role-permissions/{role_uuid}
List the backends and files that a role grants
/entity/role-permissions/{role_uuid}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)requiredThe UUID of the role.
Responses
- 200RolePermissions[]
RolePermissions
access"no-access" | "access" | "full-access"requiredThe access level that the role gives:
no-access,accessorfull-access.category"data-connectors" | "templates" | "prompts"requiredThe group that the item belongs to:
data-connectors,templatesorprompts.file_extensionenum | nullThe file's extension, for a file.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"promptPrompt | nullThe prompt, for a prompt.
templatesTemplateAccess[] | nullThe access to each template of a backend.
type"backend" | "file" | "prompt"requiredWhat the permission is about: a
backend, afileor aprompt.uuidstring (uuid)requiredThe UUID of the backend, the file widget or the prompt.
widgetsWidgetAccess[] | nullThe access to each widget of a backend.
PUT/entity/role-permissions/{role_uuid}
Set the access of a role to backends and files
/entity/role-permissions/{role_uuid}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)requiredThe UUID of the role.
Request body
RolePermissions
access"no-access" | "access" | "full-access"requiredThe access level that the role gives:
no-access,accessorfull-access.category"data-connectors" | "templates" | "prompts"requiredThe group that the item belongs to:
data-connectors,templatesorprompts.file_extensionenum | nullThe file's extension, for a file.
One of"csv""json""pdf""png""jpg""jpeg""gif""xls""xlsx""txt""zip""md""docx""doc""html"promptPrompt | nullThe prompt, for a prompt.
templatesTemplateAccess[] | nullThe access to each template of a backend.
type"backend" | "file" | "prompt"requiredWhat the permission is about: a
backend, afileor aprompt.uuidstring (uuid)requiredThe UUID of the backend, the file widget or the prompt.
widgetsWidgetAccess[] | nullThe access to each widget of a backend.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/entity/role/{role_uuid}
Get a role of the superuser's organization
/entity/role/{role_uuid}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)requiredThe UUID of the role.
Responses
GetRoleWithUsers
copilot_calls_dayinteger | nullrequiredThe daily limit of Copilot calls that the role sets. It is empty when the role sets none.
copilot_tokens_dayinteger | nullrequiredThe daily limit of Copilot tokens that the role sets. It is empty when the role sets none.
descriptionstringrequiredWhat the role is for.
fetch_from_webbooleanrequiredWhether the role lets its users fetch pages from the web.
namestringrequiredThe role's name.
search_webbooleanrequiredWhether the role lets its users search the web.
sharing"none" | "receive" | "share"requiredThe sharing level that the role gives:
none,receiveorshare.updated_datestring (date-time)requiredWhen the role was last changed.
upload_size_gbinteger | nullrequiredThe limit of stored files in gigabytes that the role sets. It is empty when the role sets none.
usersstring (email)[]requiredThe email addresses of the role's users.
uuidstring (uuid)requiredThe UUID of the role.
PATCH/entity/role/{role_uuid}
Change a role of the superuser's organization
/entity/role/{role_uuid}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)requiredThe UUID of the role.
Request body
PatchRole
copilot_calls_dayinteger | nullThe role's new daily limit of Copilot calls. Null removes the limit.
copilot_tokens_dayinteger | nullThe role's new daily limit of Copilot tokens. Null removes the limit.
descriptionstring | nullThe role's new description.
fetch_from_webboolean | nullWhether the role lets its users fetch pages from the web.
namestring | nullThe role's new name.
search_webboolean | nullWhether the role lets its users search the web.
sharing"none" | "receive" | "share" | nullThe role's new sharing level:
none,receiveorshare.upload_size_gbinteger | nullThe role's new limit of stored files in gigabytes. Null removes the limit.
usersstring (email)[] | nullThe email addresses that the role's members become. Users that the list leaves out are removed from the role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
DELETE/entity/role/{role_uuid}
Delete a role of the superuser's organization
/entity/role/{role_uuid}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)requiredThe UUID of the role.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/entity/user
List the users
/entity/userReturns 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
emailstringKeep only the users whose email contains this text.
pageintegerPage number
sizeintegerHow many items a page holds
Responses
PageCustomized_EntityUserReturn_
The items on this page.
3 nested properties
emailstringrequiredThe user's email address.
permissionsEntityMapReturn | nullThe permissions map that gives the user their type.
uuidstring (uuid)requiredThe user's UUID.
pageintegerrequiredminimum 1The number of this page, counted from 1.
pagesintegerrequiredminimum 0How many pages there are.
sizeintegerrequiredminimum 1How many items a page holds.
totalintegerrequiredminimum 0How many items there are in all.
PUT/entity/user/{user_uuid}
Move a user to a permissions map
/entity/user/{user_uuid}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)requiredThe UUID of the user.
Request body
UserUpdateAdmin
permissions_uuidstring (uuid)requiredThe UUID of the permissions map to move the user to.
Responses
SuccessReturn
successbooleanrequiredWhether the operation succeeded.
GET/entity/validate
Check that the caller is a superuser
/entity/validateAnswers success when the signed-in user is a superuser, and the status 403 when the user is not.
Responses
SuccessReturn
successbooleanrequiredWhether 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
/admin/pluginsReturns 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
/admin/plugins/{plugin_id}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_idstringrequiredThe id of the plugin.
Request body
EntityChanges
csp_narrowmap<string, string[]> | nullThe frame sources that the organization removes, by directive.
data_sourcesmap<string, string (uuid) | null> | nullThe organization's backend for each data source that the plugin declares, by data source id. A null value clears the mapping.
enabledboolean | nullWhether the organization enables the plugin.
handlersmap<string, string | null> | nullFor 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[] | nullThe permissions that the organization removes from what the plugin may do.
preset_limitinteger | nullHow many presets each user may keep of each of the plugin's widgets, or null for the default of 100.
server_network_narrowstring[] | nullThe server hosts that the organization removes.
settingsobject | nullThe 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
/admin/plugins/{plugin_id}/csp-reportsReturns 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_idstringrequiredThe id of the plugin.
Responses
- 200any
GET/admin/plugins/{plugin_id}/events
List the events of a plugin for the organization
/admin/plugins/{plugin_id}/eventsReturns the recorded events of the plugin that concern the admin's organization, newest first.
Path parameters
plugin_idstringrequiredThe id of the plugin.
Responses
- 200any
GET/admin/plugins/{plugin_id}/widgets/{widget_id}/presets
List the organization's presets of a plugin widget
/admin/plugins/{plugin_id}/widgets/{widget_id}/presetsReturns { 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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe 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
/admin/plugins/{plugin_id}/widgets/{widget_id}/presetsSaves 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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
Request body
PresetBody
configobject | nullThe values of the widget's settings. They must satisfy the widget's settings schema.
is_defaultbooleandefaultfalseWhether the preset is the default, which a new card of the widget starts from.
namestringrequiredmaxLength 200The name of the preset, 1 to 80 characters once trimmed.
stateanyThe 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
/admin/plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
preset_idstring (uuid)requiredThe id of the preset.
Request body
PresetChanges
configobject | nullThe new values of the widget's settings, or null to clear them. They must satisfy the widget's settings schema.
is_defaultboolean | nullWhether the preset is the default, which a new card of the widget starts from.
namestring | nullThe new name of the preset, 1 to 80 characters once trimmed.
stateanyThe 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
/admin/plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}Deletes one of the organization's presets of the widget. Answers 404 when the preset does not exist.
Path parameters
plugin_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
preset_idstring (uuid)requiredThe id of the preset.
Responses
- 200any
GET/admin/role/{role_uuid}/plugin-access
List the plugin widgets that a role grants
/admin/role/{role_uuid}/plugin-accessReturns 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)requiredThe UUID of the role.
Responses
- 200RoleGrants
RoleGrants
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
/admin/role/{role_uuid}/plugin-accessReplaces 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)requiredThe UUID of the role.
Request body
RoleGrants
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
/app/widget-pluginsReturns { 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
/app/widget-plugins/reportStores 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
ReportBody
failureenum | nullHow the frame failed, if it did:
sandbox-failed,integrity-failed,load-failed,plugin-error,unresponsiveorended.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.
The requests that the frame policy refused.
2 nested properties
directivestringrequiredmaxLength 32The directive of the frame policy that refused the request.
originstringrequiredmaxLength 255The 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
/app/widget-plugins/widgets-schemaReturns 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) | nullThe 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
/app/widget-plugins/{plugin_id}/backend/{route_id}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_idstringrequiredThe id of the plugin.
route_idstringrequiredThe 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
/app/widget-plugins/{plugin_id}/proxy/{proxy_id}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_idstringrequiredThe id of the plugin.
proxy_idstringrequiredThe 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
/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presetsReturns { 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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
Responses
- 200any
POST/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets
Save a preset of a plugin widget
/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presetsSaves 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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
Request body
PresetBody
configobject | nullThe values of the widget's settings. They must satisfy the widget's settings schema.
is_defaultbooleandefaultfalseWhether the preset is the default, which a new card of the widget starts from.
namestringrequiredmaxLength 200The name of the preset, 1 to 80 characters once trimmed.
stateanyThe 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
/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
preset_idstring (uuid)requiredThe id of the preset.
Request body
PresetChanges
configobject | nullThe new values of the widget's settings, or null to clear them. They must satisfy the widget's settings schema.
is_defaultboolean | nullWhether the preset is the default, which a new card of the widget starts from.
namestring | nullThe new name of the preset, 1 to 80 characters once trimmed.
stateanyThe 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
/app/widget-plugins/{plugin_id}/widgets/{widget_id}/presets/{preset_id}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_idstringrequiredThe id of the plugin.
widget_idstringrequiredThe id of the widget.
preset_idstring (uuid)requiredThe id of the preset.
Responses
- 200any
GET/app/widget-plugins/{plugin_id}/{digest}/files/{file_path}
Download a file of a plugin version
/app/widget-plugins/{plugin_id}/{digest}/files/{file_path}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_idstringrequiredThe id of the plugin.
digeststringrequiredThe digest of the plugin version.
file_pathstringrequiredThe 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
/internal/plugin-broker/data/{data_source_id}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_idstringrequiredThe id of the data source that the organization mapped to a backend.
Responses
- 200any
GET/plugins
List the plugins at the deployment
/pluginsReturns 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
/plugins/rescanReads 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
/plugins/{plugin_id}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_idstringrequiredThe id of the plugin.
Responses
- 200any
DELETE/plugins/{plugin_id}
Forget a plugin
/plugins/{plugin_id}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_idstringrequiredThe id of the plugin.
Responses
- 200any
POST/plugins/{plugin_id}/backend/check
Check a plugin's backend now
/plugins/{plugin_id}/backend/checkContacts 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_idstringrequiredThe id of the plugin.
Responses
- 200any
GET/plugins/{plugin_id}/csp-reports
List the requests that a plugin's frame was refused
/plugins/{plugin_id}/csp-reportsReturns 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_idstringrequiredThe id of the plugin.
Responses
- 200any
PUT/plugins/{plugin_id}/entities
Enable or disable a plugin for every organization
/plugins/{plugin_id}/entitiesSets 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_idstringrequiredThe id of the plugin.
Request body
AllEntitiesChanges
enabledbooleanrequiredWhether the plugin is enabled for every organization.
Responses
- 200any
PUT/plugins/{plugin_id}/entities/{entity_uuid}
Change a plugin for one organization
/plugins/{plugin_id}/entities/{entity_uuid}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_idstringrequiredThe id of the plugin.
entity_uuidstring (uuid)requiredThe UUID of the organization.
Request body
EntityChanges
csp_narrowmap<string, string[]> | nullThe frame sources that the organization removes, by directive.
data_sourcesmap<string, string (uuid) | null> | nullThe organization's backend for each data source that the plugin declares, by data source id. A null value clears the mapping.
enabledboolean | nullWhether the organization enables the plugin.
handlersmap<string, string | null> | nullFor 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[] | nullThe permissions that the organization removes from what the plugin may do.
preset_limitinteger | nullHow many presets each user may keep of each of the plugin's widgets, or null for the default of 100.
server_network_narrowstring[] | nullThe server hosts that the organization removes.
settingsobject | nullThe values of the plugin's settings.
Responses
- 200any
GET/plugins/{plugin_id}/events
List the events of a plugin
/plugins/{plugin_id}/eventsReturns 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_idstringrequiredThe id of the plugin.
Responses
- 200any
PUT/plugins/{plugin_id}/overrides
Set the overrides of a plugin
/plugins/{plugin_id}/overridesReplaces 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_idstringrequiredThe id of the plugin.
Request body
OverridesBody
confirmations("insecure-scheme" | "private-host" | "remote-script")[]The risky choices that the superuser confirms:
insecure-scheme,private-hostorremote-script.cspmap<string, string[]> | nullThe override of the frame policy, as the sources that each directive allows.
server_networkstring[] | nullThe 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
/plugins/{plugin_id}/restoreMarks 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_idstringrequiredThe id of the plugin.
Responses
- 200any
POST/plugins/{plugin_id}/revoke
Revoke a plugin
/plugins/{plugin_id}/revokeMarks 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_idstringrequiredThe id of the plugin.
Responses
- 200any
PUT/plugins/{plugin_id}/secrets/{name}
Set a plugin secret
/plugins/{plugin_id}/secrets/{name}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_idstringrequiredThe id of the plugin.
namestringrequiredThe name of the secret that the plugin declares.
Responses
- 200any
DELETE/plugins/{plugin_id}/secrets/{name}
Clear a plugin secret
/plugins/{plugin_id}/secrets/{name}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_idstringrequiredThe id of the plugin.
namestringrequiredThe name of the secret that the plugin declares.
Responses
- 200any
POST/plugins/{plugin_id}/versions/{version}/approve
Approve a plugin version
/plugins/{plugin_id}/versions/{version}/approveApproves 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_idstringrequiredThe id of the plugin.
versionstringrequiredThe version of the plugin, as
major.minor.patch.
Request body
ApproveBody
acknowledgedstring[]maxItems 500The requests of the version that the superuser acknowledges.
digeststringrequiredmaxLength 80The 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
/plugins/{plugin_id}/versions/{version}/developCopies 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_idstringrequiredThe id of the plugin.
versionstringrequiredThe approved version, as
major.minor.patch, that the new version starts from.
Request body
DevelopBody
bump"patch" | "minor" | "major"requiredWhich part of the version number to raise:
patch,minorormajor.
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
/app/workspace-mcp/bridge/session/startStarts 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
BrowserSessionStartRequest
client_namestringdefault"workspace-ui"The name of the client that opens the session.
current_dashboard_idstring | nullThe dashboard that the tab shows.
current_tab_idstring | nullThe inner tab that the tab shows.
Responses
BrowserSessionStartResponse
The new session.
websocket_urlstringrequiredThe address of the WebSocket that the tab opens.
GET/app/workspace-mcp/tokens
List the user's FINOS Workspace MCP tokens
/app/workspace-mcp/tokensReturns 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
- 200TokenMetadata[]
TokenMetadata
created_dateany | nullWhen the token was created.
last_used_atany | nullWhen the token last authenticated a request. It is empty when it never did.
namestringrequiredThe name that the user gave the token.
token_prefixstringrequiredThe first characters of the token, which identify it in a list.
token_typestringrequiredThe kind of token.
updated_dateany | nullWhen the token was last changed.
uuidstring (uuid)requiredThe UUID of the token.
POST/app/workspace-mcp/tokens
Create a FINOS Workspace MCP token
/app/workspace-mcp/tokensCreates 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
TokenCreateRequest
namestringrequiredminLength 1maxLength 100The name that the user gives the token.
Responses
TokenCreateResponse
created_dateany | nullWhen the token was created.
last_used_atany | nullWhen the token last authenticated a request. It is empty when it never did.
namestringrequiredThe name that the user gave the token.
tokenstringrequiredThe token's secret. Only this answer shows it.
token_prefixstringrequiredThe first characters of the token, which identify it in a list.
token_typestringrequiredThe kind of token.
updated_dateany | nullWhen the token was last changed.
uuidstring (uuid)requiredThe UUID of the token.
DELETE/app/workspace-mcp/tokens/{token_uuid}
Revoke a FINOS Workspace MCP token
/app/workspace-mcp/tokens/{token_uuid}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)requiredThe 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
/app/workspace-toolsReturns 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
The tools that the user's roles allow.
4 nested properties
annotationsobject | nullHints about the tool, such as whether it only reads.
descriptionstring | nullWhat the tool does.
inputSchemaobjectrequiredThe JSON Schema of the tool's input.
namestringrequiredThe tool's name.
urlstringrequiredThe address that identifies the tool server.
POST/app/workspace-tools/prepare
Prepare a call to one of the tools
/app/workspace-tools/prepareValidates 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
WorkspaceToolCall
argumentsobjectThe tool's arguments.
namestringrequiredminLength 1maxLength 200The name of the tool to call.
Responses
WorkspaceToolCallResult
commandobject | nullThe command that the web app carries out in the user's tab.
resultobject | nullThe 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
/healthAnswers 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
/healthzAnswers 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 /metricson the API's port. The route passes through the origin check like every other route, so a request without an allowedOriginheader 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.
| Metric | Type | Labels | What it counts |
|---|---|---|---|
payment_backend_fastapi_http_request_duration_seconds | histogram |
| Duration of HTTP requests in seconds |
payment_backend_fastapi_http_requests_total | counter |
| Total number of requests by method, status and handler. |
payment_backend_fastapi_http_response_size_bytes | summary |
| Content bytes of responses. |
db_pool_connections | gauge |
| SQLAlchemy connection pool counters |
event_loop_lag_seconds | gauge | none | Event loop scheduling delay (elapsed beyond the sampler's sleep) |
threadpool_tokens | gauge |
| anyio default threadpool capacity limiter (FastAPI sync routes) |