Skip to main content
POST
/
v1
/
anecdotes
/
{id}
/
post-job
/
run
Generate post from anecdote using agentic pipeline and run immediately
curl --request POST \
  --url https://api.yalg.ai/v1/anecdotes/{id}/post-job/run \
  --header 'x-api-key: <api-key>'
{
  "id": "018f9f41-22a1-74bb-9450-7dd0d21ab8ab",
  "title": "The onboarding lesson",
  "content": "A customer got stuck on step one, which showed us the product was explaining itself too late.",
  "mood": "reflective",
  "storyType": "lesson",
  "tags": [
    "onboarding",
    "product"
  ],
  "isFavorite": false,
  "createdAt": "2026-06-20T17:24:39.000Z",
  "updatedAt": "2026-06-20T17:24:39.000Z"
}

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.

Path Parameters

id
string
required

UUID of the anecdote

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Post generation job completed

Source anecdote used by YALG content workflows.

id
string<uuid>

Anecdote identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

title
string
Example:

"The onboarding lesson"

content
string
Example:

"A short story that can be turned into content."

mood
string
Example:

"reflective"

storyType
string
Example:

"lesson"

tags
string[]
isFavorite
boolean
Example:

false

createdAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

updatedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"