Create Company Knowledge
POST
/v1/mobile/company-knowledge
const url = 'https://api.vocapable.com/v1/mobile/company-knowledge';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"example","facts":[{"label":"example","text":"example","source_url":"example"}],"reviewed":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/mobile/company-knowledge \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --data '{ "name": "example", "facts": [ { "label": "example", "text": "example", "source_url": "example" } ], "reviewed": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Unique key for this draft change. Retry with the same key and body to replay the saved result instead of repeating the change. Stored for 24 hours; a replay carries Idempotent-Replay: true.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
MobileCompanyKnowledge
object
id
required
Id
string
name
required
Name
string
version
required
Version
integer
sources
required
Sources
Array<object>
PackSourceOne distilled section of a pack, plus where it came from.
text is the artifact, not a summary of one: knowledge_pack_versions carries
sources and no separate body column, so these sections are the compiled pack.
Phrase them spoken-answer-ready - short declaratives an agent can say verbatim.
Example
{ "sources": [ { "kind": "pdf" } ]}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}