API Documentation
FirmAPI provides a REST API for Slovak company data and extended enrichments including tax data, bank accounts, financial metrics, financial statements, insolvency, public procurement, and notifications via webhook or email.
Authentication
All API requests require authentication using an API key. You can create API keys in your dashboard.
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Or use the X-API-Key header:
X-API-Key: YOUR_API_KEY
Sandbox
Test the API without registration. The sandbox provides 10 demo companies with full data, no rate limits, and unlimited requests. Perfect for development and integration testing.
Sandbox API Key
fa_sandbox_test_key_firmapi_sk_2026
Available sandbox endpoints:
| Endpoint | Description | Auth |
|---|---|---|
| GET /v1/sandbox/companies | List all demo companies | Not required |
| GET /v1/sandbox/company/ico/{ico} | Full company profile with all scopes | Not required |
| GET /v1/sandbox/search/autocomplete?q= | Autocomplete search in demo companies | Sandbox key |
SDK Examples
// PHP
$client = \FirmApi\Client::sandbox();
$company = $client->companies->byIco('31333532')->withAll()->get();
// JavaScript / TypeScript
const client = FirmApi.sandbox();
const company = await client.companies.byIco('31333532').withAll();
Base URL
https://firmapi.sk/v1
Public endpoints (no authentication): GET /status (service status) and GET /health (monitoring health-check).
Account calls (/account/*), notification management (/notifications/*) and batch status/results polling cost no credits and keep working when the balance is exhausted.
Data Sources
FirmAPI combines core registers and supplemental enrichment sources into a single response:
| Source | Data | Update Frequency |
|---|---|---|
| RPO (Register of Legal Entities) | Name, registration number, address, legal form, status | Daily |
| ORSR (Commercial Register) | Shareholders, statutory bodies, business activities, registered capital | On demand / monthly |
| Tax and financial sources | Tax ID, VAT ID, VAT payer status, core financial metrics, financial statements | Continuously based on source availability |
| EU VIES | VAT ID validation | On demand (7-day cache) |
| Public registers and bulletins | Debtor lists, commercial bulletin, insolvency, enforcement authorizations, public contracts and procurement, Public Procurement Office registers, Tax Authority registers, sanctions lists (EU/OFAC/UK/UN) and other public registers | Continuously based on source availability |
Stale Data & Background Refresh
FirmAPI returns the latest available data immediately and aims to keep data fetched from sources newer than 10 days. If ORSR data or supplemental source data is older, it automatically triggers a background refresh.
If ORSR details are older than 30 days or data fetched from supplemental sources is older than 10 days, the response will include staleness markers:
-
meta.stale: true– data is outdated -
meta.retry_at– ISO 8601 timestamp when to poll again for fresh data -
meta.stale_reason– for exampleorsr_data_outdated,enrichment_data_outdated, ororsr_and_enrichment_data_stale
Retry the same request after retry_at. Background refresh typically completes within 10-15 seconds.
{
"data": { ... },
"meta": {
"rpo_updated_at": "2026-02-05T06:00:00Z",
"orsr_synced_at": "2025-12-01T14:30:00Z",
"source": "database",
"stale": true,
"retry_at": "2026-02-05T12:00:15Z",
"stale_reason": "orsr_data_outdated"
}
}
Endpoints
/company/ico/{ico}
Get company details by IČO (registration number).
Parameters
| ico | string | 8-digit company registration number |
Query Parameters
| scope | string | Comma-separated list of enrichment scopes to include. Omit for base data only (fastest). |
Available scopes
By default, company endpoints return only core data (name, address, status). Use the scope parameter to include additional enrichment data. Each scope requires the corresponding feature on your plan.
tax, bank_accounts, contacts, financials, debtor_status, financial_statements, insolvency, execution_authorizations, rpvs, nbs, tax_reliability, erased_vat, commercial_bulletin, public_contracts, procurement, trade_license_activities, reges, contracting_authority, debarred, uvo_references, crp_projects, ted_tenders, gleif, sanctions, social_enterprise, replik_administrator, sbs, transport_licence, utility_licence, fs_imports, illegal_employment, court_decisions, employer_headcount, soi_travel_agency, svps_establishments, itms21, convicted_entities, state_aid, grants, producer_registry, law_firm_registry
tax, bank_accounts, contacts, financials, debtor_status, financial_statements, insolvency, execution_authorizations, rpvs, nbs, tax_reliability, erased_vat, commercial_bulletin, public_contracts, procurement, trade_license_activities, reges, contracting_authority, debarred, uvo_references, crp_projects, ted_tenders, gleif, sanctions, social_enterprise, replik_administrator, sbs, transport_licence, utility_licence, fs_imports, illegal_employment, court_decisions, employer_headcount, soi_travel_agency, svps_establishments, itms21, convicted_entities, state_aid, grants, producer_registry, environmental_permits
tax, bank_accounts, contacts, financials, debtor_status, financial_statements, insolvency, execution_authorizations, rpvs, nbs, tax_reliability, erased_vat, commercial_bulletin, public_contracts, procurement, trade_license_activities, reges, contracting_authority, debarred, uvo_references, crp_projects, ted_tenders, gleif, sanctions, social_enterprise, replik_administrator, sbs, transport_licence, utility_licence, fs_imports, illegal_employment, court_decisions, employer_headcount, soi_travel_agency, svps_establishments, itms21, convicted_entities, state_aid, grants, producer_registry, insolvency_registry
tax, bank_accounts, contacts, financials, debtor_status, financial_statements, insolvency, execution_authorizations, rpvs, nbs, tax_reliability, erased_vat, commercial_bulletin, public_contracts, procurement, trade_license_activities, reges, contracting_authority, debarred, uvo_references, crp_projects, ted_tenders, gleif, sanctions, social_enterprise, replik_administrator, sbs, transport_licence, utility_licence, fs_imports, illegal_employment, court_decisions, employer_headcount, soi_travel_agency, svps_establishments, itms21, convicted_entities, state_aid, grants, producer_registry, public_sector
Example Request
curl -X GET "https://firmapi.sk/v1/company/ico/51636549" \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://firmapi.sk/v1/company/ico/51636549?scope=tax,financials,debtor_status" \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X GET "https://firmapi.sk/v1/company/ico/51636549?scope=all" \
-H "Authorization: Bearer YOUR_API_KEY"
Example Response
{
"data": {
"ico": "51636549",
"name": "Version Two s. r. o.",
"legal_form": "Spoločnosť s ručením obmedzeným",
"legal_form_code": "112",
"address": {
"street": "Hlavná 1",
"city": "Bratislava",
"postal_code": "81101",
"country": "Slovensko"
},
"established_date": "2018-05-15",
"terminated_date": null,
"source_register": "Obchodný register",
"status": "active",
"orsr_id": "427482",
"registration_date": "2018-05-15",
"business_activities": "Počítačové služby...",
"registered_capital": "5 000 EUR",
"shareholders": [
{"name": "John Doe", "address": "Bratislava", "share_amount": "5000 EUR", "share_percentage": "100%"}
],
"statutory_body": [
{"name": "John Doe", "role": "konateľ", "address": "Bratislava"}
]
},
"meta": {
"rpo_updated_at": "2026-02-05T06:00:00Z",
"orsr_synced_at": "2026-01-20T14:30:00Z",
"source": "database"
}
}
/search/autocomplete
Search companies by name or IČO with autocomplete. Returns Select2-compatible format.
Query Parameters
| q | string | Search query (min 2 characters) |
| limit | integer | Max results (default: 10, max: 20) |
Example Response
{
"results": [
{"id": "51636549", "text": "Version Two s. r. o.", "ico": "51636549", "city": "Bratislava"},
{"id": "12345678", "text": "Version s.r.o.", "ico": "12345678", "city": "Košice"}
],
"pagination": {"more": false}
}
/company/id/{orsr_id}
Get company details by ORSR internal ID.
Example Request
curl -X GET "https://firmapi.sk/v1/company/id/427482" \
-H "Authorization: Bearer YOUR_API_KEY"
/company/{id}
Get company details by internal database ID.
Example Request
curl -X GET "https://firmapi.sk/v1/company/12345" \
-H "Authorization: Bearer YOUR_API_KEY"
/search/name
Search companies by name with pagination.
Query Parameters
| q | string | Company name (min 3 characters) |
| exact | integer | Exact match (0 or 1, default: 0) |
| limit | integer | Max results (default: 10, max: 100) |
| offset | integer | Pagination offset (default: 0) |
/search/ico
Search companies by partial IČO number.
Query Parameters
| q | string | Partial IČO |
| limit | integer | Max results (default: 10, max: 100) |
/search/advanced
Multi-field search with various filters.
Query Parameters
| name | string | Company name |
| city | string | City name |
| legal_form | string | Legal form |
/batch/ico
Requires Professional+ plan
Submits a list of IČOs for asynchronous processing and returns the batch ID (response 202). The batch is processed within an hour, at a time of lower server load. Track progress via the batch status and download the finished result via the batch results. Requires the Professional plan or higher; the batch size limit depends on the plan. Costs half the regular price: 1 credit per 2 submitted items, rounded up (1,000 IČOs = 500 credits).
Request Body
{
"icos": ["51636549", "12345678", "87654321"]
}
Example Response
HTTP 202
{
"data": {
"id": "01jfz3k8q7x2m5n9p4r6t8v0wa",
"type": "ico",
"status": "pending",
"total": 3,
"processed": 0,
"expires_at": "2026-12-02T10:00:00+01:00"
},
"meta": {
"status_url": "https://api.firmapi.sk/v1/batch/01jfz3k8q7x2m5n9p4r6t8v0wa/status",
"results_url": "https://api.firmapi.sk/v1/batch/01jfz3k8q7x2m5n9p4r6t8v0wa/results"
}
}
/batch/names
Requires Professional+ plan
Submits a list of names for asynchronous processing (up to 5 matches per name) and returns the batch ID (response 202). The batch is processed within an hour. Requires the Professional plan or higher. Costs 1 credit per 2 submitted items, rounded up.
Request Body
{
"names": ["Version Two s. r. o.", "Example Company"]
}
/batch/{batchId}/status
Requires Professional+ plan
Batch state: pending, processing, completed or failed, with the number of processed, found and not found items. Available for 7 days after submission and costs no credits.
Parameters
| batchId | string | Batch ID returned when the batch was submitted |
/batch/{batchId}/results
Requires Professional+ plan
Results of a completed batch, keyed by IČO or by the name query. Until the batch is finished it answers 409 (batch_not_ready). Available for 7 days after submission and costs no credits.
Parameters
| batchId | string | Batch ID returned when the batch was submitted |
Example Response
{
"data": {
"51636549": {"found": true, "data": {"ico": "51636549", "name": "Version Two s. r. o.", ...}},
"87654321": {"found": false, "data": null}
},
"meta": {
"id": "01jfz3k8q7x2m5n9p4r6t8v0wa",
"type": "ico",
"total": 2,
"found": 1,
"not_found": 1
}
}
/account/usage
Get current period usage statistics.
/account/quota
Get remaining quota for current billing period.
/account/history
Get usage history for the specified period.
Query Parameters
| days | integer | Number of days to retrieve (default: 30, max: 365) |
/account/thresholds
Configure credit-usage alert thresholds (email when a chosen percentage of quota is reached).
/notifications
List your active and historical notification subscriptions.
/notifications
Create or update a change subscription for a specific company IČO. You can configure a webhook URL, an email target, or both.
Request Body
{
"ico": "51636549",
"webhook_url": "https://example.com/firmapi/webhook",
"notification_emails": ["ops@example.com", "alerts@example.com"],
"events": ["updated"]
}
/notifications/{ico}
Delete a subscription for the specified company IČO.
/notifications/{subscriptionId}/deliveries
Retrieve recent deliveries for a specific subscription, including channel, status, and retry attempts.
/notifications/history/{ico}
Get detected company change history for the specified IČO.
/notifications/test
Validate a webhook or email destination without creating a persistent subscription.
Response Format & Data Model
Company endpoints return a JSON object with data and meta fields. The data object contains all available company information grouped into the following categories.
Basic Information
Core company data from RPO: ico, name, legal_form, legal_form_code, address (street, city, postal_code, country), status (active, terminated, deleted), established_date, terminated_date, source_register.
Tax Information
The tax section contains tax identifiers and VAT state: dic, ic_dph, is_vat_payer, vies_valid, vies_verified_at. It is returned together with a vat_registration section from the Finančná správa VAT payers list: type (registration type), is_group_member (VAT group member, § 4b or § 4c), group_member_count and dates. The section is absent when the company is not in the list or the registration type has not been loaded yet. The other members of a VAT group come from GET /v1/vat-groups/{ic_dph}/members, keyed by vat_registration.ic_dph.
ORSR Details
Detailed data from the commercial register (only for ORSR companies). The base response carries orsr_id and registered_capital; the orsr scope (or all) adds the registered people split by body: statutory_body (name, role, function, body_type, address, acting_method, appointed_at, effective_from, effective_to, current), supervisory_board, shareholders (equity holders only – name, address, share_amount, share_paid, share_currency, share_percentage, contribution_kind, deposit_lien, is_company, ico, stakeholder_type, effective_from, effective_to, current), shares (share issues), procurators (with acting_method), liquidators, administrators, founders, branch_heads, legal_predecessors, other_stakeholders and business_activities. Members of collective bodies carry a function (chairman / vice_chairman / member).
Contacts, accounts, and financials
Optional enrichment sections based on plan: bank_accounts (IBAN, bank, published account), financials (year, revenue, profit, assets, employees_count).
Risk and compliance data
Advanced enrichments may include debtor_status, financial_statements (latest, available_years), insolvency, commercial_bulletin, public_contracts_summary, and procurement_summary.
Meta Fields
Response metadata: rpo_updated_at, orsr_synced_at, enriched_at, source (database, cache, or live), cached, stale, retry_at, and stale_reason.
Notifications: webhook and email
FirmAPI supports change notifications through webhook URLs and email. For each IČO you can configure either delivery channel or both, and manage them via API or dashboard.
Setup
Configure notifications in the dashboard or via POST /notifications. Webhook subscriptions receive a unique HMAC secret for signature verification.
Event Types
-
company.updated– Fired when existing company data is modified (e.g. address change, new shareholders, status update) -
Delivery is sent to the configured
webhook_url, thenotification_emailsarray, or both.
Payload Structure
Webhook payloads include the event type, timestamp, changed field with previous and new value, and a compact company snapshot. Email notifications carry the same event meaning, but are delivered as readable messages without HMAC headers.
{
"event": "company.updated",
"timestamp": "2026-02-05T12:00:00Z",
"data": {
"ico": "51636549",
"change_type": "updated",
"field": "address",
"old_value": "Hlavná 1, 81101 Bratislava",
"new_value": "Mlynské nivy 5, 82109 Bratislava",
"detected_at": "2026-02-05T06:15:00Z",
"company": {
"name": "Version Two s. r. o.",
"legal_form": "Spoločnosť s ručením obmedzeným",
"city": "Bratislava",
"status": "active"
},
"tax_info": {
"dic": "2120776680",
"ic_dph": "SK2120776680",
"is_vat_payer": true
}
}
}
Headers
-
X-Webhook-Signature– HMAC-SHA256 signature of the request body using your webhook secret -
X-Webhook-Event– Event type (e.g.company.updated) -
X-Webhook-Delivery-Id– Unique delivery identifier for idempotency
Signature Verification
Every webhook request is signed using HMAC-SHA256. Verify the signature to ensure the request is authentic and has not been tampered with.
// PHP verification example
$signature = $request->header('X-Webhook-Signature');
$payload = $request->getContent();
$expected = hash_hmac('sha256', $payload, $webhookSecret);
if (hash_equals($expected, $signature)) {
// Signature is valid
}
Retry Behavior
If a webhook endpoint returns a non-2xx status code, FirmAPI retries delivery with exponential backoff. Delivery history is available via <code>GET /notifications/{subscriptionId}/deliveries</code>. Email notifications are logged in the same delivery history with channel <code>email</code>.
MCP server
The Enterprise plan includes an MCP server at https://api.firmapi.sk/mcp (streamable HTTP). Connect it to AI assistants that support MCP and authenticate with the same API key as the REST API (Authorization: Bearer or X-API-Key header).
claude mcp add --transport http firmapi https://api.firmapi.sk/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
Tools
-
search_companies– search companies by name or IČO, optionally filtered by city and legal form -
get_company– company detail by IČO; choose data sources with the scopes parameter as in the REST API -
batch_lookup– look up to 50 IČO in one call -
vat_group_members– members of a VAT group -
nbs_entities– entities supervised by the National Bank of Slovakia -
account_quota– credit balance and limits of your account
Billing
Tool calls are billed like the REST API: a company search or detail costs 1 credit, a batch lookup 1 credit per 2 IČOs (rounded up). Cached responses, failed calls and the account_quota tool are free. The limit is 120 calls per minute per API key.
Rate Limits
Rate limits depend on your subscription tier. The following headers are included in all responses:
-
X-RateLimit-Limit-Minute– Requests allowed per minute -
X-RateLimit-Remaining-Minute– Requests remaining this minute -
X-RateLimit-Limit-Daily– Requests allowed per day -
X-RateLimit-Remaining-Daily– Requests remaining today
Errors
All errors return a JSON object with error and message fields.
| Status Code | Error | Description |
|---|---|---|
| 401 | unauthorized | Invalid or missing API key |
| 402 | credits_exhausted | Credit balance exhausted – add credits or enable overage billing |
| 403 | forbidden | Feature not available on your plan |
| 404 | not_found | Company not found |
| 422 | validation_error | Invalid request parameters |
| 429 | rate_limit_exceeded | Too many requests |
| 503 | service_unavailable | Service temporarily unavailable |