Knowledge & document review
Organize documents, track ingestion and keep approved content separate from live business records.
Create a collection
A collection groups related documents. A useful first collection might hold a service policy and its escalation guidance. Creating it requires write scope and an Idempotency-Key; reading it requires the independent read scope.
curl -X POST "$MUWKL_BASE_URL/v1/collections" \
-H "Authorization: Bearer $MUWKL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $COLLECTION_REQUEST_ID" \
-d '{"name":"Customer service policies"}'Choose an ingestion profile
Read the collection’s ingestion-options before uploading. Use an embedding_profile_id and representation returned for your environment. Supported source formats are txt and md; the request carries source text rather than a multipart file upload. The overall API body limit still applies.
POST /v1/collections/{collection_id}/documents accepts a title and upload fields and returns 202 with an ingestion job. TXT content uses text_metadata for language, rendering, support category and citation. A completed ingestion job does not approve the document.
curl "$MUWKL_BASE_URL/v1/collections/$COLLECTION_ID/ingestion-options" \
-H "Authorization: Bearer $MUWKL_API_KEY"| Field | Meaning |
|---|---|
| source_format | txt | md |
| source | UTF-8 document text in the JSON body |
| embedding_profile_id | UUID from ingestion-options |
| representation | Representation supported by that profile |
| text_metadata.supports | policy | published_fee | warranty_term | general_information |
Review the exact version
Versions move through draft, approved, superseded and withdrawn. Read the review-packet for the exact version, including its content revision. Passage changes use content_revision to reject stale edits. Workspace API keys can prepare content; they do not grant human approval authority.
Use knowledge for reviewed policies and published information. Query your business provider for a request’s current status, availability or other changing records.
curl "$MUWKL_BASE_URL/v1/documents/$DOCUMENT_ID/versions/$VERSION/review-packet" \
-H "Authorization: Bearer $MUWKL_API_KEY"Endpoints
| Method | Path | Scope |
|---|---|---|
| GET / POST | /v1/collections | read / write |
| GET / POST | /v1/collections/{id}/documents | read / write |
| GET | /v1/collections/{id}/ingestion-options | read |
| GET / POST | /v1/documents/{id}/versions | read / write |
| GET | /v1/documents/{id}/versions/{version}/review-packet | read |
| GET | /v1/documents/{id}/versions/{version}/jobs/{job_id} | read |
| POST | /v1/documents/{id}/versions/{version}/withdraw | write |
Need a hand? Get in touch