Skip to content

Workspace sync

Get selector option

Get an authorized configuration choice by provider ID and declared context with workspace read access. Returns `data: null` when the option is absent from complete results. Truncated results or pagination limits that prevent verification return `413`; a list-only lookup checks at most 100 pages or 10,000 options. Workspace API keys return `403`; use a personal API key or scoped OAuth token. OAuth scope: `api:read`.

POST/api/v2/selectors/get

Get an authorized configuration choice by provider ID and declared context with workspace read access. Returns data: null when the option is absent from complete results. Truncated results or pagination limits that prevent verification return 413; a list-only lookup checks at most 100 pages or 10,000 options. 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 provider option ID.

object

Workspace, registered selector key, context, and provider option ID.

4 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
idstringRequired

Provider option ID to resolve with the same selector and declared context.

minLength
1
maxLength
16384

Additional properties are not allowed.

Responses

200

The authorized option, or data:null when absent from complete results.

object

The authorized option, or data:null when absent from complete results.

1 field
datavalueRequired

Response data.

Schema details

Any of

Option 1object

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.

Option 2null

Additional properties are not allowed.

Was this helpful?
Suggest an edit