Registering a birth
To register a birth, send a POST request to /v1/birth. The API validates the message, stores it and immediately returns a messageId that you use to follow the status of the message.
- URL:
POST /v1/birth - Authentication: See Authentication. Requires
nhn:birthsystem/write, assurance level 4, an HPR number, and that the person is a midwife or doctor. - Input:
application/json - Output:
application/json
POST /v1/birth
Authorization: DPoP <access_token>
DPoP: <dpop_proof>
Content-Type: application/json
Request
The top level of the request consists of:
| Field | Type | Required | Description |
|---|---|---|---|
birthDto |
object | Yes | The details of the birth. See birthDto below. |
isCorrectedRequest |
bool | No | true if this is a correction of a previous message. The default is false. |
originalMessageId |
string | Conditional | The messageId of the original message. Must be set when isCorrectedRequest is true, and must not be set otherwise. |
birthDto
| Field | Type | Required | Description |
|---|---|---|---|
parentsLiveTogether |
bool | Yes | Whether the parents live together. |
parentsAreMarried |
bool | Yes | Whether the parents are married. |
numberOfChildrenMultipleBirth |
integer | Conditional | The number of children in a multiple birth (2–7). Must be set together with the child's multipleBirthSequenceNumber, and the first digit of the sequence number must equal this number. |
childDto |
object | Yes | The child. See childDto. |
mother |
object | Yes | The mother. See parent. |
fatherOrCoMother |
object | No | The father or co-mother. Same structure as mother. |
birthPlaceDto |
object | Yes | The place of birth. See birthPlaceDto. |
childDto
| Field | Type | Required | Description |
|---|---|---|---|
dateOfBirth |
date | Yes | Date of birth (yyyy-MM-dd). Must be within the last year and must not be in the future. |
isBornAlive |
bool | Yes | Whether the child was born alive. |
multipleBirthSequenceNumber |
string | Conditional | Sequence number for a multiple birth, e.g. 21, 22 for twins. The first digit is the number of children, the second digit is the order. Must be set together with numberOfChildrenMultipleBirth. |
gender |
string | Yes | Female or Male. |
hospitalChildIdentificationNumber |
string | Yes | The hospital's own identifier for the child (max 200 characters). Used before the child has a NIN, and must be unique for the organisation. |
Parents (mother and fatherOrCoMother)
A parent is identified in exactly one of two ways. The fields for the two ways are mutually exclusive.
Way 1 – NIN (or D-number):
Set only nationalIdNumber. None of the other identification fields (name, dateOfBirth, citizenship*, norwegianAddress) must not be set.
| Field | Type | Description |
|---|---|---|
nationalIdNumber |
string | NIN or D-number (11 digits). |
When a NIN is given, the system fetches the parent's name and date of birth from the Person Service. For the mother, the system will additionally reject the request if the NIN belongs to a person with the male gender.
Way 2 – without NIN (name + date of birth):
nationalIdNumber must not be set. The following is then required:
| Field | Type | Required | Description |
|---|---|---|---|
name |
object | Yes | The name. See name. |
dateOfBirth |
date | Yes | Date of birth (yyyy-MM-dd). Must be before the child's date of birth. |
citizenshipIsUnknown |
bool | Yes | Whether the citizenship is unknown. |
citizenship |
string | Conditional | Country code (ISO alpha-3, e.g. SWE). Must be set when citizenshipIsUnknown is false, and must not be set when it is true. |
norwegianAddress |
object | Conditional | Norwegian address. Must be set when citizenshipIsUnknown is false. |
isCoMother |
bool | No | Whether the parent is a co-mother. Must be false for mother. |
name
| Field | Type | Required | Description |
|---|---|---|---|
firstName |
string | Yes | First name (1–200 characters). |
middleName |
string | No | Middle name (1–200 characters). |
lastName |
string | Yes | Last name (1–200 characters). |
Names can contain letters (including Nordic/Sámi), spaces, hyphens and apostrophes. The character set is aligned with the Tax Administration's birth message contract.
norwegianAddress
| Field | Type | Required | Description |
|---|---|---|---|
streetName |
string | Yes | Street and house number (max 4000 characters). |
postalCode |
string | Yes | Postal code (4 digits). Must be a valid postal code. |
birthPlaceDto
| Field | Type | Required | Description |
|---|---|---|---|
institutionName |
string | Yes | The name of the birth institution (max 200 characters). |
municipalityNumber |
string | Yes | Municipality number (4 digits). Must be a valid municipality number. |
Response
200 OK
The message has been received and stored.
| Field | Type | Description |
|---|---|---|
messageId |
GUID | The ID of the birth message. Used for status lookups and for corrections. |
hospitalChildIdentificationNumber |
string | The hospital's identifier for the child (echo of the input). |
dateTime |
date/time | The server's timestamp (UTC). |
{
"messageId": "6d0a3f2e-1b4c-4d5e-8f90-a1b2c3d4e5f6",
"hospitalChildIdentificationNumber": "12345678910",
"dateTime": "2026-11-06T08:30:00Z"
}
400 Bad Request
The message failed validation. The response is a ProblemDetails object where title is Validation error and detail contains one or more error messages (one per line). Unknown fields, invalid JSON and values of the wrong type give 400 in the same format. The response has no errors dictionary.
Example where a validation rule fails:
{
"title": "Validation error",
"status": 400,
"detail": "Date of birth cannot be in the future",
"traceId": "..."
}
Example where a value has the wrong type or format, here dateOfBirth sent as 31.12.2025 instead of 2025-12-31 (yyyy-MM-dd). Path shows which field it applies to:
{
"title": "Validation error",
"status": 400,
"detail": "The JSON value could not be converted to System.DateOnly. Path: $.birthDto.childDto.dateOfBirth | LineNumber: 0 | BytePositionInLine: 151.",
"traceId": "..."
}
401 Unauthorized / 403 Forbidden
See Authentication.
409 Conflict
The message conflicts with already registered data. Typical cases:
- The hospital's identifier (
hospitalChildIdentificationNumber) has already been used by the organisation for another birth. - A birth for the mother has already been registered on the given date. The mother is matched by NIN, or by name + date of birth if she has no NIN.
- A birth for several children on the same date has already been split between a single birth and a multiple birth, or the sequence number has already been used.
- The correction points to a message that does not have the status approved, or to a message that has already been corrected by an approved correction.
503 Service Unavailable
A dependent system (e.g. the Person Service) was temporarily unavailable. Try again later.
Validation – summary
The following is checked before the message is approved. Validation errors give 400, conflicts give 409:
| Area | Check |
|---|---|
| Child's date of birth | Must be within the last year and must not be in the future. |
| Gender | Must be Female or Male. |
| Hospital's identifier | Must not be empty, max 200 characters, and must be unique for the organisation. |
| Parent | Must have either a NIN or name + date of birth – not both. |
| NIN | 11 digits with a valid check digit. Must correspond to a registered person (Person Service). The mother's NIN must have the female gender. |
| Citizenship | Must be valid (ISO alpha-3) and exist, if given. |
| Postal code / municipality number | Must be valid (exist in the reference data). |
| Name / street address | Must follow the allowed character sets and lengths. |
| Multiple birth | numberOfChildrenMultipleBirth (2–7) and multipleBirthSequenceNumber must be set together and be consistent. At most 7 children. |
| Parent's date of birth (without NIN) | Must be before the child's date of birth. |
| Co-mother | mother cannot be a co-mother. |
| Correction | originalMessageId must be a valid GUID and point to an existing message when isCorrectedRequest is true. The original message must have the status approved and must not be corrected by an approved correction (409). |
Reference data (postal codes, municipality numbers, country codes) is kept up to date automatically by the system.
Why must the child's date of birth be within the last year? To ensure this system is used only for newborns who need a personal identification number, we limit registration to children whose date of birth falls within the past 12 months. This is an internal business rule. Neither the National Registry nor the Tax Administration imposes any age restriction on the date of birth; births older than one year should be reported through other channels (e.g., the National Registry / UDI).
Correcting a previous birth
A correction is sent as a new birth message where isCorrectedRequest is set to true and originalMessageId points to the messageId of the original message. The correction is validated in the same way as an ordinary birth, but the duplicate checks for a new registration are not performed for a correction – use the same hospitalChildIdentificationNumber as in the original message.
The original message must have the status approved before it can be corrected, and the correction must point to the last approved message in the chain. While a previous correction is still pending, has been denied or rejected, or is under manual review, the original is still the last approved message and can be corrected again. A correction of a non-approved or already corrected message is rejected with 409.
Note
A correction gets its own new messageId. The original message is kept; the correction is a new message that refers to it. Use Status to follow both.
Examples
All the examples below assume a valid HelseID token (see Authentication). The NINs in the examples are fictional.
Single birth, both parents with NIN
{
"birthDto": {
"parentsLiveTogether": true,
"parentsAreMarried": false,
"childDto": {
"dateOfBirth": "2026-11-01",
"isBornAlive": true,
"gender": "Female",
"hospitalChildIdentificationNumber": "12345678910"
},
"mother": {
"nationalIdNumber": "30069820006"
},
"fatherOrCoMother": {
"nationalIdNumber": "03019710040"
},
"birthPlaceDto": {
"institutionName": "Rikshospitalet",
"municipalityNumber": "0301"
}
}
}
Single birth, mother without NIN
{
"birthDto": {
"parentsLiveTogether": false,
"parentsAreMarried": false,
"childDto": {
"dateOfBirth": "2026-11-01",
"isBornAlive": true,
"gender": "Male",
"hospitalChildIdentificationNumber": "HOSP-2026-000456"
},
"mother": {
"name": {
"firstName": "Anna",
"middleName": "Karin",
"lastName": "Svensson"
},
"dateOfBirth": "1990-01-15",
"citizenshipIsUnknown": false,
"citizenship": "SWE",
"norwegianAddress": {
"streetName": "Storgata 20",
"postalCode": "0150"
},
"isCoMother": false
},
"birthPlaceDto": {
"institutionName": "Sykehuset Innlandet HF",
"municipalityNumber": "5101"
}
}
}
Twin birth (child 1 of 2)
{
"birthDto": {
"parentsLiveTogether": true,
"parentsAreMarried": true,
"numberOfChildrenMultipleBirth": 2,
"childDto": {
"dateOfBirth": "2026-11-01",
"isBornAlive": true,
"multipleBirthSequenceNumber": "21",
"gender": "Female",
"hospitalChildIdentificationNumber": "HOSP-2026-000789-1"
},
"mother": {
"nationalIdNumber": "30069820006"
},
"birthPlaceDto": {
"institutionName": "Sykehuset Østfold HF",
"municipalityNumber": "0505"
}
}
}
Note
For a multiple birth, one message per child is sent, as in the old system. Child 1 of 2 twins gets the sequence number 21, child 2 gets 22. The field numberOfChildrenMultipleBirth is 2 in both messages.
Correction of a previous birth
{
"isCorrectedRequest": true,
"originalMessageId": "6d0a3f2e-1b4c-4d5e-8f90-a1b2c3d4e5f6",
"birthDto": {
"parentsLiveTogether": true,
"parentsAreMarried": false,
"childDto": {
"dateOfBirth": "2026-11-01",
"isBornAlive": true,
"gender": "Male",
"hospitalChildIdentificationNumber": "12345678910"
},
"mother": {
"nationalIdNumber": "30069820006"
},
"birthPlaceDto": {
"institutionName": "Rikshospitalet",
"municipalityNumber": "0301"
}
}
}