curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/knowledge' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"knowledge": "string",
"metadata": {},
"force_create": true
}'
{
"object": "knowledge.write_result",
"action": "created",
"point_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"embedding_model": "string"
}
Add a knowledge-base document (near-duplicates update in place)
The write result. action is updated when a near-duplicate document (at or above similarity_threshold) was updated in place instead of creating a new one…
POST
/
api
/
v1
/
knowledge
curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/knowledge' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"knowledge": "string",
"metadata": {},
"force_create": true
}'
{
"object": "knowledge.write_result",
"action": "created",
"point_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"embedding_model": "string"
}
Headers
string
Optional client-generated key that makes the POST safe to retry: a repeat with the same key and body replays the original response instead of creating a duplicate.
Request body
object
string
required
Maximum length:
100000.object
boolean
Response
object
string
required
Allowed values:
'knowledge.write_result'.string
required
Allowed values:
'created', 'updated'.string (uuid)
required
The knowledge document id (a Qdrant point id).
string
required
The embedding model used to (re)embed the text.
Status codes
| Code | Meaning |
|---|---|
200 | The write result. action is updated when a near-duplicate document (at or above similarity_threshold) was updated in place instead of creating a new one; force_create: true always creates. |
400 | Invalid request. issues names the offending field(s). |
401 | Missing, invalid, or expired API key. |
403 | The key lacks a required scope. |
409 | Conflict — either the creation ceiling was reached for this organization (agent_limit_reached), or a request with the same Idempotency-Key is still in flight (idempotency_in_progress); retry the latter after the first attempt settles. |
422 | The Idempotency-Key was already used with a DIFFERENT request body (idempotency_key_reused). Reuse a key only to retry the identical request. |
429 | Rate limit exceeded. |
Access
| Required scope | knowledge:write |
| Rate limit | 10 requests per minute |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://response.stateset.com/api/v1/knowledge' \
--header "Authorization: Bearer $RESPONSECX_API_KEY" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"knowledge": "string",
"metadata": {},
"force_create": true
}'
{
"object": "knowledge.write_result",
"action": "created",
"point_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"embedding_model": "string"
}
Last modified on September 21, 2026