Backfill ticket embeddings for vector similarity search
POST
/admin/seed-ticket-embeddings
const url = 'https://example.com/api/admin/seed-ticket-embeddings';const options = {method: 'POST', headers: {Authorization: 'Bearer <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 \ --header 'Authorization: Bearer <token>'Admin-only backfill endpoint. Computes OpenAI embeddings for all open tickets missing embeddings or with stale content_hash. Auth via CRON_SECRET.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” token
string
Responses
Section titled “ Responses ”Backfill results
Media type application/json
object
ok
boolean
processed
integer
updated
integer
skipped
integer
errors
integer
Not authenticated
Media type application/json
object
error
required
Human-readable error message
string
code
Stable machine-readable error code for client branching
string
fieldErrors
First validation message per field path
object
key
additional properties
string
issues
Structured validation issues (Zod)
Array<object>
object
path
required
string
message
required
string
retryAfter
Seconds until rate limit resets (429 responses)
number
reconnect
True if re-linking GitHub may fix the issue
boolean