Index a knowledge-base document asynchronously
Kick off an async ingest into the workspace’s knowledge base.
Four input shapes are accepted (type: text|file|url|youtube).
Returns a Job envelope; poll GET /v1/jobs/{jobId} until
the status transitions to DONE and result.documentId
becomes available.
When projectId is omitted, the document is workspace-scoped
(visible to every project). When set, the document is
project-scoped.
Cost: counts against the daily AI-spend cap (1–3¢ depending
on type, reconciled with provider actuals after the job
runs).
Required scope: knowledge:write.
Documentation Index
Fetch the complete documentation index at: https://apidocs.scripe.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass Authorization: Bearer scripe_sk_live_<...> (or
scripe_sk_test_<...> for test keys) on every request. Keys
are scoped to a single workspace and can be revoked from the
Scripe dashboard.
Headers
Pin the API version. Format YYYY-MM-DD. Omit to receive the
currently rolling default. Unknown versions return 400 version_unsupported.
"2026-08-01"
Opaque string (1–64 chars, [A-Za-z0-9_-]) used to dedup
retried writes. Within 24h of the first request, the same key
- same body returns the original response (
Idempotent-Replayed: true). Same key + different body returns409 idempotency_key_conflict.
Strongly recommended for every write — see
/docs/api/v1/idempotency.
^[A-Za-z0-9_-]{1,64}$Body
Response
Job enqueued.