Gitbook
Sync Gitbook Spaces
You can sync upto 20 Gitbook spaces at a time using this endpoint. Additional parameters below can be used to associate data with the synced pages or modify the sync behavior.
POST
/
integrations
/
gitbook
/
sync
Authorizations
authorization
string
headerrequiredtoken <token>
, corresponds to temporary access tokens.
Body
application/json
space_ids
string[]
requireddata_source_id
integer
requiredtags
object | null
chunk_size
integer | null
default: 1500chunk_overlap
integer | null
default: 20skip_embedding_generation
boolean | null
default: falseembedding_model
enum<string>
default: OPENAIAvailable 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: falserequest_id
string | null
file_sync_config
object | null
Response
200 - application/json
The response is of type any
.