Auth
Get a token
POST/api/v1/auth/accessToken
No token
Request body
usernamestringrequired- Integration username (s2s-…), received when the request is approved.
passwordstringrequired- Integration password, shown only once on approval.
Response fields
accessTokenstring- JWT access token; sent in the Authorization: Bearer header.
refreshTokenstring- Refresh token; exchanged for a new access token.
Responses
- 200
- Success.
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-12345678-1",
"password": "parola-din-seif"
}'{
"accessToken": "eyJhbGciOiJIUzI1NiIs…",
"refreshToken": "eyJhbGciOiJIUzI1NiIs…"
}