Integration
Agencies send and read their listings from their own software. The key is created in your account and sent in the header of each request.
Key
The agency owner creates the key in the account, under Integration. The key starts with nsl_ and is shown only once. Permission is read-only or read and write.
Authorization: Bearer nsl_…
Listings
GET /api/v1/oglasi returns your organisation's listings. POST /api/v1/oglasi adds or updates a listing by the field id (your ID). Validation matches the form: title, description, type, location. Photos are https URLs in the field slike. PATCH /api/v1/oglasi/ŠIFRA sa {"status":"pauziran"} or zavrsen takes a listing down.
Reference data and description
GET /api/v1/sifarnici returns countries, types and field names. The machine-readable description is at /api/v1/openapi. Maximum 120 requests per minute per key. Error responses include kod and a message in Serbian.
Enquiry notification
If you enter your server address, a JSON is sent to it when someone makes an enquiry. The header X-Naselje-Potpis is an HMAC-SHA256 of the full body, keyed with the secret from your account.
You can still send a file (XML, CSV, Excel) without the API, via listing import.