APIKnowledge
Create a knowledge draft
POST
A new entry is a draft until it is approved. Scope: knowledge:write.
bearerheader
AuthorizationBearer <mosc_...>A client key (mosc_).
Idempotency-Key*string8 to 128 characters. The same key and body return the stored response.
Length
8 <= length <= 128application/json- body
question*stringLength
1 <= length <= 300answer*stringLength
1 <= length <= 2000tags?array<>Items
items <= 8Default
[]verbatim?booleanDefault
falsesource?stringDefault
"api"Value in
"api""dashboard""gap"The draft entry.
application/json- response
entry*An approved answer, or a draft of one. The assistant uses approved entries only.
Example request
curl -X POST 'https://api.messageos.ai/v1/knowledge' \ -H 'Authorization: Bearer mosc_...' \ -H 'Idempotency-Key: visit-reminder-42-2026-10-28' \ -H 'Content-Type: application/json' \ -d '{ "question": "Where can I park?", "answer": "Parking is in the lot behind the building.", "tags": [ "parking" ]}'Example response
{ "entry": { "id": 12, "question": "Where can I park?", "answer": "Parking is in the lot behind the building.", "tags": [ "parking" ], "verbatim": true, "status": "draft", "source": "seed", "version": 1, "approvedBy": null }}