Check which documents to push
curl --request POST \
--url https://api.conare.ai/sources/{id}/documents/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"documents": [
{
"external_id": "<string>",
"tag": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({documents: [{external_id: '<string>', tag: '<string>'}]})
};
fetch('https://api.conare.ai/sources/{id}/documents/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.conare.ai/sources/{id}/documents/check"
payload = { "documents": [
{
"external_id": "<string>",
"tag": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"need": [
"<string>"
],
"excluded": [
"<string>"
]
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}Fontes personalizadas
Check which documents to push
Takes up to 1,000 {external_id, tag}: need lists those to push, excluded those deleted with exclude.
- With
run_id, every document asked about counts as seen by that run, so unchanged ones need no push.
POST
https://api.conare.ai
/
sources
/
{id}
/
documents
/
check
Check which documents to push
curl --request POST \
--url https://api.conare.ai/sources/{id}/documents/check \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"documents": [
{
"external_id": "<string>",
"tag": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({documents: [{external_id: '<string>', tag: '<string>'}]})
};
fetch('https://api.conare.ai/sources/{id}/documents/check', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.conare.ai/sources/{id}/documents/check"
payload = { "documents": [
{
"external_id": "<string>",
"tag": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"need": [
"<string>"
],
"excluded": [
"<string>"
]
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}{
"error": {
"code": "invalid_request",
"message": "text is required",
"request_id": "7d0f4c1e-2b8a-4e39-9a61-3c5e8b2f9d04"
}
}Autorizações
A key from conare.ai/dashboard/keys with full access, some namespaces, or models only (/embed, /rerank, /v1, /v2/rerank, /parse).
Cabeçalhos
One key (a UUID) per logical write, sent again on each retry: a repeat within 24 hours replays the first successful answer.
Required string length:
1 - 255Pattern:
^[\x21-\x7e]+$Parâmetros de caminho
The source id, src_….
Corpo
application/json
Esta página foi útil?