The SDK authenticates every request with a bearer API key. You construct aDocumentation Index
Fetch the complete documentation index at: https://docs.youka.io/llms.txt
Use this file to discover all available pages before exploring further.
YoukaClient once and reuse it for the lifetime of your process.
new YoukaClient(options)
Options
Your Youka API key. Create one at
online.youka.io/account under API keys.
Custom
fetch implementation. Defaults to the global fetch. Use this to
inject logging, proxies, or custom retry middleware.Storing the API key
Recommended patterns:- Environment variable
- Secret manager
Injecting a custom fetch
Every SDK method uses thefetch you pass to the constructor. This makes it easy to add logging or middleware:
Per-request options
Every method accepts an optional second or third argument with request-level options:Passed as the
Idempotency-Key header. Reusing the same key with the same
payload returns the original result instead of creating a duplicate. See API
idempotency.Standard abort signal. Cancels in-flight requests and long-running
client.tasks.wait(...), client.projects.wait(...), and
client.exports.wait(...) polls.What’s next
- Projects — create your first project
- Errors — handle authentication failures
- API authentication — raw HTTP header details
