GET
/v1/dozvole
Permission catalog
Returns: Permission catalog. Allowed roles: per role/scope; scope: uloge:citanje.
Authentication and scopes
Session (HttpOnly cookie) OAuth2: uloge:citanje API key (Authorization: Bearer upl_live_…)
Parameters Name In Required Type Description limitquery no integer kursorquery no string Opaque cursor from sledeci_kursor
Responses 200 Success{
"objekat": "lista",
"podaci": [
{
"id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
"objekat": "dozvola",
"kljuc": "profakture:otkazivanje",
"minimalni_plan": "osnovni",
"oauth_opsezi": [
"primer"
],
"kreirano": "2026-11-01T08:00:00Z"
}
],
"ima_jos": true,
"sledeci_kursor": "eyJpZCI6IjAxOTJlNGExIn0"
}401 Missing or invalid token/key
Example (curl)
Copy
curl -sS -X GET "https://api.uplaceno.rs/api/v1/dozvole" \
-H "Authorization: Bearer upl_live_VAS_KLJUC" \
-H "Content-Type: application/json"
GET
/v1/organizacije/{organizacija_id}/uloge
List roles
MVP/Basic: built-in roles only (owner, admin, accountant, viewer). POST/PATCH/DELETE return 403 funkcija_nije_u_planu and are outside the MVP contract.
Authentication and scopes
Session (HttpOnly cookie) OAuth2: uloge:citanje API key (Authorization: Bearer upl_live_…)
Parameters Name In Required Type Description organizacija_idpath yes string (uuid) limitquery no integer kursorquery no string Opaque cursor from sledeci_kursor
Responses 200 Success{
"objekat": "lista",
"podaci": [
{
"id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
"objekat": "uloga",
"kljuc": "knjigovodja",
"naziv": "Knjigovođa",
"ugradjena": true,
"dozvole": [
"profakture:citanje",
"uplate:citanje"
],
"kreirano": "2026-11-01T08:00:00Z"
}
],
"ima_jos": true,
"sledeci_kursor": "eyJpZCI6IjAxOTJlNGExIn0"
}401 Missing or invalid token/key403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization404 Not found (or not in this organization/environment)
Example (curl)
Copy
curl -sS -X GET "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/uloge" \
-H "Authorization: Bearer upl_live_VAS_KLJUC" \
-H "Content-Type: application/json"
GET
/v1/organizacije/{organizacija_id}/uloge/{id}
Get role
Returns: Get role. Allowed roles: per role/scope; scope: uloge:citanje.
Authentication and scopes
Session (HttpOnly cookie) OAuth2: uloge:citanje API key (Authorization: Bearer upl_live_…)
Parameters Name In Required Type Description organizacija_idpath yes string (uuid) idpath yes string (uuid) UUID v7
Responses 200 Success{
"id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
"objekat": "uloga",
"kljuc": "knjigovodja",
"naziv": "Knjigovođa",
"ugradjena": true,
"dozvole": [
"profakture:citanje",
"uplate:citanje"
],
"kreirano": "2026-11-01T08:00:00Z"
}401 Missing or invalid token/key403 Nedovoljna prava: zabranjeno, nedovoljan_opseg, funkcija_nije_u_planu, organization404 Not found (or not in this organization/environment)
Example (curl)
Copy
curl -sS -X GET "https://api.uplaceno.rs/api/v1/organizacije/{organizacija_id}/uloge/{id}" \
-H "Authorization: Bearer upl_live_VAS_KLJUC" \
-H "Content-Type: application/json"