Generate a LinkedIn post asynchronously
Kick off an AI-driven post generation. The handler validates
input, reserves AI-spend capacity, enqueues an async job, and
returns a Job envelope. The customer polls
GET /v1/jobs/{jobId} until status transitions to DONE
or FAILED.
Cost: counts against the daily AI-spend cap (~5¢ per call, reconciled with provider actuals after the job runs).
wait_for_completion_ms is a soft hint — the server polls
for up to that many milliseconds (capped at 25 000 ms) before
returning. The response shape is identical regardless;
sync-wait callers receive a DONE status when lucky and a
RUNNING/QUEUED status otherwise.
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
"proj_a1b2c3d4e5f6g7h8"
- Option 1
- Option 2
If set, the worker schedules the resulting post for the given timestamp (must be in the future). Defaults to a draft post.
Optional steering hints. The worker already loads the
project's tone-of-voice profile, voice samples, content
pillars, and KB — most callers should leave this empty and
put any extra steering into source.text.
Soft hint — server polls for up to this many ms before returning. Capped at 25 000 ms. Larger values are silently clamped.
0 <= x <= 25000Response
Job enqueued (or finished, on a sync-wait hit).