Skip to main content
POST
Create anecdote from audio

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

Example:

false

Body

multipart/form-data
audio
file
required

Audio file (mp3, wav, m4a, etc.)

priority
number
default:1

Priority level (1 = highest, 5 = lowest)

Required range: 1 <= x <= 5
title
string

Optional title to keep when autoFill is disabled

storyType
string

Optional story type

tags
string

JSON array of tags, for example ["leadership"]

contentScopes
string

JSON array of content scopes, for example ["linkedin"]

mood
string

Optional mood/tone

context
string

Optional context around the anecdote

lessonLearned
string

Optional lesson learned

linkedinAngle
string

Optional LinkedIn angle

isFavorite
enum<string>

Whether the anecdote starts as favorite

Available options:
true,
false
timeSensitive
enum<string>

Whether the anecdote is time-sensitive

Available options:
true,
false

Response

Audio anecdote processed and created successfully