Gitbook
Sync Gitbook Connection
You will need an access token to connect your Gitbook account. Note that the permissions will be defined by the user generating access token so make sure you have the permission to access spaces you will be syncing. Refer this article for more details https://developer.gitbook.com/gitbook-api/authentication. Additionally, you need to specify the name of organization you will be syncing data from.
POST
/
integrations
/
gitbook
Authorizations
authorization
string
headerrequiredtoken <token>
, corresponds to temporary access tokens.
Body
application/json
organization
string
requiredaccess_token
string
requiredtags
object | null
chunk_size
integer | null
default: 1500chunk_overlap
integer | null
default: 20skip_embedding_generation
boolean | null
default: falseembedding_model
enum<string>
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
generate_sparse_vectors
boolean | null
default: falseprepend_filename_to_chunks
boolean | null
default: falsesync_files_on_connection
boolean | null
default: truerequest_id
string | null
sync_source_items
boolean
default: trueEnabling this flag will fetch all available content from the source to be listed via list items endpoint
file_sync_config
object | null
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
success
boolean
required