Authentication
Every request carries a private API key, and every key has a rate limit.
Every request carries your private key in the Authorization header. Keys start with ysk_, belong to one account and have permissions (emails:send, profiles:write …). Create one under Transactional → API keys in the app; you can reveal it again there after entering your password.
Authorization: Bearer ysk_…Origin header) is refused, so a key can never work from your website's JavaScript. Keep keys in your server's secrets and revoke one under API keys if it leaks.Rate limits
Each key has a request limit per minute (600 by default, adjustable when you create it). The current window is in the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers of every response to a request with a valid key (not on a 401, or on a request refused before the key is read); X-RateLimit-Reset is in Unix seconds. Over the limit, the answer is 429 with Retry-After.
Request ids
Every response carries an X-Request-Id. Quote it when you ask us about a request.