Create a new anecdote
Creates a new personal anecdote with content, categorization, and metadata. When autoFill is enabled, AI will generate missing details.
Authorizations
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Query Parameters
autoFill parameter.
"example"
Body
The full content/story of the anecdote
"Last year, I was tasked with leading a cross-functional team for the first time. Initially, I struggled with delegation and tried to micromanage every detail..."
Title of the anecdote (optional when autoFill is enabled)
200"How I Learned to Lead a Team"
Type of anecdote
text, voice "voice"
Transcript of the voice anecdote (for voice type anecdotes)
"So I was reflecting on my journey from junior developer to tech lead..."
Path to the audio file on disk (for voice type anecdotes)
500"/uploads/audio/anecdote-001.mp3"
Type of story/anecdote (optional when autoFill is enabled)
professional_stories, personal_stories, lesson_learned "professional_stories"
UUID of the user who created this anecdote (will be set from authentication token if not provided)
"123e4567-e89b-12d3-a456-426614174000"
Tags for categorizing and searching the anecdote (optional when autoFill is enabled)
[
"leadership",
"teamwork",
"management",
"growth"
]Content formats where this anecdote can be used. Use all to make it available everywhere.
all, linkedin_post, facebook_post, youtube_script, blog_article, short ["youtube_script", "blog_article"]Mood or tone of the anecdote
inspiring, humorous, reflective, educational 50"reflective"
Context where this anecdote took place
work, startup, client meeting, conference, personal 100"startup"
The key lesson or takeaway from this anecdote
"Effective leadership requires trust, clear communication, and empowering team members to make decisions."
How this anecdote could be positioned for LinkedIn posting
"Share this as a leadership lesson with focus on team empowerment and growth mindset."
Priority level for using this anecdote (1 = highest priority, 5 = lowest)
1 <= x <= 51
Whether this anecdote is marked as favorite
false
Whether this anecdote is time-sensitive (contains time-bound information like recent events, dates, achievements that should only be used once)
false
Response
Anecdote created successfully