POST
/
integrations
/
oauth_url

Authorizations

authorization
string
headerrequired

token <token>, corresponds to temporary access tokens.

Body

application/json
service
enum<string>
required
Available options:
BOX,
CONFLUENCE,
DROPBOX,
GMAIL,
GOOGLE_DRIVE,
GOOGLE_CLOUD_STORAGE,
INTERCOM,
NOTION,
ONEDRIVE,
OUTLOOK,
SALESFORCE,
SHAREPOINT,
SLACK,
ZENDESK,
ZOTERO,
GONG,
SERVICENOW
scope
string | null
scopes
string[] | null

List of scopes to request from the OAuth provider. Please that the scopes will be used as it is, not combined with the default props that Carbon uses. One scope should be one array element.

tags
any | null
chunk_size
integer | null
default: 1500
chunk_overlap
integer | null
default: 20
skip_embedding_generation
boolean | null
default: false
embedding_model
enum<string> | null
default: OPENAI
Available options:
OPENAI,
AZURE_OPENAI,
AZURE_ADA_LARGE_256,
AZURE_ADA_LARGE_1024,
AZURE_ADA_LARGE_3072,
AZURE_ADA_SMALL_512,
AZURE_ADA_SMALL_1536,
COHERE_MULTILINGUAL_V3,
VERTEX_MULTIMODAL,
OPENAI_ADA_LARGE_256,
OPENAI_ADA_LARGE_1024,
OPENAI_ADA_LARGE_3072,
OPENAI_ADA_SMALL_512,
OPENAI_ADA_SMALL_1536,
SOLAR_1_MINI
zendesk_subdomain
string | null
microsoft_tenant
string | null
sharepoint_site_name
string | null
confluence_subdomain
string | null
generate_sparse_vectors
boolean | null
default: false
prepend_filename_to_chunks
boolean | null
default: false
max_items_per_chunk
integer | null

Number of objects per chunk. For csv, tsv, xlsx, and json files only.

Required range: x > 0
salesforce_domain
string | null
sync_files_on_connection
boolean | null
default: true

Used to specify whether Carbon should attempt to sync all your files automatically when authorization is complete. This is only supported for a subset of connectors and will be ignored for the rest. Supported connectors: Intercom, Zendesk, Gitbook, Confluence, Salesforce, Freshdesk

set_page_as_boundary
boolean
default: false
data_source_id
integer | null

Used to specify a data source to sync from if you have multiple connected. It can be skipped if you only have one data source of that type connected or are connecting a new account.

connecting_new_account
boolean | null
default: false

Used to connect a new data source. If not specified, we will attempt to create a sync URL for an existing data source based on type and ID.

request_id
string | null

This request id will be added to all files that get synced using the generated OAuth URL

use_ocr
boolean | null
default: false

Enable OCR for files that support it. Supported formats: pdf, png, jpg

parse_pdf_tables_with_ocr
boolean | null
default: false
enable_file_picker
boolean
default: true

Enable integration's file picker for sources that support it. Supported sources: BOX, DROPBOX, GOOGLE_DRIVE, ONEDRIVE, SHAREPOINT

sync_source_items
boolean
default: true

Enabling this flag will fetch all available content from the source to be listed via list items endpoint

incremental_sync
boolean
default: false

Only sync files if they have not already been synced or if the embedding properties have changed. This flag is currently supported by ONEDRIVE, GOOGLE_DRIVE, BOX, DROPBOX, INTERCOM, GMAIL, OUTLOOK, ZENDESK, CONFLUENCE, NOTION, SHAREPOINT, SERVICENOW. It will be ignored for other data sources.

file_sync_config
object | null

Used to configure file syncing (automatic or through connector's inbuilt file picker) on completion of the OAuth flow

automatically_open_file_picker
boolean | null

Automatically open source file picker after the OAuth flow is complete. This flag is currently supported by BOX, DROPBOX, GOOGLE_DRIVE, ONEDRIVE, SHAREPOINT. It will be ignored for other data sources.

gong_account_email
string | null

If you are connecting a Gong account, you need to input the email of the account you wish to connect. This email will be used to identify your carbon data source.

servicenow_credentials
object | null

ServiceNow credentials required to connect a ServiceNow account. The instance_subdomain can be extracted from the url of the instance url which takes the form of "<instance-subdomain>.service-now.com". The client_id and client_secret are values generated by creating a new OAuth API Integration in ServiceNow. When creating the OAuth API Integration, the redirect uri must be "https://api.carbon.ai/integrations/servicenow" or a similar one using a CNAME.

data_source_tags
object

Tags to be associated with the data source. If the data source already has tags set, then an upsert will be performed.

Response

200 - application/json
oauth_url
string
required