Overview
The Workspace API allows you to create and manage workspaces, configure organizations, manage team members, and control workspace settings like scheduling and enabled AI providers.Endpoints
create
Create a new workspace with a new organization. Type: Mutation (Protected) Rate Limit: 3 requests per hourName of the organization (2-80 characters). Defaults to workspace name if not provided.
Name of the workspace (2-50 characters)
URL-friendly slug for the workspace (2-50 characters)
Domain to track (2-50 characters)
The created workspace object
The created organization object
Whether this is the user’s first workspace
createInOrg
Create a new workspace within an existing organization. Type: Mutation (Protected)Name of the workspace (2-50 characters)
URL-friendly slug for the workspace (2-50 characters)
Domain to track (2-256 characters)
ID of the existing organization
The created workspace object
Whether this is the user’s first workspace
listByOrg
List all workspaces for a specific organization. Type: Query (Protected)Organization ID to list workspaces for
Array of workspace objects belonging to the organization
listAllForUser
List all workspaces the authenticated user has access to. Type: Query (Protected) Input: NoneArray of all workspace objects the user can access
getById
Get detailed information about a specific workspace. Type: Query (Authorized Workspace)ID of the workspace to retrieve
Complete workspace object with all details
updateDetails
Update workspace name and domain. Requires owner role. Type: Mutation (Authorized Workspace) Authorization: Owner onlyID of the workspace to update
New workspace name (2-80 characters)
New domain to track (2-256 characters)
Updated workspace object
updateOrganizationName
Update the organization name. Requires owner role. Type: Mutation (Authorized Workspace) Authorization: Owner onlyID of the workspace
New organization name (2-80 characters)
Updated organization object
listMembers
List all members of a workspace with their user details. Type: Query (Authorized Workspace)ID of the workspace
Array of workspace members with user information
addMember
Invite a new member to the workspace by email. Type: Mutation (Authorized Workspace)ID of the workspace
Email address of the user to invite
Role to assign: “owner” or “member”. Defaults to “member”
Created workspace membership
removeMember
Remove a member from the workspace. Requires owner role. Type: Mutation (Authorized Workspace) Authorization: Owner onlyID of the workspace
ID of the user to remove
Role of the user being removed
Whether the member was successfully removed
joinByCode
Join a workspace using an invite code. Type: Mutation (Protected) Rate Limit: 5 requests per 15 minutesWorkspace invite code
The joined workspace
The created membership
getJoinInfo
Get workspace join information including invite code. Type: Query (Authorized Workspace)ID of the workspace
Invite code for the workspace
Expiration date for the invite code, if any
getEnabledProviders
Get the list of enabled AI providers for the workspace. Type: Query (Authorized Workspace)ID of the workspace
Array of enabled provider names
setEnabledProviders
Configure which AI providers to track for this workspace. Type: Mutation (Authorized Workspace)ID of the workspace
Array of provider names to enable. Must include at least one provider.Valid providers: “openai”, “anthropic”, “google”, “perplexity”, “mistral”, “cohere”
Updated workspace object
getSchedule
Get the current cron schedule for automated prompt collection. Type: Query (Authorized Workspace)ID of the workspace
Cron expression for the schedule, or null if not scheduled
setSchedule
Set or update the cron schedule for automated prompt collection. When a schedule is set, an immediate agent run is triggered. Type: Mutation (Authorized Workspace)ID of the workspace
Cron expression for the schedule (e.g., “0 0 * * *” for daily at midnight), or null to disable
Updated workspace object
Status of the immediate agent run that was triggered
status: "queued"- Run was successfully queued with jobIdstatus: "empty"- No prompts to analyzestatus: "failed"- Run failed with errorstatus: "not-requested"- Schedule was set to null (disabled)
getCronTiming
Get timing information for the workspace schedule including next run time and last run time. Type: Query (Authorized Workspace)ID of the workspace
ISO 8601 timestamp of the next scheduled run, or null if not scheduled
ISO 8601 timestamp of the last prompt collection run, or null if never run
deleteAccount
Permanently delete the authenticated user’s account and all associated data. Type: Mutation (Protected) Input: None Warning: This action is irreversible.Related Resources
Prompts API
Store prompts for your workspace
Agent API
Run automated prompt collection