Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/auth/refresh-tokenAuthentication

Refresh Bearer Token

Exchanges a valid refresh token for a fresh Supabase Bearer JWT and synchronizes tenant roles, permissions, and outlet scope (`Cache-Control: no-store`).

Authentication: Public endpoint — no Bearer token required.

Request

Provide the following fields in the request payload.

Body application/json
refreshTokenstringrequired

Supabase refresh token obtained from login or prior refresh.

Responses

Select a status code to inspect schema.

Token refreshed successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/auth/refresh-token
curl -X POST "https://api.invoger.com/api/auth/refresh-token" \
  -H "Content-Type: application/json" \
  -d '{ "refreshToken": "v1.MRmO7x..." }'
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Success",
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIs...",
    "refreshToken": "v1.NewRefreshToken...",
    "expiresAt": 1795668510,
    "tokenType": "bearer",
    "user": {
      "email": "owner@company.com",
      "role": "System Owner",
      "permissions": [
        "*"
      ]
    }
  }
}