Workspaces
Create a workspace data source
POST /api/workspaces/{workspaceId}/data_sources
Creates a workspace data source
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Body parameters
New data source
-
name
string Required -
protocolVersion
integer uint8 Required -
providerType
string Required -
config
object Required -
description
string
Returns
200
OK
Get all workspace data sources
GET /api/workspaces/{workspaceId}/data_sources
Get all workspace data sources
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Returns
200
OK
List all users
GET /api/workspaces/{workspaceId}/users
List all users for a workspace
Path parameters
-
sort_by
stringSort the resulting list by the following field (defaults to id)
-
sort_direction
stringSort the resulting list in the following direction (defaults to ascending)
Returns
200
OK
List all workspaces
GET /api/workspaces
List all workspaces authenticated user has access to
Path parameters
-
sort_by
stringSort the resulting list by the following field (defaults to id)
-
sort_direction
stringSort the resulting list in the following direction (defaults to ascending)
Returns
200
OK
Create a new workspace
POST /api/workspaces
Creates a new workspace
Body parameters
Workspace creation payload
-
name
string name Required -
displayName
string -
defaultDataSources
objectThis is a mapping from the provider type to the data source selected for that type
Nested attributes
-
name
string -
proxyName
string
-
-
frontMatterSchemas
objectA mapping of front matter schemas belonging to a workspace, keyed by name
Returns
200
OK
Get the workspace details
GET /api/workspaces/{workspaceId}
Get the workspace details
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Returns
200
OK
Update workspace settings
PATCH /api/workspaces/{workspaceId}
Update workspace settings
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Body parameters
Workspace update payload
-
displayName
string -
owner
string base64uuid -
defaultDataSources
objectThis is a mapping from the provider type to the data source selected for that type
Nested attributes
-
name
string -
proxyName
string
-
Returns
200
OK
Delete a workspace
DELETE /api/workspaces/{workspaceId}
Permanently deletes a specified workspace
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Returns
200
OK
Retrieve pending workspace invitations
GET /api/workspaces/{workspaceId}/invitations
Retrieves a list of pending workspace invitations
Path parameters
-
sort_by
stringSort the resulting list by the following field (defaults to id)
-
sort_direction
stringSort the resulting list in the following direction (defaults to ascending)
-
page
integerPage number which should be displayed; 0-indexed (defaults to 0)
-
limit
integerMaximum amount of results to display per page (defaults to 20)
Returns
200
OK
Invite a user to workspace
POST /api/workspaces/{workspaceId}/invitations
Invites a user to a workspace
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Body parameters
Workspace invitation payload
-
email
string Required -
role
string Required
Returns
200
OK
Delete a pending workspace invitation
DELETE /api/invitations/{invitationId}
Deletes a pending workspace invitation
Path parameters
-
invitationId
string base64uuid RequiredID of the invitation for which an action should be executed for
Returns
200
OK
Accept the workspace invitation
POST /api/invitations/{invitationId}/{invitationSecret}/accept
Accepts the workspace invitation
Path parameters
-
invitationId
string base64uuid RequiredID of the invitation for which an action should be executed for
-
invitationSecret
string RequiredSecret key used to verify that the route belongs to a specific email address
Returns
200
OK
Decline the workspace invitation
POST /api/invitations/{invitationId}/{invitationSecret}/decline
Declines the workspace invitation
Path parameters
-
invitationId
string base64uuid RequiredID of the invitation for which an action should be executed for
-
invitationSecret
string RequiredSecret key used to verify that the route belongs to a specific email address
Returns
200
OK
Leave a workspace
POST /api/workspaces/{workspaceId}/leave
Leaves a workspace
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Returns
200
OK
Update user in a workspace
PATCH /api/workspaces/{workspaceId}/users/{userId}
Updates the user within a workspace
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
userId
string base64uuid RequiredUser ID
Body parameters
Workspace user update payload
-
role
string
Returns
200
OK
Remove user from workspace
DELETE /api/workspaces/{workspaceId}/users/{userId}
Removes a user from the workspace
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
-
userId
string base64uuid RequiredUser ID
Returns
200
OK
Retrieve workspace image
GET /api/workspaces/{workspaceId}/picture
Retrieves a workspace image
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Returns
200
OK
Upload workspace image
POST /api/workspaces/{workspaceId}/picture
Uploads a workspace image
Path parameters
-
workspaceId
string base64uuid RequiredThe workspace ID
Body parameters
file
-
picture
string binary Required
Returns
200
OK