MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Auth Endpoints

Get a fresh transient token cookie for the authenticated user.

Example request:
curl --request POST \
    "https://api.notariusze.org.pl/oauth/token/refresh" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.notariusze.org.pl/oauth/token/refresh"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST oauth/token/refresh

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Authorize a client to access the user's account or allows to get an access token via Client Credentials Grant Flow.

Example request:
curl --request POST \
    "https://api.notariusze.org.pl/oauth/token" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"grant_type\": \"client_credentials\"
}"
const url = new URL(
    "https://api.notariusze.org.pl/oauth/token"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "grant_type": "client_credentials"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "token_type": "Bearer",
    "expires_in": 1296000,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
}
 

Request      

POST oauth/token

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

grant_type   string   

Example: client_credentials

Must be one of:
  • client_credentials
  • password

Deputy

Get all deputies

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/deputies" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"per_page\": 10,
    \"sort_by\": \"id\",
    \"is_active\": false,
    \"updated_at_greater_than\": \"2024-12-09\"
}"
const url = new URL(
    "https://api.notariusze.org.pl/deputies"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "per_page": 10,
    "sort_by": "id",
    "is_active": false,
    "updated_at_greater_than": "2024-12-09"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1001,
            "name": "Katarzyna",
            "second_name": "Anna",
            "surname": "Kowalska",
            "role": {
                "id": 24780,
                "from_date": "2019-11-20",
                "to_date": null,
                "statuses": [
                    {
                        "status_id": 25,
                        "name": "Aktywny",
                        "resolution_date": null
                    }
                ]
            },
            "emails": [
                {
                    "id": 1052,
                    "email": "katarzyna.kowalska@test.pl",
                    "is_sending": 1
                }
            ],
            "employments": [
                {
                    "id": 1127,
                    "from_date": "2024-01-01",
                    "to_date": null,
                    "notary_office_id": 1,
                    "contract_type": "1/2",
                    "contract_form": "Umowa o pracę"
                }
            ],
            "photo": {
                "id": 1201,
                "photo_url": "[SON_URL]/user/zdjecie/pokaz/dab2485f6e37b00a303775a93ef67cca899fced7",
                "filename": "istockphoto-124-612x612",
                "ext": "jpg",
                "mime_type": "image/jpeg"
            },
            "updated_at": "2024-01-01T00:00:00.000000Z"
        },
        {
            "id": 502,
            "name": "Katarzyna",
            "second_name": "",
            "surname": "Kowalska2",
            "emails": [
                {
                    "id": 2190,
                    "email": "katarzyna.kowalska2@test.pl",
                    "is_sending": 1
                }
            ],
            "employments": [],
            "photo": null,
            "updated_at": null
        },
        {
            "id": 503,
            "name": "Katarzyna",
            "second_name": "",
            "surname": "Kowalska3",
            "role": {
                "id": 24176,
                "from_date": "2019-08-26",
                "to_date": null,
                "statuses": [
                    {
                        "status_id": 27,
                        "name": "Nieaktywny",
                        "resolution_date": null
                    }
                ]
            },
            "emails": [
                {
                    "id": 1054,
                    "email": "katarzyna.kowalska2@test.pl",
                    "is_sending": 1
                }
            ],
            "employments": [
                {
                    "id": 116,
                    "from_date": "2017-11-09",
                    "to_date": null,
                    "notary_office_id": 485,
                    "contract_type": null,
                    "contract_form": "Umowa o pracę"
                }
            ],
            "photo": null,
            "updated_at": null
        }
    ],
    "links": {
        "first": "https://api.notariusze.org.pl/deputies?page=1",
        "last": "https://api.notariusze.org.pl/deputies?page=226",
        "prev": null,
        "next": "https://api.notariusze.org.pl/deputies?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 226,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=95",
                "label": "95",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=96",
                "label": "96",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/deputies?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://api.notariusze.org.pl/deputies",
        "per_page": 3,
        "to": 3,
        "total": 287
    }
}
 

Request      

GET deputies

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

per_page   integer  optional  

Example: 10

sort_by   string  optional  

Example: id

Must be one of:
  • id
  • id_desc
  • name
  • name_desc
  • updated_at
  • updated_at_desc
is_active   boolean  optional  

Example: false

updated_at_greater_than   string  optional  

Must be a valid date in the format Y-m-d. Example: 2024-12-09

Show deputy

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/deputies/1001" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.notariusze.org.pl/deputies/1001"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "name": "Katarzyna",
        "second_name": "Anna",
        "surname": "Kowalska",
        "role": {
            "id": 24780,
            "from_date": "2019-11-20",
            "to_date": null,
            "statuses": [
                {
                    "status_id": 25,
                    "name": "Aktywny",
                    "resolution_date": null
                }
            ]
        },
        "emails": [
            {
                "id": 1052,
                "email": "katarzyna.kowalska@test.pl",
                "is_sending": 1
            }
        ],
        "employments": [
            {
                "id": 1127,
                "from_date": "2024-01-01",
                "to_date": null,
                "notary_office_id": 1,
                "contract_type": "1/2",
                "contract_form": "Umowa o pracę"
            }
        ],
        "photo": {
            "id": 1201,
            "photo_url": "[SON_URL]/user/zdjecie/pokaz/dab2485f6e37b00a303775a93ef67cca899fced7",
            "filename": "istockphoto-124-612x612",
            "ext": "jpg",
            "mime_type": "image/jpeg"
        },
        "updated_at": "2024-01-01T00:00:00.000000Z"
    }
}
 

Request      

GET deputies/{deputy_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

deputy_id   integer   

The ID of the deputy. Example: 1001

Notary

Get all notaries

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/notaries" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"per_page\": 10,
    \"sort_by\": \"id\",
    \"is_active\": false,
    \"updated_at_greater_than\": \"2024-12-09\"
}"
const url = new URL(
    "https://api.notariusze.org.pl/notaries"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "per_page": 10,
    "sort_by": "id",
    "is_active": false,
    "updated_at_greater_than": "2024-12-09"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 501,
            "name": "Jan",
            "second_name": null,
            "surname": "Nowak",
            "role": {
                "id": 5001,
                "from_date": "1993-09-22",
                "to_date": null,
                "statuses": [
                    {
                        "status_id": 1,
                        "name": "Aktywny",
                        "resolution_date": null
                    }
                ]
            },
            "emails": [
                {
                    "id": 201,
                    "email": "jan.nowak@test.pl",
                    "is_sending": 1
                }
            ],
            "nomination_date": "2005-09-23",
            "notary_notary_offices": [
                {
                    "id": 1,
                    "notary_office_id": 1,
                    "from_date": "2006-01-01",
                    "to_date": "2009-12-31"
                },
                {
                    "id": 104,
                    "notary_office_id": 4,
                    "from_date": "2010-01-01",
                    "to_date": null
                }
            ],
            "local_government_functions": [
                {
                    "id": 3001,
                    "from_date": "2021-03-27",
                    "to_date": "2024-03-30",
                    "function_name": "Członek",
                    "government_name": "RIN"
                },
                {
                    "id": 3002,
                    "from_date": "2021-03-27",
                    "to_date": "2024-03-30",
                    "function_name": "Przewodniczący",
                    "government_name": "Zespołu Wizytacyjnego"
                },
                {
                    "id": 3003,
                    "from_date": null,
                    "to_date": null,
                    "function_name": "Przewodniczący",
                    "government_name": "Sądu Dyscyplinarnego"
                }
            ],
            "photo": {
                "id": 1201,
                "photo_url": "[SON_URL]/user/zdjecie/pokaz/741a74e44f26f1da95a5adaffe525fdb220b9417",
                "filename": "istockphoto-123-612x612",
                "ext": "jpg",
                "mime_type": "image/jpeg"
            },
            "updated_at": "2024-01-01T00:00:00.000000Z"
        },
        {
            "id": 502,
            "name": "Jan",
            "second_name": "",
            "surname": "Nowak2",
            "role": {
                "id": 5002,
                "from_date": "2009-07-09",
                "to_date": null,
                "statuses": [
                    {
                        "status_id": 1,
                        "name": "Aktywny",
                        "resolution_date": null
                    }
                ]
            },
            "emails": [
                {
                    "id": 202,
                    "email": "jan.nowak2@test.pl",
                    "is_sending": 1
                }
            ],
            "nomination_date": "1993-09-22",
            "notary_notary_offices": [
                {
                    "id": 2,
                    "notary_office_id": 2,
                    "from_date": "1994-01-01",
                    "to_date": null
                }
            ],
            "local_government_functions": [
                {
                    "id": 3004,
                    "from_date": "2022-02-16",
                    "to_date": null,
                    "function_name": "Wizytator",
                    "government_name": "IN w Warszawie"
                }
            ],
            "photo": {
                "id": 1202,
                "photo_url": "[SON_URL]/user/zdjecie/pokaz/680827210515c3ba7b842445aa7f3cecd914b0a9",
                "filename": "istockphoto-456-612x612",
                "ext": "jpg",
                "mime_type": "image/jpeg"
            },
            "updated_at": "2024-01-01T00:00:00.000000Z"
        },
        {
            "id": 503,
            "name": "Jan",
            "second_name": "Adam",
            "surname": "Nowak3",
            "role": {
                "id": 5003,
                "from_date": "2015-03-21",
                "to_date": null,
                "statuses": [
                    {
                        "status_id": 2,
                        "name": "Nieaktywny",
                        "resolution_date": null
                    },
                    {
                        "status_id": 5,
                        "name": "odwołany z funkcji",
                        "resolution_date": null
                    },
                    {
                        "status_id": 8,
                        "name": "gdy notariusz rezygnuje z prowadzenia KN",
                        "resolution_date": null
                    }
                ]
            },
            "emails": [
                {
                    "id": 203,
                    "email": "jan.nowak3@test.pl",
                    "is_sending": 1
                }
            ],
            "nomination_date": "2019-02-20",
            "notary_notary_offices": [
                {
                    "id": 3,
                    "notary_office_id": 3,
                    "from_date": "2020-01-01",
                    "to_date": null
                }
            ],
            "local_government_functions": [],
            "photo": {
                "id": 1203,
                "photo_url": "[SON_URL]/user/zdjecie/pokaz/59d13e19db462eb6b5fad0fcb85b70bc9fb4d782",
                "filename": "istockphoto-789-612x612",
                "ext": "jpg",
                "mime_type": "image/jpeg"
            },
            "updated_at": "2024-01-01T00:00:00.000000Z"
        }
    ],
    "links": {
        "first": "https://api.notariusze.org.pl/notaries?page=1",
        "last": "https://api.notariusze.org.pl/notaries?page=226",
        "prev": null,
        "next": "https://api.notariusze.org.pl/notaries?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 226,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=225",
                "label": "225",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=226",
                "label": "226",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notaries?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://api.notariusze.org.pl/notaries",
        "per_page": 3,
        "to": 3,
        "total": 678
    }
}
 

Request      

GET notaries

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

per_page   integer  optional  

Example: 10

sort_by   string  optional  

Example: id

Must be one of:
  • id
  • id_desc
  • name
  • name_desc
  • updated_at
  • updated_at_desc
is_active   boolean  optional  

Example: false

updated_at_greater_than   string  optional  

Must be a valid date in the format Y-m-d. Example: 2024-12-09

Show notary

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/notaries/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.notariusze.org.pl/notaries/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "name": "Jan",
        "second_name": null,
        "surname": "Nowak",
        "role": {
            "id": 5001,
            "from_date": "1993-09-22",
            "to_date": null,
            "statuses": [
                {
                    "status_id": 1,
                    "name": "Aktywny",
                    "resolution_date": null
                }
            ]
        },
        "emails": [
            {
                "id": 201,
                "email": "jan.nowak@test.pl",
                "is_sending": 1
            }
        ],
        "nomination_date": "2005-09-23",
        "notary_notary_offices": [
            {
                "id": 1,
                "notary_office_id": 1,
                "from_date": "2006-01-01",
                "to_date": "2009-12-31"
            },
            {
                "id": 104,
                "notary_office_id": 4,
                "from_date": "2010-01-01",
                "to_date": null
            }
        ],
        "local_government_functions": [
            {
                "id": 3001,
                "from_date": "2021-03-27",
                "to_date": "2024-03-30",
                "function_name": "Członek",
                "government_name": "RIN"
            },
            {
                "id": 3002,
                "from_date": "2021-03-27",
                "to_date": "2024-03-30",
                "function_name": "Przewodniczący",
                "government_name": "Zespołu Wizytacyjnego"
            },
            {
                "id": 3003,
                "from_date": null,
                "to_date": null,
                "function_name": "Przewodniczący",
                "government_name": "Sądu Dyscyplinarnego"
            }
        ],
        "photo": {
            "id": 1201,
            "photo_url": "[SON_URL]/user/zdjecie/pokaz/741a74e44f26f1da95a5adaffe525fdb220b9417",
            "filename": "istockphoto-1327592449-612x612",
            "ext": "jpg",
            "mime_type": "image/jpeg"
        },
        "updated_at": "2024-01-01T00:00:00.000000Z"
    }
}
 

Request      

GET notaries/{notary_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

notary_id   integer   

The ID of the notary. Example: 1

NotaryOffice

Get all NotaryOffices

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/notary-offices" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"per_page\": 15,
    \"sort_by\": \"id\",
    \"is_active\": false,
    \"updated_at_greater_than\": \"2024-12-09\"
}"
const url = new URL(
    "https://api.notariusze.org.pl/notary-offices"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "per_page": 15,
    "sort_by": "id",
    "is_active": false,
    "updated_at_greater_than": "2024-12-09"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Example response (200):


{
    "data": [
        {
            "id": 1,
            "name": "Kancelaria Jan Nowak",
            "city": "Warszawa",
            "district": null,
            "street": "ul. Nowa",
            "zipcode": "01-100",
            "phones": [
                {
                    "id": 101,
                    "number": "221001011",
                    "type": "home",
                    "notary_ids": [
                        501
                    ]
                }
            ],
            "emails": [
                {
                    "id": 201,
                    "email": "jan.nowak@test.pl",
                    "is_sending": 1
                }
            ],
            "notaries": [
                {
                    "id": 501,
                    "name": "Jan",
                    "second_name": "",
                    "surname": "Nowak",
                    "from_date": "2023-12-01",
                    "to_date": null
                }
            ],
            "deputies": [
                {
                    "id": 1001,
                    "name": "Katarzyna",
                    "second_name": "Anna",
                    "surname": "Kowalska",
                    "from_date": "2024-01-01",
                    "to_date": null,
                    "contract_type": "1/2",
                    "contract_form": "Umowa o pracę"
                }
            ],
            "www": null,
            "updated_at": "2024-01-01T00:00:00.000000Z"
        },
        {
            "id": 2,
            "name": "Kancelaria Jan Nowak2",
            "city": "Warszawa",
            "district": null,
            "street": "ul. Nowa",
            "zipcode": "01-100",
            "phones": [
                {
                    "id": 102,
                    "number": "221001012",
                    "type": "home",
                    "notary_ids": []
                }
            ],
            "emails": [
                {
                    "id": 202,
                    "email": "jan.nowak2@test.pl",
                    "is_sending": 1
                }
            ],
            "notaries": [
                {
                    "id": 502,
                    "name": "Jan",
                    "second_name": "",
                    "surname": "Nowak2",
                    "from_date": "2024-01-01",
                    "to_date": null
                }
            ],
            "deputies": [],
            "www": null,
            "updated_at": "2024-01-01T00:00:00.000000Z"
        },
        {
            "id": 3,
            "name": "Kancelaria Jan Adam Nowak3",
            "city": "Warszawa",
            "district": null,
            "street": "ul. Nowa",
            "zipcode": "01-100",
            "phones": [
                {
                    "id": 103,
                    "number": "221001013",
                    "type": "home",
                    "notary_ids": []
                }
            ],
            "emails": [
                {
                    "id": 203,
                    "email": "jan.nowak3@test.pl",
                    "is_sending": 1
                }
            ],
            "notaries": [
                {
                    "id": 503,
                    "name": "Jan",
                    "second_name": "Adam",
                    "surname": "Nowak3",
                    "from_date": "2024-01-01",
                    "to_date": null
                }
            ],
            "deputies": [],
            "www": null,
            "updated_at": "2024-01-01T00:00:00.000000Z"
        }
    ],
    "links": {
        "first": "https://api.notariusze.org.pl/notary-offices?page=1",
        "last": "https://api.notariusze.org.pl/notary-offices?page=154",
        "prev": null,
        "next": "https://api.notariusze.org.pl/notary-offices?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 154,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=3",
                "label": "3",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=4",
                "label": "4",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=5",
                "label": "5",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=6",
                "label": "6",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=7",
                "label": "7",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=8",
                "label": "8",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=9",
                "label": "9",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=10",
                "label": "10",
                "active": false
            },
            {
                "url": null,
                "label": "...",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=153",
                "label": "153",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=154",
                "label": "154",
                "active": false
            },
            {
                "url": "https://api.notariusze.org.pl/notary-offices?page=2",
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://api.notariusze.org.pl/notary-offices",
        "per_page": 3,
        "to": 3,
        "total": 461
    }
}
 

Request      

GET notary-offices

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

per_page   integer  optional  

Example: 15

sort_by   string  optional  

Example: id

Must be one of:
  • id
  • id_desc
  • name
  • name_desc
  • updated_at
  • updated_at_desc
is_active   boolean  optional  

Example: false

updated_at_greater_than   string  optional  

Must be a valid date in the format Y-m-d. Example: 2024-12-09

Show notary office

requires authentication

Example request:
curl --request GET \
    --get "https://api.notariusze.org.pl/notary-offices/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://api.notariusze.org.pl/notary-offices/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (200):


{
    "data": {
        "id": 1,
        "name": "Kancelaria Jan Nowak",
        "city": "Warszawa",
        "district": null,
        "street": "ul. Nowa",
        "zipcode": "01-100",
        "phones": [
            {
                "id": 101,
                "number": "221001011",
                "type": "home",
                "notary_ids": [
                    501
                ]
            }
        ],
        "emails": [
            {
                "id": 201,
                "email": "jan.nowak@test.pl",
                "is_sending": 1
            }
        ],
        "notaries": [
            {
                "id": 501,
                "name": "Jan",
                "second_name": "",
                "surname": "Nowak",
                "from_date": "2023-12-01",
                "to_date": null
            }
        ],
        "deputies": [
            {
                "id": 1001,
                "name": "Katarzyna",
                "second_name": "Anna",
                "surname": "Kowalska",
                "from_date": "2024-01-01",
                "to_date": null,
                "contract_type": "1/2",
                "contract_form": "Umowa o pracę"
            }
        ],
        "www": null,
        "updated_at": "2024-01-01T00:00:00.000000Z"
    }
}
 

Request      

GET notary-offices/{notaryOffice_id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

notaryOffice_id   integer   

The ID of the notaryOffice. Example: 1