Authentication
Create an API key in Merrin under Settings › Integrations. Each key has abilities, chosen when it is created:
| Ability | Lets the key |
|---|---|
firms:read |
read your firms |
people:read |
read your people |
complaints:write |
send complaints data |
trading:write |
send trading figures |
webhooks:manage |
list, add and remove webhook endpoints |
Send the key as a bearer token on every request:
Authorization: Bearer 12|mrn_live_...A missing, wrong or revoked key gets 401. A key without the ability a route needs gets 403 with reason: "missing_ability". The key is shown once, when it is created; if it is lost, revoke it and create another.