Namens API

The Belgian company register by number, a watch that tells you when it changes, and the government post (e-Box Enterprise, MyMinfin) of the companies you follow. One key per organisation; a test key works on sample data.

Getting started

Make a key in the application under Developers. A key made in the simulator starts with test_: it answers with the sample companies and sample post, and never asks the register. A key made on real data starts with live_. A key is shown once.

Send the key with every call. Everything is JSON over https; the base address is https://app.namens.be/api/v1.

curl https://app.namens.be/api/v1/account \
  -H "Authorization: Bearer test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
LimitValue
Requests per key60 a minute
New register lookups per key100 a day. An answer is kept for 12 hours and passed on again without counting.
Watches per organisation250

Register data comes from the Crossroads Bank for Enterprises (KBO, FPS Economy). Every answer with register data names that source and the moment the data was fetched; show both when you show the data. Personal data in it, such as names of function holders, may not be used for direct marketing.

Account

GET/account

Whose key this is

The organisation of the key, whether it is a test or a live key, its limits and what it used today. The first call to try a key with.

{
    "data": {
        "organisation": "Kantoor Vermeulen",
        "key": {
            "name": "Dossier system",
            "mode": "test",
            "created_at": "2026-11-29T08:00:00+00:00"
        },
        "limits": {
            "requests_per_minute": 60,
            "register_lookups_per_day": 100,
            "watches": 250
        },
        "today": {
            "requests": 12,
            "register_lookups": 3
        },
        "watches": 1
    }
}

Company register

GET/register/{number}

Look an enterprise up

Name, status, legal form, registered seat and the people who hold a function in the enterprise: a legal representative among them is who validates a mandate. An answer is kept for some hours; "source.retrieved_at" says how old it is. A lookup that has to ask the register counts for the daily number of the key.

ParameterWhereWhat
number *pathA Belgian enterprise number: ten digits, with or without dots or "BE".
{
    "data": {
        "enterprise_number": "0100000169",
        "formatted_number": "0100.000.169",
        "name": "Bakkerij De Korenaar",
        "active": true,
        "status": "Actief",
        "legal_form": "Besloten vennootschap",
        "address": "Graanmarkt 12, 9000 Gent",
        "function_holders": [
            {
                "role": "Bestuurder",
                "holder": "Vermeulen, An",
                "since": "3 maart 2015"
            }
        ],
        "register_url": null
    },
    "source": {
        "name": "KBO, FOD Economie",
        "retrieved_at": "2026-11-29T08:15:00+00:00"
    },
    "terms": "Personal data in this answer, such as names of function holders and all data of a natural-person enterprise, may not be used for direct marketing (royal decree of 18 July 2008, article 2)."
}
GET/register

Search enterprises by name

Enterprises whose name contains the words given, best matches first. Answered from the daily files of the register, so it costs no lookup; it says "search_unavailable" while those files are not loaded.

ParameterWhereWhat
name *queryAt least three characters of the name.
limitqueryHow many results, 20 by default and 50 at most.
{
    "data": [
        {
            "enterprise_number": "0100000169",
            "formatted_number": "0100.000.169",
            "name": "Bakkerij De Korenaar",
            "legal_form": "Besloten vennootschap",
            "address": "Graanmarkt 12, 9000 Gent",
            "status": "Actief"
        }
    ],
    "source": {
        "name": "KBO, FOD Economie",
        "retrieved_at": "2026-11-29T08:15:00+00:00"
    },
    "terms": "Personal data in this answer, such as names of function holders and all data of a natural-person enterprise, may not be used for direct marketing (royal decree of 18 July 2008, article 2)."
}

Watches

POST/watches

Watch an enterprise number

From now on the register is asked again about this number, and every change is kept and sent to your webhooks as "register.changed". Asking twice for the same number returns the watch that is there (200 instead of 201). Send JSON.

ParameterWhereWhat
enterprise_number *bodyThe number to watch.
referencebodyYour own name or number for this enterprise, at most 100 characters; it comes back in every event.
{
    "data": {
        "enterprise_number": "0100000169",
        "reference": "client-381",
        "name": "Bakkerij De Korenaar",
        "status": "Actief",
        "legal_form": "Besloten vennootschap",
        "address": "Graanmarkt 12, 9000 Gent",
        "function_holders": [
            {
                "role": "Bestuurder",
                "holder": "Vermeulen, An",
                "since": "3 maart 2015"
            }
        ],
        "checked_at": "2026-11-29T08:15:00+00:00",
        "created_at": "2026-11-29T08:15:00+00:00"
    }
}
GET/watches

List the watches

Every number the organisation watches, with what the register said the last time.

ParameterWhereWhat
pagequeryThe page, from 1.
per_pagequeryRows per page, 50 by default and 100 at most.
{
    "data": [
        {
            "enterprise_number": "0100000169",
            "reference": "client-381",
            "name": "Bakkerij De Korenaar",
            "status": "Actief",
            "legal_form": "Besloten vennootschap",
            "address": "Graanmarkt 12, 9000 Gent",
            "function_holders": [
                {
                    "role": "Bestuurder",
                    "holder": "Vermeulen, An",
                    "since": "3 maart 2015"
                }
            ],
            "checked_at": "2026-11-29T08:15:00+00:00",
            "created_at": "2026-11-29T08:15:00+00:00"
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 50,
        "total": 1
    }
}
GET/watches/{number}

One watch

What is known about one watched number.

ParameterWhereWhat
number *pathA Belgian enterprise number: ten digits, with or without dots or "BE".
DELETE/watches/{number}

Stop watching

Removes the watch and what it recorded. Answers 204 without a body.

ParameterWhereWhat
number *pathA Belgian enterprise number: ten digits, with or without dots or "BE".
GET/changes

What changed

The changes the watches recorded, newest first: for those who would rather ask than receive a webhook. One row is everything one answer of the register changed. For "function_holders", "before" lists who went and "after" who came.

ParameterWhereWhat
sincequeryOnly changes detected after this date or moment.
enterprise_numberqueryOnly changes of this number.
pagequeryThe page, from 1.
per_pagequeryRows per page, 50 by default and 100 at most.
{
    "data": [
        {
            "id": 18,
            "enterprise_number": "0100000169",
            "reference": "client-381",
            "changes": [
                {
                    "kind": "address",
                    "before": "Graanmarkt 12, 9000 Gent",
                    "after": "Korenlei 3, 9000 Gent"
                }
            ],
            "detected_at": "2026-11-30T02:41:07+00:00"
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 50,
        "total": 1
    }
}

Post

GET/companies

The companies you follow

The companies whose post the organisation follows in the application, with the state of each mandate: none, requested, waiting, active or refused.

ParameterWhereWhat
pagequeryThe page, from 1.
per_pagequeryRows per page, 50 by default and 100 at most.
{
    "data": [
        {
            "enterprise_number": "0100000169",
            "formatted_number": "0100.000.169",
            "name": "Bakkerij De Korenaar",
            "legal_form": "Besloten vennootschap",
            "address": "Graanmarkt 12, 9000 Gent",
            "register_status": "Actief",
            "function_holders": [
                {
                    "role": "Bestuurder",
                    "holder": "Vermeulen, An",
                    "since": "3 maart 2015"
                }
            ],
            "register_checked_at": "2026-11-29T02:41:00+00:00",
            "mandates": {
                "ebox": "active",
                "fps": "waiting"
            },
            "created_at": "2026-11-20T10:00:00+00:00"
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 50,
        "total": 1
    }
}
GET/companies/{number}

One company you follow

The same, for one company. 404 when the organisation does not follow this number.

ParameterWhereWhat
number *pathA Belgian enterprise number: ten digits, with or without dots or "BE".
GET/messages

The inbox

The items of post of all followed companies, newest first: e-Box messages ("ebox"), documents of FPS Finance ("fps") and changes in the company register ("kbo"). An item is described: who it is for, who sent it, what kind it is, and its deadline. The content is never in this list.

ParameterWhereWhat
enterprise_numberqueryOnly items of this company.
sourcequeryebox, fps or kbo.
unreadquery1 for items nobody opened yet.
qqueryWords that have to occur in the item or in the name of its company.
pagequeryThe page, from 1.
per_pagequeryRows per page, 50 by default and 100 at most.
{
    "data": [
        {
            "id": "ebox-1042",
            "source": "ebox",
            "title": "Aanslagbiljet vennootschapsbelasting",
            "company": {
                "enterprise_number": "0100000169",
                "name": "Bakkerij De Korenaar"
            },
            "sender": "FOD Financiën",
            "sender_number": "0308357159",
            "type": "Aanslagbiljet",
            "received_at": "2026-11-27T06:12:00+00:00",
            "registered_mail": false,
            "unread": true,
            "deadline": {
                "due_on": "2027-01-27",
                "kind": "payment",
                "origin": "sender",
                "basis": null
            },
            "handled_at": null
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 50,
        "total": 1
    }
}
GET/messages/{id}

One item

The item, and under "content" what of it can be fetched. "marks_read" says whether fetching that part marks the message as read in the e-Box of the company itself.

ParameterWhereWhat
id *pathThe id of the item, such as ebox-1042.
{
    "data": {
        "id": "ebox-1042",
        "source": "ebox",
        "title": "Aanslagbiljet vennootschapsbelasting",
        "company": {
            "enterprise_number": "0100000169",
            "name": "Bakkerij De Korenaar"
        },
        "sender": "FOD Financiën",
        "sender_number": "0308357159",
        "type": "Aanslagbiljet",
        "received_at": "2026-11-27T06:12:00+00:00",
        "registered_mail": false,
        "unread": true,
        "deadline": {
            "due_on": "2027-01-27",
            "kind": "payment",
            "origin": "sender",
            "basis": null
        },
        "handled_at": null,
        "content": {
            "body": {
                "marks_read": false
            },
            "attachments": [
                {
                    "id": "att-1",
                    "file_name": "aanslagbiljet.pdf",
                    "media_type": "application/pdf",
                    "marks_read": true
                }
            ]
        }
    }
}
GET/messages/{id}/body

The body of an e-Box message

Opens the body, exactly as a click on "Open" in the application does: the opening is written in the log of the organisation under the name of the key. When opening marks the message as read in the e-Box of the company, the call is refused with "mark_read_required" unless mark_read=true is given.

ParameterWhereWhat
id *pathThe id of an e-Box message.
mark_readquerytrue to accept that the message is marked as read for the company too.
GET/messages/{id}/attachments/{attachment}

An attachment of an e-Box message

The file itself. The same rule for mark_read holds, and the opening is logged.

ParameterWhereWhat
id *pathThe id of an e-Box message.
attachment *pathThe id of the attachment, from "content.attachments".
mark_readquerytrue to accept that the message is marked as read for the company too.
GET/messages/{id}/document

The document of an item of FPS Finance

The file itself. Fetching it marks nothing as read at FPS Finance; the opening is logged.

ParameterWhereWhat
id *pathThe id of an item of FPS Finance, such as fps-77.
GET/deadlines

The deadlines

The deadlines of items nobody handled yet, soonest first, from today on.

ParameterWhereWhat
enterprise_numberqueryOnly deadlines of this company.
include_passedquery1 to add deadlines that passed without the item being handled.
pagequeryThe page, from 1.
per_pagequeryRows per page, 50 by default and 100 at most.
{
    "data": [
        {
            "id": 9,
            "due_on": "2027-01-27",
            "kind": "payment",
            "origin": "sender",
            "basis": null,
            "company": {
                "enterprise_number": "0100000169",
                "name": "Bakkerij De Korenaar"
            },
            "message": "ebox-1042"
        }
    ],
    "meta": {
        "page": 1,
        "per_page": 50,
        "total": 1
    }
}

Webhooks

Give an https address in the application under Developers, and it receives a POST for every event of your organisation. Answer with any status from 200 to 299 within ten seconds. Anything else is tried again, 6 times in all over about fifteen hours; an address that only failed for days is switched off. An event describes what happened; it never carries the content of post.

Every delivery is signed the way the Standard Webhooks specification describes, so an existing library can check it. The headers are webhook-id, webhook-timestamp and webhook-signature. The signature is v1, followed by the base64 of an HMAC-SHA256 over id.timestamp.body, with as key the base64-decoded part of your secret after whsec_. The same event can arrive twice: keep the id to recognise it.

{
    "id": "evt_01jdzx3k8v4q2m7h5w9c6r0t1b",
    "type": "register.changed",
    "created_at": "2026-11-30T02:41:07+00:00",
    "mode": "live",
    "data": {
        "origin": "watch",
        "enterprise_number": "0100000169",
        "reference": "client-381",
        "name": "Bakkerij De Korenaar",
        "changes": [
            {
                "kind": "address",
                "before": "Graanmarkt 12, 9000 Gent",
                "after": "Korenlei 3, 9000 Gent"
            }
        ],
        "source": {
            "name": "KBO, FOD Economie",
            "retrieved_at": "2026-11-30T02:41:07+00:00"
        }
    }
}
EVENTregister.changed

The company register changed about a number you watch ("origin": "watch") or about a company you follow in the application ("origin": "company").

{
    "data": {
        "origin": "watch",
        "enterprise_number": "0100000169",
        "reference": "client-381",
        "name": "Bakkerij De Korenaar",
        "changes": [
            {
                "kind": "address",
                "before": "Graanmarkt 12, 9000 Gent",
                "after": "Korenlei 3, 9000 Gent"
            }
        ],
        "source": {
            "name": "KBO, FOD Economie",
            "retrieved_at": "2026-11-30T02:41:07+00:00"
        }
    }
}
EVENTmessage.received

A new item of post arrived for a followed company. The item is described, as in GET /messages; its content is not sent.

{
    "data": {
        "message": {
            "id": "ebox-1042",
            "source": "ebox",
            "title": "Aanslagbiljet vennootschapsbelasting",
            "company": {
                "enterprise_number": "0100000169",
                "name": "Bakkerij De Korenaar"
            },
            "sender": "FOD Financiën",
            "type": "Aanslagbiljet",
            "received_at": "2026-11-27T06:12:00+00:00",
            "registered_mail": false
        }
    }
}
EVENTmessage.handled

Someone marked an item as handled in the application.

{
    "data": {
        "message": {
            "id": "ebox-1042",
            "handled_at": "2026-12-02T09:30:00+00:00"
        }
    }
}
EVENTdeadline.set

An item got a deadline, or its deadline changed.

{
    "data": {
        "deadline": {
            "id": 9,
            "due_on": "2027-01-27",
            "kind": "payment",
            "origin": "sender",
            "basis": null,
            "company": {
                "enterprise_number": "0100000169",
                "name": "Bakkerij De Korenaar"
            },
            "message": "ebox-1042"
        }
    }
}
EVENTmandate.changed

The state of a mandate of a followed company changed: none, requested, waiting, active or refused.

{
    "data": {
        "company": {
            "enterprise_number": "0100000169",
            "name": "Bakkerij De Korenaar"
        },
        "source": "ebox",
        "before": "waiting",
        "after": "active"
    }
}

Errors

A refusal is JSON with a code for your program and a sentence for you:

{
    "error": {
        "code": "invalid_number",
        "message": "This is not a valid Belgian enterprise number: ten digits, with or without dots or \"BE\"."
    }
}
CodeWhat it means
unauthorized401: the key is missing, wrong or revoked.
too_many_requests429: more requests in one minute than the key may make.
daily_limit_reached429: the key used its new register lookups for today.
register_busy429: the register lookups of all keys for today are used up.
register_unavailable503: the company register does not answer.
search_unavailable503: searching by name is not available yet.
invalid_number422: not a valid Belgian enterprise number.
unknown_number404: the register does not know the number (with a test key: not one of the sample companies).
watch_limit_reached409: the organisation has its number of watches.
mark_read_required409: fetching this marks the message as read for the company; add mark_read=true.
source_error502: the e-Box or FPS Finance could not give the content.
not_found404: it does not exist for this organisation.