This guide gets you from an empty integration to a verified API call.
1. Create an API key
- Sign in to YALG.
- Open
Settings > Developer.
- Create a named API key for your integration.
- Copy the full key immediately.
API keys are shown once. Store them in a server-side secret manager or
environment variable, and never expose them in client-side code.
2. Store the key
Store the key as a server-side environment variable:
YALG_API_KEY="yalg_live_PUBLIC_ID.SECRET"
Do not ship this key in browser JavaScript, mobile client bundles, or public repositories.
3. Call the account endpoint
The production API base URL is:
Public integration endpoints live under /v1.
Send the full API key in the x-api-key header:
x-api-key: yalg_live_PUBLIC_ID.SECRET
curl https://api.yalg.ai/v1/me \
-H "x-api-key: $YALG_API_KEY"
4. Use the API reference
Open the API reference from the sidebar to inspect endpoint parameters, request bodies, responses, and examples. The playground uses the live OpenAPI 3.1 document and exposes an x-api-key authentication field.
5. Build the first workflow
Most integrations start with one of these flows:
- Create an anecdote, then generate a post draft from it.
- Create or update posts from another content planning tool.
- Read analytics and pending validation items into an internal dashboard.
- Trigger script, short, carousel, or b-roll workflows from an external system.