Skip to main content
POST
/
api
/
auth
/
admin
/
refresh
Refresh admin dashboard access token
curl --request POST \
  --url https://api.example.com/api/auth/admin/refresh \
  --header 'X-CSRF-Token: <x-csrf-token>'
{
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "profile": {
      "name": "<string>",
      "avatar_url": "<string>"
    },
    "metadata": {},
    "emailVerified": true,
    "providers": [
      "<string>"
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "accessToken": "<string>",
  "csrfToken": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.insforge.dev/llms.txt

Use this file to discover all available pages before exploring further.

Headers

X-CSRF-Token
string
required

CSRF token returned from admin login or admin refresh

Response

Admin token refreshed successfully

user
object
accessToken
string
csrfToken
string

CSRF token for the next admin refresh request