Skip to main content
POST
Use this route when you already have the candidate content you want to turn into knowledge and need Fini to process it as a single background job.
This route always requires candidateKnowledge. If you want Fini to generate directly from stored source content, use Bulk generate knowledge instead. isDraft defaults to true.

Origins

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
application/json

Body parameters

string
required
Candidate content to turn into knowledge.
string
required
Origin for the content. Allowed values are sources, generated, and inbox.
string
Required when origin is sources. This is the ingested source ID you want to link the generated result to.
string
Required when origin is inbox. This is the inbox event ID you want to link the generated result to.
array
Optional operation restrictions passed through to the generation pipeline. Use this to limit what Fini is allowed to do when it decides how to apply the generated knowledge.
string
Additional generation instructions.
string
Optional agent ID to scope the generated content to.
boolean
default:true
Whether the generated result should remain a draft.

restrictedOps values

Use restrictedOps to limit the operation choices available to the knowledge-generation pipeline for that request.

Response

string
Background job ID for the queued generation request.

Next step

Poll the queued job with Check knowledge jobs. If you left isDraft at its default true, review or publish the resulting draft before expecting live agent answers to change.

Errors

The request body is malformed, candidateKnowledge is missing, origin is invalid, or the origin-specific required field is missing.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope.
Expected when isDraft was left at its default true. Poll the job status, then review or publish the resulting draft through the article workflow.
Fini failed while queueing or processing the generation job. Retry once, then inspect the job with Check knowledge jobs.