Skip to main content

API Keys

All requests to the Guayaba API must be authenticated using an API key passed in the X-API-Key header.
You can generate and manage API keys from the API Keys page in your Guayaba AI dashboard.
API keys follow the format gua_xxxxxxxx_.... Keep your key secret — treat it like a password and never expose it in client-side code or public repositories.

Rate Limiting

API requests are rate-limited per key to ensure fair usage and platform stability.

Rate Limit Headers

Every API response includes these headers so you can monitor your usage:

Handling 429 Errors

When you exceed the rate limit, the API returns a 429 Too Many Requests response. The Retry-After header tells you exactly how many seconds to wait.
Check X-RateLimit-Remaining proactively in your integration. If it drops to 0, pause requests and wait until X-RateLimit-Reset before retrying.

Error Responses

All errors follow a consistent format: