Welcome to Aya API
The Aya API is a REST API that provides access to the Aya community platform. Build integrations, manage profiles, publish stories, and interact with the community.Base URL
All API requests should be made to:The API uses locale-based routing. All endpoints include a
{locale} parameter in the path.
Supported locales: ar, de, en, es, fr, it, ja, ko, nl, pt-PT, ru, tr, zh-CNRequest Format
The API accepts JSON-formatted request bodies:Response Format
All responses are JSON-formatted with a consistent structure:Pagination
List endpoints support cursor-based pagination:Number of items per page (max 100)
Number of items to skip
Sort order (varies by endpoint)
Rate Limiting
API requests are rate-limited to ensure fair usage. Rate limit headers are included in responses:X-RateLimit-Limit: Maximum requests per windowX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Time when the rate limit resets
SDKs and Tools
We provide official SDKs for popular programming languages:JavaScript/TypeScript
Official Node.js and browser SDK
Go
Official Go SDK