Auth

3 endpoints available

POST/v1/auth/login
v1 · stable

Authenticate with email + password, returns JWT pair

Example request
curl -X POST \
  https://api.bidbosna.ba/v1/auth/login \
  -H "Authorization: Bearer <token>"
Example response
{
  "ok": true,
  "data": { ... },
  "meta": { "request_id": "req_8h2k" }
}
POST/v1/auth/register
v1 · stable

Create a new bidder or seller account

Example request
curl -X POST \
  https://api.bidbosna.ba/v1/auth/register \
  -H "Authorization: Bearer <token>"
Example response
{
  "ok": true,
  "data": { ... },
  "meta": { "request_id": "req_8h2k" }
}
POST/v1/auth/refresh
v1 · stable

Exchange refresh token for new access token

Example request
curl -X POST \
  https://api.bidbosna.ba/v1/auth/refresh \
  -H "Authorization: Bearer <token>"
Example response
{
  "ok": true,
  "data": { ... },
  "meta": { "request_id": "req_8h2k" }
}