API keys
Owners and admins create keys on the API / MCP page in the app. Each key has a name you choose (for example “Accounting system sync”) and one or more scopes.
- Shown once. The full secret appears only right after you create or rotate the key. FirmaSignal stores only a hash; if you lose the secret, rotate the key.
- Format.
fs_v1_key_<key id>_<secret>. The key ID is public and appears, masked, in the key list; the secret part is not. - Last used and created by. The key list shows when each key was last used (to the minute) and who created it, so you can find and retire keys nobody uses.
- Rotate. Rotating issues a new secret with the same name and access and revokes the old key at once. Update the systems that use it straight away.
- Revoke. Revoking stops the key immediately and cannot be undone. Requests with it get
401 authentication_error.
Scopes
Give each key only what it needs. A call outside the key's scopes gets 403 authorization_error; MCP clients see only the tools the key's scopes allow.
| Scope | What it allows | Endpoints and MCP tools |
|---|---|---|
verifications:read | Companies and checks Check a company by NIP and read checks again; look companies up, search them and read evidence over MCP. A new check uses one API call from the plan. | POST /v1/nip/verifications GET /v1/verifications/{verification_id} lookup_company search_companies get_evidence verify_company get_verification |
change_feeds:read | Change feed Read the immutable feed of changes at the companies you monitor: register changes, KRS filings and debt-warning transitions. | GET /v1/change-events list_changes list_change_events |
alerts:read | Alerts and monitored companies Read delivered filing alerts, the monitored companies and their open alerts. | GET /v1/alerts list_monitored_companies list_open_alerts |
financial_filing_monitors:read | Filing monitors (read) List the annual financial-statement monitors of the workspace. | GET /v1/financial-filing-monitors |
financial_filing_monitors:write | Filing monitors (write) Start watching a company's annual financial statement; the company joins My companies and counts towards the plan's company limit. | POST /v1/financial-filing-monitors |
Headers
| Header | When | Value |
|---|---|---|
Authorization | Every call except the sandbox | Bearer $FIRMASIGNAL_API_KEY |
Content-Type | Requests with a body | application/json |
Idempotency-Key | Every POST | Your unique ID for the request, 8–128 printable characters. Retrying with the same key and body is safe. |
Firma-Api-Version | Optional | v1. Pin it to be told (406) instead of surprised if a later version changes the default. |
Responses from the verification and change-feed endpoints carry firma-request-id. Quote it when you contact support.
Keeping keys safe
- Call the API from your server, never from a browser, a mobile app or a widget.
- Keep keys in a secret manager or environment variable, not in code or chat.
- Use one key per system, so you can rotate or revoke one without touching the others.
- Check “Last used” now and then, and revoke keys that are no longer used.