{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"c634b5b6-b15c-427f-b324-4887e6512aad","name":"TheAPI · REST API v1","description":"# TheAPI — REST API v1\n\nWelcome! **TheAPI** ([theapi.ro](https://theapi.ro/)) is a REST platform for developers that exposes Romanian business & reference data over HTTPS: company records (ANAF / Trade Register), the official BNR exchange rate, IP geolocation, IBAN validation, Romanian geography and standard nomenclatures (countries, currencies, timezones).\n\nThis collection is your interactive playground. Fork it or hit **Run in Postman**, set your credentials once, and every request just works.\n\n## Where to start\n\n1. **Create a free account** at [theapi.ro/register](https://theapi.ro/register).\n2. **Create a project** in your dashboard — each project gets its own API **email** and **password** (these are *project* credentials, not your login).\n3. Select the **`TheAPI · Production`** environment (top-right) and paste those two values into `email` and `password`.\n4. Open **Authentication → Login** and hit **Send**. The response contains a JWT `token` — this collection **saves it automatically** into the environment.\n5. Call any other request. They all inherit the token, so you never copy it by hand.\n\n## The basics\n\n- **Base URL:** `https://theapi.ro/api/vs1` (stored in the `{{baseUrl}}` variable)\n- **Extension is required:** every endpoint must end in `.json` or `.xml`. A request without one returns `406 Not Acceptable`.\n- **Methods:** `GET` to read, `POST` to create, `PUT` to update, `DELETE` to remove.\n- **Response envelope** — every response looks like:\n\n```json\n{\n    \"status\": 200,\n    \"data\": { ... },\n    \"total\": 42\n}\n```\n\n`total` appears on paginated lists. Errors carry `message` and/or `errors`.\n\n## Authentication (JWT)\n\nAll communication happens over HTTPS and is authenticated with a [JSON Web Token](https://jwt.io/). You exchange your project `email` + `password` at `admins/login` for a token that is valid **7 days**, then send it on every request as a header:\n\n```\nAuthorization: Bearer <your-token>\n```\n\nIn this collection that header is configured **once at the collection level** (`Bearer {{token}}`) and inherited by every request. `Hello` and `Login` are the only public endpoints and don't need it.\n\n> **Tip:** reuse the token until it expires — don't log in on every call. When a call returns `401`, just run **Login** again to refresh it.\n\n## Errors\n\n| HTTP | Meaning |\n|------|---------|\n| `400` | Validation error — see `message` / `errors` (per field) |\n| `401` | Missing or invalid token |\n| `403` | Not allowed for your account |\n| `406` | Missing `.json` / `.xml` extension |\n| `5xx` | Internal error |\n\n## Pagination & sorting\n\nList endpoints accept `limit` (default `20`, max `100` — GeoEntities up to `1000`), `page`, `sort`, `direction`. Alternatively `format=list` returns a flat key/value map you can tune with `keyField` / `valueField`.\n\n## Localization\n\nAdd a `lang` parameter (GET or POST) to receive messages in a specific language.\n\n---\n\nFull markdown reference: [theapi.ro/api.md](https://theapi.ro/api.md). Questions? **contact@theapi.ro**.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"54562521","team":15685642,"collectionId":"c634b5b6-b15c-427f-b324-4887e6512aad","publishedId":"2sBY4HUjLg","public":true,"publicUrl":"https://documenter-api.postman.tech/view/54562521/2sBY4HUjLg","privateUrl":"https://go.postman.co/documentation/54562521-c634b5b6-b15c-427f-b324-4887e6512aad","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"Companies from ANAF and the Trade Register, official BNR rates, Romanian geography, IBAN checks and IP geolocation - one account, JSON or XML, secured with JWT."},{"name":"title","value":"The API - Rest API vs. 1.0.0"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.14","publishDate":"2026-07-04T13:54:02.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"The API - Rest API vs. 1.0.0","description":"Companies from ANAF and the Trade Register, official BNR rates, Romanian geography, IBAN checks and IP geolocation - one account, JSON or XML, secured with JWT."},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[{"name":"TheAPI · Production","id":"1748027d-e104-4a48-9b16-96677b66491d","owner":"54562521","values":[{"key":"baseUrl","value":"https://theapi.ro/api/vs1","enabled":true,"type":"default"},{"key":"email","value":"","enabled":true,"type":"secret"},{"key":"password","value":"","enabled":true,"type":"secret"},{"key":"token","value":"","enabled":true,"type":"secret"},{"key":"token_expire","value":"","enabled":true,"type":"default"},{"key":"cui","value":"36145517","enabled":true,"type":"default"},{"key":"ip","value":"8.8.8.8","enabled":true,"type":"default"},{"key":"iban","value":"RO49AAAA1B31007593840000","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/6ac4447ff81e87484b83f89d5b0e6bfc1e85f41e8988f50ebf4bd2a03877eba6","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"TheAPI · Production","value":"54562521-1748027d-e104-4a48-9b16-96677b66491d"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBY4HUjLg"}