Skip to main content
POST
/
v1
/
anecdotes
/
batch
Batch create anecdotes from Excel file
curl --request POST \
  --url https://api.yalg.ai/v1/anecdotes/batch \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "success": true,
  "message": "Your anecdotes are being created. This may take a few minutes.",
  "jobId": "batch-import-1234567890"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Query Parameters

autoFill
boolean

Enable AI auto-fill for missing details (default: true)

Example:

true

Body

multipart/form-data
file
file
required

Excel file (.xlsx, .xls) with columns: TITRE, ANGLE, ANECDOTE

Response

Batch import job queued successfully