The Firmado API.

Every endpoint an API key can call: what it does, its parameters, what it returns and an example. Built from the API itself, so it always says what the API accepts; responses come from what it answers in its tests.

Authentication

Create a key in Settings → API keys and send it in the X-Api-Key header, or as Authorization: Bearer fmd_.... Each key works on its organization only, with the permissions you gave it per feature: read, create, update and delete. The action comes from the method: GET reads, POST creates, PUT and PATCH update, DELETE deletes, unless an endpoint says otherwise.

curl https://api.firmado.app/v1/contacts \
  -H "X-Api-Key: fmd_..."

Errors

Every refusal has the same body, with a stable code to act on and a message for people:

{
  "error": {
    "code": "CONTACT_LIMIT_REACHED",
    "message": "Your plan's contacts are used up.",
    "details": { "limit": 1000 }
  }
}
400
The input failed validation (VALIDATION_ERROR, with the issues in details), or the action does not apply.
401
No key, or the key is revoked or expired.
402
Your plan does not include it, or an allowance is used up (*_LIMIT_REACHED).
403
The key lacks the permission for this feature and action.
404
Not found in this organization.
409
It conflicts with what exists, like a reference already used.
429
Too many requests: wait for Retry-After seconds.

Rate limit

All keys of an organization share the requests per minute of its plan. Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.

Conventions

  • Money is in integer minor units: 1500 is 15.00 in the record's currency.
  • Dates and times are ISO 8601. Ids are UUIDs.
  • Lists are paged with page and pageSize (up to 100), and many can be searched with q.

Webhooks

Webhooks send events as they happen, signed in the Firmado-Signature header. Each feature's page lists its events. See Webhooks to set them up.

OpenAPI

The whole reference is an OpenAPI 3.1 file: import it into Postman, Insomnia or a code generator.

Download openapi.json ↓

Endpoints by feature