API by router
Knowledge
POST
HTTPBearerheader
AuthorizationBearer <token>X-Api-Key?string|nullapplication/json- body
chunk_overlap?Chunk OverlapRange
0 <= value <= 1000Default
200chunk_size?Chunk SizeRange
200 <= value <= 5000Default
1500content*ContentText content to ingest
Length
1 <= lengthcustomer_id?|nullinstance_id?|nullsource_id*Source IdSource identifier (file path, URL, etc.)
Length
length <= 500source_name*Source NameHuman-readable source name
Length
length <= 500source_type?Source TypeSource type: r2, drive, web, sheet, email
Default
"r2"Successful Response
application/json- response
chunks_created*Chunks Createdsource_id*Source Idtokens_embedded*Tokens Embeddedcurl -X POST 'https://example.com/v1/knowledge/ingest' \ -H 'Content-Type: application/json' \ -d '{ "content": "string", "source_id": "string", "source_name": "string"}'Example Response
{ "chunks_created": 0, "source_id": "string", "tokens_embedded": 0}GET
HTTPBearerheader
AuthorizationBearer <token>customer_id?|nullX-Api-Key?string|nullSuccessful Response
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/knowledge/sources'Example Response
[ { "chunk_count": 0, "source_id": "string", "source_name": "string", "source_type": "string", "total_tokens": 0 }]DELETE
HTTPBearerheader
AuthorizationBearer <token>source_id*Source Idsource_type?Source TypeDefault
"r2"customer_id?|nullinstance_id?|nullX-Api-Key?string|nullSuccessful Response
application/json- response
curl -X DELETE 'https://example.com/v1/knowledge/sources/string'Example Response
{}