RNDCAPI documentation Request access

Flows

Sending a document, end to end

The complete path, from “I don't have access to RNDC yet” to “the document is in the building file”. Each step says what you do, what you get back and what can go wrong. The technical details are under “For developers”.

  1. Get accesssteps 1–4, only once
  2. Sign instep 5, every session
  3. Find the buildingsteps 6–9
  4. Send the documentsteps 10–16

Before you start

A contact personSomeone in your institution who has an RNDC account and is responsible for the integration. They submit the request and collect the password.
An IT systemThe application that will send the documents (for example the town hall's planning system) and someone who can program it.
The documents and their dataThe files (usually PDF) and what they say: who issued them, the number, the date and the building they refer to.

Part 1 · Get access

You do this only once. It takes as long as the RNDC administrator needs to approve the request.

  1. Sign in to your RNDC account

    The request is made from the contact person's own account. If you don't have one, create it with your email or sign in with ROeID. The request stays tied to this account: only you can see it and only you can collect the password.

    In the account menu choose System-to-system integration, then New request, or open Request access directly.

    Note: use the account of someone who will stay on the project. The integration password can only be collected from the account that made the request.

  2. Fill in the request

    The form has three parts: who you are, which system you connect and what access you need.

    FieldWhat to write
    Institution namerequiredThe official name, for example “Primăria Municipiului Exemplu”.
    Tax ID (CIF / CUI)requiredThe institution's tax identification code (CIF), or the CUI if it is a company.
    System namerequiredThe name of the connecting application, for example “Planning GIS”.
    System descriptionrequiredBriefly: what it does, who operates it, where it runs.
    Purpose of the integrationrequiredWhich documents you will send and why, for example “the planning certificates issued by the town hall”.
    AccessrequiredRead + write, if you want to upload documents, add buildings or create interventions. Read only is enough only for searching and consulting.
    Contact person, emailrequiredThe technical person the RNDC administrator can contact.
    PhoneOptional.

    Note: to upload documents choose Read + write. With “Read only” you can search for buildings, but every upload is refused with “forbidden” (403).

  3. Wait for approval

    The RNDC administrator reads the request and approves or rejects it. You can see its status at any time on the request page, in your account:

    Submitted→Under review→ApprovedorRejected

    If it is rejected, the reason appears on the same page. Fix what you were asked to and submit a new request.

  4. Collect the username and password

    After approval, the request page shows an Integration credentials box:

    On the request pageUsername: s2s-000000-4 · Password: •••••••• [Copy] → [I have saved the password]
    1. copy the username and password;
    2. store them somewhere safe, for example a password manager or the protected configuration of your system;
    3. click I have saved the password.

    Note: the password is shown only once. After “I have saved the password” it can no longer be displayed. If you lose it or think someone else has seen it, use Regenerate the password: you get a new one and the old one stops working.

Part 2 · Sign in

At every working session of your system. Usually the developer sets it up once and the system repeats it on its own.

  1. Get the access key

    Your system sends the username and password and receives two keys:

    • the access key, valid for 15 min, which it adds to every request;
    • the refresh key, valid for 3 days, which gets a new access key without the password.

    When a request gets “unauthenticated” (401), the access key has expired: the system asks for a new one with the refresh key. After 3 days it signs in again with the password.

    Note: never put the keys or the password in the request address (URL) and never write them to logs.

    For developers POST /auth/accessToken
    bash
    curl -X POST "http://registrulcladirilor.gov.ro/rndc/api/v1/auth/accessToken" -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
      -d '{"username": "s2s-000000-4", "password": "…"}'
    # → {"accessToken": "eyJ…", "refreshToken": "eyJ…"}
    
    # the access key, straight into a variable (the examples use jq)
    TOKEN=$(curl -s -X POST "http://registrulcladirilor.gov.ro/rndc/api/v1/auth/accessToken" -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
      -d '{"username": "s2s-000000-4", "password": "…"}' | jq -r .accessToken)
    # on every request: -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    
    curl -X POST "http://registrulcladirilor.gov.ro/rndc/api/v1/auth/refreshToken" -H "X-Api-Key: $API_KEY" -H "Content-Type: application/json" \
      -d '{"refreshToken": "eyJ…"}'

    The API key (X-Api-Key) and the full authentication instructions are on the system-to-system integration page of your RNDC account.

Part 3 · Find the building

Every building in the registry has a unique code, the NIS, a kind of “ID number of the building” (for example ABCDEF-01). Every document is linked to a building through its NIS.

  1. Search for the building

    The goal is a single NIS: the building the document refers to. Search by what you know about it, in the order below. The first methods usually return one building, the last ones can return several.

    You knowHow to searchHow many buildings you get
    1. The cadastral number of the constructionFor example 53288-C1, together with the SIRUTA code of the UAT (the municipality, town or commune): cadastral numbers are assigned per UAT, so the same number can exist in another UAT.One. The most reliable method.
    2. A point inside the buildingThe coordinates of a point inside the building, for example from GPS (longitude, latitude), with no radius.One: the building that contains the point. With a radius in metres you also get the neighbours.
    3. The cadastral number of the land plotFor example 53288, with the SIRUTA code of the UAT.All constructions on the plot (C1, C2…).
    4. The addressStreet, number and the SIRUTA code of the UAT. Diacritics, capitals and “Str.”, “Bd.” don't matter. Finds only buildings whose address is recorded in the registry.One or more: a block with several sections often shares the same address.
    5. An areaAn outline drawn on the map.All buildings inside it.

    The SIRUTA code (UAT, county, locality). Send it with every search. For the cadastral number the UAT code is required, because a cadastral number is unique only within a UAT.

    What you get: a list of buildings, each with its NIS, address and cadastral numbers.

    Note: if you get several buildings, don't take the first one. Narrow the search with a method higher up in the table (for example the cadastral number of the construction, from the results) or let a person choose from the list, by address and cadastral numbers. A document placed on the wrong building is hard to correct.

    Note: an empty list is not an error: the building is not in the registry yet. Go to step 7.

    For developers GET /referential/cladiri/
    bash
    # cadastral number of the construction
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/?nr_cadastral_cladire=53288-C1&siruta_uat=179132" \
      -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    # point (WGS84), no radius
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/la-punct/?x=26.1025&y=44.4268&srid=4326" \
      -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    # address
    curl -G "http://registrulcladirilor.gov.ro/rndc/api/v1/referential/cladiri/" --data-urlencode "strada=Mihai Viteazu" \
      --data-urlencode "numar=12" --data-urlencode "siruta_uat=54975" -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    
    # → {"count": 1, "results": [{"nis": "ABCDEF-01", "adresa_principala": "Strada Mihai Viteazu 12", …}]}
    # → {"count": 0, "results": [], "mesaj": "Nu s-a putut identifica niciun NIS."}

    All criteria, with examples, in Identifying the NIS.

  2. If it doesn't exist, declare its geometry only if missing

    Note: declaring the geometry does not mean that ANCPI has validated it. The building is recorded in the registry as “not validated” so that documents can be linked to it. ANCPI later validates or corrects the geometry, and the building’s status and colour on the map change accordingly.

    Send the outline of the building, that is its shape seen from above, and its location:

    • the outline, in Stereo70 coordinates (metres). GPS coordinates in degrees are refused;
    • the SIRUTA codes of the county and of the UAT, required; of the locality, optional;
    • optional: the address, the year of construction, the cadastral numbers.

    What you get: the NIS of the new building, immediately. You can use it right away.

    Note: if the outline overlaps an existing building, you get an error containing that building's NIS: it was already in the registry, use that one. The outline must also fall inside the declared UAT.

    For developers POST /referential/insert/cladire/
    body
    {"geometrie": "POLYGON((588000 325000, 588020 325000, 588020 325015, 588000 325015, 588000 325000))",
     "existent": true, "siruta_judet": 403, "siruta_uat": 179132,
     "nr_cadastral_imobil": "53288",
     "adrese": [{"strada": "Mihai Viteazu", "nr_administrativ": "12"}]}

    Response 201 with nis. Errors: GEOM_009 (degrees instead of Stereo70), GEOM_008 (outside the UAT), GEOM_007 (overlap, with the existing NIS).

  3. If the document belongs to an intervention, find it only for the documents of a works project

    An intervention is a works project (a renovation, a strengthening) on one or more buildings. Its documents, for example the building permit, the energy certificates before and after the works or the acceptance report, must be uploaded on the intervention, with its code.

    Note: a document of the works uploaded only on a building does not appear in the intervention.

    The document isWhat you send at step 12Where it appears
    Of the works, for several buildings: the whole project (for example the building permit, the acceptance report) or only some buildingsthe intervention code; in the sheet, the list of buildings (cladiri, step 11), each with its NISIn the intervention, as a single document, and in the file of every building in the list.
    Of the works, for one specific buildingthe intervention code and the building's NIS, at registration and in the sheetIn the intervention and in the file of that building. For example the final energy certificate of block B.
    Of the building, unrelated to any worksonly the building's NISIn the building file.

    Find the intervention by its code, if you have it in your system, and see which buildings it covers. If it doesn't exist yet, declare it at step 9.

    What you get: the intervention code, which you use at step 12, together with the NIS when the document is for a specific building.

    For developers GET /interventii/cod/<cod>/
    bash
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/interventii/cod/$COD_INTERVENTIE/" -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    # → 200 {"cod_investitie": "…", "nis": "ABCDEF-01", "nisuri": ["ABCDEF-01", "ABCDEF-02"], …}
    # unknown code → 404 INTERV_003
  4. If the intervention doesn't exist, declare it only if missing

    Send the list of buildings the works cover (the NIS values from steps 6–7; the first one is the main building), the name and, optionally, the funding sources. The account needs Read + write access.

    What you get: the code of the new intervention, which you use at step 12. Keep it in your system, so the next documents go to the same intervention.

    Note: every building in the list must exist in the registry; an unknown NIS is refused (400) and nothing is created. The list of buildings can be changed later.

    For developers POST /interventii/insert/
    body
    {"nisuri": ["ABCDEF-01", "ABCDEF-02"], "denumire": "Reabilitare termică",
     "surse_finantare": [{"sursa_investitie": "PNRR", "valoare_initiala": "250000.00", "moneda_tip_id": 1}]}
    
    # → 201 {"cod_investitie": "…", "nis": "ABCDEF-01", "nisuri": ["ABCDEF-01", "ABCDEF-02"], …}
    # list of buildings, later: POST /interventii/set-nisuri/

Part 4 · Send the document

Files don't go through the API. You announce what you send, get upload addresses, upload the files straight to the archive, then confirm.

  1. Find out which documents you can send and what each one needs

    Before sending the first document of a given type, find out two things. You usually do this once per type, when programming the integration, and again when a new schema version appears.

    1. The document types you can upload: from the nomenclature. For each type you get its code (for example certificat_urbanism) and its rules:
      RuleWhat it means for you
      nis_requiredthe document must be linked to a building (NIS) or to an intervention (step 12)
      schema_version_accepted_valuesthe accepted schema versions; you fill in the sheet against one of them
      json_requiredthe type needs a sheet (.json), step 11
      files_required / files_forbiddenthe type needs files (PDF etc.) or does not accept files
    2. The schema of each type: which fields the sheet has, which are required, the format of each (text, number, date) and the allowed values. The schema can be read without an account. Each field has a label and an explanation in Romanian, so you can map it to the data in your system.

    What you get: the type code and the list of fields you must send for it. You build the sheet with them at step 11.

    Note: a schema can get new versions. The sheet is validated against the version sent at step 12 (schema_version), so check the list of accepted versions periodically.

    For developers GET /nomenclator/tip_document/ GET /documente/schema/<tip>/
    bash
    # the types and their rules
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/nomenclator/tip_document/" -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    # → [{"tip_document": "certificat_urbanism", "nis_required": true,
    #     "schema_version_accepted_values": ["1.0"], "json_required": true,
    #     "files_required": true, "files_forbidden": false}, …]
    
    # the schema of a type (default version or a specific one), no token
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/documente/schema/certificat_urbanism/"
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/documente/schema/certificat_urbanism/1.0/"
    # → {"tipDocument": "…", "versiune": "1.0", "jsonSchema": {…}, "jsonSchemaExt": {…}}

    jsonSchema is a JSON Schema (draft 2020-12): required, types, enum, formats; you can use it directly to validate the sheet in your system. jsonSchemaExt adds, for each field, the label, explanation and order, plus the rules JSON Schema cannot express (for example “required if…”, sums). An unknown version returns 404, with the available versions in the response.

  2. Prepare the document sheet

    RNDC does not read the PDF to find out what it contains. That is why, next to the file, you send a sheet: a .json file with two parts, put together in the same object:

    • the envelope: tells RNDC what kind of document it is. The same fields for every type;
    • the document data: the fields of the type's schema, found at step 10.

    The envelope:

    FieldWhat to write
    tipDocumentrequiredThe type code, the same as in steps 10 and 12, for example certificat_urbanism. It selects the schema the sheet is checked against.
    NISThe building's NIS, the same as nis in the document data.
    versiuneSchemaThe schema version, the same as schema_version in step 12, for example 1.0.
    cladiriseveral buildingsOnly for a document covering several buildings: their list, each {"nis": …}, plus the fields that differ for that building. Common fields stay outside the list, once. With cladiri you no longer send a separate nis. Example below.

    The document data, fields present for every type:

    FieldWhat to write
    nisrequiredThe document's building, from steps 6–7; for a document of an intervention, the intervention building it is for. A document covering several buildings has no nis here: the NISes go in cladiri, in the envelope.
    tipDocumentVersiuneSchemarequiredThe schema version you filled the sheet against, for example 1.0.
    docEmitentrequiredWho issued the document.
    docEmitentNumarrequiredThe document number, for example 123/2026.
    docEmitentDataEmitererequiredThe issue date, as YYYY-MM-DD.

    Note: without tipDocument in the envelope, the sheet is rejected (“tipDocument: Câmp obligatoriu absent”). Likewise, a sheet that doesn't match the schema is rejected after upload, with the exact reason (step 15). The envelope fields are removed before the schema check, so you won't find them in the type's schema.

    For developers GET /documente/schema/<tip>/
    metadate.json
    {"tipDocument": "certificat_urbanism", "NIS": "ABCDEF-01", "versiuneSchema": "1.0",
    
     "nis": "ABCDEF-01", "tipDocumentVersiuneSchema": "1.0",
     "docEmitent": "Primăria Municipiului Exemplu",
     "docEmitentNumar": "123/2026", "docEmitentDataEmitere": "2026-05-14"}

    A document for several buildings: the common fields once, and in cladiri each building, with its NIS and what differs for it. Each building is checked against the same schema; if one is wrong, the whole document is rejected.

    metadate.json
    {"tipDocument": "doc_autorizatie_construire", "versiuneSchema": "1.0",
     "cladiri": [
       {"nis": "ABCDEF-01"},
       {"nis": "ABCDEF-02", "unitati_locative": 80}
     ],
    
     "tipDocumentVersiuneSchema": "1.0",
     "docEmitent": "Example City Hall",
     "docEmitentNumar": "123/2026", "docEmitentDataEmitere": "2026-05-14", "unitati_locative": 32}
  3. Announce the upload

    You state what you are about to send:

    • the document type (step 10);
    • where it goes (steps 8–9): for a document of a works project, the intervention code, plus the building's NIS if it is for a specific building; otherwise only the building's NIS;
    • the files: exactly one .json sheet and the documents themselves, each with its name and size in bytes. Optionally, the fingerprint of each file (SHA-256), so RNDC can check it arrived intact;
    • a unique key of your own for this upload, for example cu-123-2026. If you accidentally send the same request twice, no duplicate upload is created.

    What you get: a tracking number (keep it: you use it to check the status and to correct if needed) and an upload address for each file, valid for 1 hour.

    Note: the NIS and the intervention must exist, and when you give both, the building must be part of the intervention. Otherwise the request is refused right away (400). For a document covering several buildings, the NIS given here must be one of cladiri; for an intervention document you can leave it empty. Files larger than 150 MB are refused here as well.

    For developers POST /documente/upload
    bash
    # size (bytes) and fingerprint of each file
    MARIME_JSON=$(stat -c%s metadate.json)
    MARIME_PDF=$(stat -c%s certificat.pdf)
    HASH_PDF=$(sha256sum certificat.pdf | cut -d' ' -f1)
    
    # the request; keep the response for step 13
    RASPUNS=$(curl -s -X POST "http://registrulcladirilor.gov.ro/rndc/api/v1/documente/upload" \
      -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d @- <<EOF
    {"tip_document": "certificat_urbanism",
     "cod_investitie": "$COD_INTERVENTIE",
     "nis": "ABCDEF-02",
     "schema_version": "1.0",
     "idempotency_key": "cu-123-2026",
     "fisiere": [{"nume": "metadate.json",  "marime_bytes": $MARIME_JSON},
                 {"nume": "certificat.pdf", "marime_bytes": $MARIME_PDF, "hash_sha256": "$HASH_PDF"}]}
    EOF
    )
    # the tracking number
    TX=$(echo "$RASPUNS" | jq -r .transactionId)

    cod_investitie for a document of a works project; nis for the specific building (alone, without a code, for a document of the building). Response 201 with transactionId and, for each file, nume and uploadUrl. $TX and $RASPUNS are used in steps 13–15.

  4. Upload the files

    Send each file to its address. Files go straight to the archive, not through the API. At this step you do not add the access key: the address already contains the permission, valid only for that file.

    Files larger than 64 MB are uploaded in parts: see Large files.

    Note: if the validity period (1 hour) passes before everything is uploaded, the addresses expire and the upload closes as “Expired”. Start again from step 12.

    For developers PUT <uploadUrl>
    bash
    # the upload address of each file, picked by name
    UPLOAD_URL_JSON=$(echo "$RASPUNS" | jq -r '.fisiere[] | select(.nume == "metadate.json") | .uploadUrl')
    UPLOAD_URL_PDF=$(echo "$RASPUNS" | jq -r '.fisiere[] | select(.nume == "certificat.pdf") | .uploadUrl')
    
    # the upload, without the access key
    curl -X PUT --data-binary @metadate.json  "$UPLOAD_URL_JSON"
    curl -X PUT --data-binary @certificat.pdf "$UPLOAD_URL_PDF"
  5. Confirm you are done

    A single call, with the tracking number: “everything is uploaded”. It is safe to repeat. From this moment the document is checked automatically.

    For developers POST /documente/upload/<id>/done
    bash
    curl -X POST "http://registrulcladirilor.gov.ro/rndc/api/v1/documente/upload/$TX/done" -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
  6. Follow the checks

    Ask for the status every few seconds (5–10 seconds is enough). A typical document is ready within seconds or a minute; a file of tens of MB can take longer because of the antivirus scan.

    Registered
    You announced the upload but haven't confirmed it yet.
    Uploaded
    The files arrived; waiting in line for the checks.
    Antivirus scan
    The sheet and then the documents are scanned.
    Sheet check
    The sheet is compared with the document type's schema.
    Validated · Archived
    All checks passed; the document is moved to the permanent archive.
    In the file ✓
    The document is in the building file (one of an intervention, in the files of the buildings it belongs to and in the intervention). Done: nothing else to check.
    On the structure
    Where relevant, the sheet data was also written on the building (for example the energy class).

    If something is wrong, the upload stops for good:

    Rejected: virus
    A file was flagged by the antivirus.
    Rejected: invalid sheet
    The sheet doesn't match the schema. The exact reason (which field, what is missing) is in the response.
    Expired
    The files were not uploaded and confirmed in time.
    Failed
    Processing error in RNDC; the reason is in the response.

    Note: after a rejection, fix the problem and start again from step 12, with a new unique key.

    For developers GET /documente/upload/<id>/status
    bash
    curl "http://registrulcladirilor.gov.ro/rndc/api/v1/documente/upload/$TX/status" -H "X-Api-Key: $API_KEY" -H "Authorization: Bearer $TOKEN"
    # → {"status": "in_dosar", "errorMessage": null}

    The codes of all statuses are in Upload statuses.

  7. If you sent something wrong

    Nothing is deleted from the registry. Upload the correct document, from step 11, and write in the sheet's envelope the tracking number of the wrong upload. The old document is withdrawn automatically and stays only in the history.

    Note: without this reference, the second upload does not replace the first: the document appears twice in the file.

    For developers inlocuiesteTransactionId
    metadate.json
    {"tipDocument": "certificat_urbanism", "NIS": "ABCDEF-01", "versiuneSchema": "1.0",
     "inlocuiesteTransactionId": "<tracking number of the wrong upload>",
     "nis": "ABCDEF-01", "tipDocumentVersiuneSchema": "1.0", …}

When something goes wrong

You getWhat it meansWhat to do
400 Bad requestA field is missing or wrong (for example a NIS that doesn't exist).The faulty field is named in the response; fix it.
401 UnauthenticatedThe access key is missing or has expired.Get a new key (step 5).
403 ForbiddenThe account has no write access or the document type is reserved for other institutions.See step 2; for a reserved type, write to the RNDC administrator.
404 Not foundThe tracking number, the building or the intervention doesn't exist.Check the code you used.
503 UnavailableAn internal service is not responding right now.Try again in a few seconds.

The full list, with error codes, in Errors.

Checklist

  • The request was approved with Read + write access.
  • The username and password are stored somewhere safe, and you clicked “I have saved the password” on the request page.
  • The system renews the access key on its own when it gets 401.
  • You have the building's NIS (or the intervention code) before uploading.
  • The sheet has the envelope (at least tipDocument) and the data matches the document type's schema.
  • Every upload has a unique key of your own, and the tracking number is kept.
  • The system follows the status until “In the file” and handles rejections.