Skip to content

Workspace sync

List selector options

List authorized workspace configuration choices using the selector key and context from an import or sync preview. Requires workspace read access. Missing OAuth connections require human authorization. Keep workspace, selector, context, and search unchanged while paging; a changed provider page returns `409` and requires restarting without a cursor. Provider pages above 8 MiB return `413`; narrow the search. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:read`.

POST/api/v2/selectors/list

List authorized workspace configuration choices using the selector key and context from an import or sync preview. Requires workspace read access. Missing OAuth connections require human authorization. Keep workspace, selector, context, and search unchanged while paging; a changed provider page returns 409 and requires restarting without a cursor. Provider pages above 8 MiB return 413; narrow the search. Workspace API keys return 403; use a personal API key or scoped OAuth token.

OAuth scope: api:read.

Authentication

Send a personal or workspace API key in X-API-Key. See key types and access; operations that reject workspace keys say so in their description.

Send X-API-Key in the request header.

Alternatively

Send a Sim OAuth access token in Authorization: Bearer. See OAuth authentication and scopes.

Authorization: Bearer YOUR_ACCESS_TOKEN

Required scopes: api:read

OAuth flows
json
{
  "authorizationCode": {
    "authorizationUrl": "https://www.sim.ai/api/auth/oauth2/authorize",
    "tokenUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "refreshUrl": "https://www.sim.ai/api/auth/oauth2/token",
    "scopes": {
      "api:read": "Read your workspaces, workflows, files, tables, and logs",
      "api:write": "Read, create, change, run, and delete resources in your workspaces",
      "offline_access": "Stay signed in without asking again"
    }
  }
}

OAuth scope: api:read.

Request body

Required

Workspace, registered selector key, context, and optional search/cursor.

object

Workspace, registered selector key, context, and optional search/cursor.

6 fields
workspaceIdstringRequired

Explicit current workspace scope.

minLength
1
maxLength
128
selectorKeystringRequired

Registered selector key from an import or sync preview, such as gmail.labels.

enum
["airtable.bases","airtable.tables","asana.workspaces","attio.lists","attio.objects","bigquery.datasets","bigquery.tables","bitbucket.workspaces","bitbucket.repositories","calcom.eventTypes","calcom.schedules","clickup.workspaces","clickup.spaces","clickup.folders","clickup.lists","coda.docs","coda.pages","coda.tables","coda.columns","coda.rows","coda.formulas","coda.controls","coda.folders","coda.permissions","confluence.spaces","confluence.spacesById","confluence.pages","google.tasks.lists","fivetran.groups","fivetran.connections","gmail.labels","google.calendar","google.drive","google.sheets","harmonic.savedSearches","helpscout.mailboxes","helpscout.assignees","hubspot.lists","hubspot.owners","hubspot.pipelines","hubspot.pipelineStages","hubspot.properties","jsm.requestTypes","jsm.serviceDesks","microsoft.planner.plans","notion.databases","notion.pages","netsuite.recordTypes","netsuite.asyncTasks","pipedrive.pipelines","sharepoint.lists","trello.boards","zoho_desk.organizations","zoho_desk.departments","zoho_desk.agents","zoom.meetings","slack.channels","snowflake.databases","snowflake.schemas","snowflake.tables","snowflake.warehouses","snowflake.roles","snowflake.fileFormats","snowflake.procedures","slack.users","outlook.folders","outlook.calendars","microsoft.teams","microsoft.chats","microsoft.channels","microsoft.planner","onedrive.files","onedrive.folders","sharepoint.sites","microsoft.excel","microsoft.excel.drives","microsoft.excel.sheets","microsoft.word","wealthbox.contacts","jira.issues","jira.projects","jira.projectKeys","linear.projects","linear.teams","monday.boards","monday.groups","webflow.sites","webflow.collections","webflow.items","planetscale.databases","powerbi.workspaces","powerbi.datasets","powerbi.reports","planetscale.branches","planetscale.backups","planetscale.deployRequests","cloudwatch.logGroups","cloudwatch.logStreams","imap.mailboxes","mcp.tools","managedAgent.agents","managedAgent.environments","managedAgent.vaults","managedAgent.memoryStores","knowledge.documents","sim.workflows","table.columns","table.outputColumns","workspace.secretNames","workspace.sandboxes","providers.ollamaEmbeddingModels","providers.openrouterEmbeddingModels"]
contextobject

Only the dependencies declared by the selector, such as oauthCredential and channelId. Missing OAuth connections require human authorization.

default
{}
Schema details
Additional propertiesstring
maxLength
16384
searchstring

Provider option search text.

minLength
1
maxLength
1024
cursorstring

Cursor returned by the preceding page. Keep workspaceId, selectorKey, context, and search unchanged; only limit may change. Restart without a cursor after a changed-page 409.

minLength
1
maxLength
32768
limitinteger

Maximum options per page, from 1 to 100. Defaults to 50.

default
50
minimum
1
maximum
100

Additional properties are not allowed.

Responses

200

A page of authorized options, continuation cursor, and truncation status.

object

A page of authorized options, continuation cursor, and truncation status.

3 fields
dataarrayRequired

Authorized provider options in this page.

maxItems
100
Schema details
Array itemobject

The SelectorOption result.

3 fields
idstringRequired

Provider resource identifier.

minLength
1
maxLength
16384
labelstringRequired

Human-readable provider resource name.

minLength
1
maxLength
16384
metaobject

Safe scalar metadata for presenting or configuring this choice.

Schema details
Additional propertiesvalue
Schema details

Any of

Option 1string
maxLength
16384
Option 2number
Option 3boolean
Option 4null

Additional properties are not allowed.

nextCursorvalueRequired

Opaque cursor for the next page. Send it back as cursor; null means there is nothing further to fetch. Never construct one yourself.

Schema details

Any of

Option 1string
maxLength
32768
Option 2null
truncatedbooleanRequired

Whether provider limits left the result incomplete. A null nextCursor with truncated: true does not establish that all options were searched.

Additional properties are not allowed.

Was this helpful?
Suggest an edit