DBR CPR API (2.0)

Download OpenAPI specification:Download

REST API

CPR API allows for querying for persons in CPR (Civil Registration Register)

CPR API v1

Query for persons in CPR using a person's PNR or name, address, and/or birthdate. This CPR Version is deprecated use V2 instead.

PNR query Deprecated

Query for person in CPR by Personal Identification Number (PNR).

This endpoint is deprecated use CPR API V2 instead.

Authorizations:
oauth2
Request Body schema: application/json
pnr
required
string

Personal identification number

Responses

Request samples

Content type
application/json
{
  • "pnr": "0707614293"
}

Response samples

Content type
application/json
{
  • "person": {
    },
  • "dbrId": "string",
  • "requested": "2018-04-16T09:32:37Z"
}

Match query Deprecated

Query for person in CPR by name, address and/or birthdate.

This endpoint is deprecated use CPR API V2 instead.

Authorizations:
oauth2
Request Body schema: application/json
name
string

Name of person. Must consist of minimum two and maximum 4 name parts. Max. length 66 characters

object (QueryAddress)

Address for person query. Name and either postalDistrict or municipality are required

birthdate
string

Birthdate of person

Responses

Request samples

Content type
application/json
{
  • "name": "Lars Henriksen",
  • "address": {
    },
  • "birthdate": "1961-12-31"
}

Response samples

Content type
application/json
{
  • "person": {
    },
  • "dbrId": "string",
  • "requested": "2018-04-16T09:32:37Z"
}

CPR API v2

Query for persons in CPR using a person's PNR or name, address, and/or birthdate.

PNR query

Query for person in CPR by Personal Identification Number (PNR)

Authorizations:
oauth2
header Parameters
X-LOG-TOKEN
any

Custom correlation token to track request. Will be return in the response

Request Body schema: application/json
pnr
required
string

Personal identification number

Responses

Request samples

Content type
application/json
{
  • "pnr": "0707614293"
}

Response samples

Content type
application/json
{
  • "person": {
    },
  • "dbrId": "string",
  • "requested": "2018-04-16T09:32:37Z"
}

Match query

Query for person in CPR by name, address, and birthdate

Authorizations:
oauth2
header Parameters
X-LOG-TOKEN
any

Custom correlation token to track request. Will be return in the response

Authorization
string
Request Body schema: application/json
name
string

Name of person. Must consist of minimum two and maximum 4 name parts. Max. length 66 characters

object (QueryAddress)

Address for person query. Name and either postalDistrict or municipality are required

birthdate
string

Birthdate of person

Responses

Request samples

Content type
application/json
{
  • "name": "Lars Henriksen",
  • "address": {
    },
  • "birthdate": "1961-12-31"
}

Response samples

Content type
application/json
{
  • "person": {
    },
  • "dbrId": "string",
  • "requested": "2018-04-16T09:32:37Z"
}