API and API keys
Connect your systems to Firmado with API keys that only do what you allow.
Create a key
- Go to Settings → API keys (admins, paid plans) and create one.
- Name it after the system that uses it and, if you want, set when it expires.
- Give it permissions per feature: read, create, update, delete.
- Copy the key. It is shown only once.
Use it
Send the key in the X-Api-Key header, or as Authorization: Bearer fmd_.... Every call works on the key's organization only.
curl https://api.firmado.app/v1/contacts \
-H "X-Api-Key: fmd_..."- Errors
- Always
{ "error": { "code", "message", "details" } }, with a stablecodeto act on. - Rate limit
- All keys of the organization share the plan's requests per minute. Each answer carries
X-RateLimit-Limit,X-RateLimit-RemainingandX-RateLimit-Reset; past it,429withRetry-After. - Plan limits
- Past an allowance, the API answers
402with a code likeCONTACT_LIMIT_REACHED. - Money
- Amounts are integers in cents.
Every endpoint, with its parameters and an example, is in the API reference.