Drain the ticket embedding outbox — adminseedticketembeddings
const url = 'https://example.com/api/admin/seed-ticket-embeddings?dead_letters=acknowledge';const options = {method: 'POST', headers: {cookie: 'sb-access-token=<sb-access-token>'}};
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://example.com/api/admin/seed-ticket-embeddings?dead_letters=acknowledge' \ --cookie sb-access-token=<sb-access-token>Admin-only embedding outbox drain (HO-14315). Seeds a job for every ticket
with neither a vector nor a job, then claims, embeds and settles up to
max_tickets outbox jobs from the background budget lane. The Slipstream
schedule embedding-drain calls it every ten minutes; a manual call is the
same run. Auth via the x-cron-secret header matching CRON_SECRET.
The body also carries the global outbox health the schedule fails on
(HO-14476). dead_letters runs no drain: it marks every new dead letter
handled and, with requeue, gives each dead-lettered ticket a fresh job.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Jobs to claim this run (default and cap 5000, DRAIN_MAX_TICKETS).
Acknowledge (or requeue) dead letters instead of draining.
Responses
Section titled “ Responses ”Drain run counts, or the dead-letter reset counts when dead_letters is set
object
Dead letters across every project not yet acknowledged.
Pending jobs due at or before this run’s start and not leased.
Jobs this run settled as done (embedded + unchanged).
Age in seconds of the oldest pending job from its creation; null when none.
Durable embedding-cache rows this run removed, unread for 30 days (HO-14603).
Not authenticated
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
True if re-linking GitHub may fix the issue
Server error
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Server error
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)