APIAPI referenceAI content verification
Verify Ai Content
200 { matches } (similarity 1.0; empty when nothing matches).
POST/v1/ai-content/verifyScope conversations:read
- Scope:
conversations:read(scopes and plan access) - Rate limit: 600 requests/min per API key (test keys: 60/min) (rate limits)
`200 { matches }` (`similarity` 1.0; empty when nothing matches).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| Idempotency-Key | header | string | null | Optional (03 §2.9) |
Request body (AiContentVerifyRequest)
| Field | Type | Description |
|---|---|---|
| textrequired | string | 1–10000 characters |
Example request
curl -X POST "https://api.shopassist.coec.dk/v1/ai-content/verify" \
-H "Authorization: Bearer $SHOPASSIST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"string"}'Response 200 (AiContentVerifyResponse)
| Field | Type | Description |
|---|---|---|
| matchesrequired | AiContentMatch[] | |
| matches[].conversation_idrequired | string | pattern `^conv_[0-9a-hjkmnp-tv-z]{26}$` |
| matches[].created_atrequired | string | format date-time |
| matches[].message_idrequired | string | pattern `^msg_[0-9a-hjkmnp-tv-z]{26}$` |
| matches[].similarityrequired | number | Always 1.0: exact match only in v1≥ 0 · ≤ 1 · default 1 |
| matches[].store_idrequired | string | pattern `^sto_[0-9a-hjkmnp-tv-z]{26}$` |
{
"matches": [
{
"conversation_id": "conv_01j8000000e008000000000000",
"created_at": "2026-09-28T10:15:30.123Z",
"message_id": "msg_01j8000000e008000000000000",
"similarity": 0,
"store_id": "sto_01j8000000e008000000000000"
}
]
}Errors
Every error uses the error envelope; the code field is stable.
400Bad Request401Unauthorized403Forbidden422Unprocessable Content429Too Many Requests
Last updated on