Both keys work on every endpoint, except
GET /v1/checkout/sessions/{id}: secret key only.
Note: You can always find your keys in Baag App → Settings → Developers section.
Key errors
Missing API key
Missing API key
Returned with status
401 when there’s no Authorization header.Invalid API key
Invalid API key
Returned with status
401 when the key is wrong, or it was regenerated in Baag App.Plan required
Plan required
Returned with status
403 when the store’s plan doesn’t include API access. The keys work again once the store is back on the Basic plan.Rate limited
Rate limited
Returned with status
429 when the key sent too many requests in a short time. Wait a moment, then retry.