SmartMemory
POST
/auth/refresh

Refresh access token using refresh token.

Supports two token sources:

  • Cookie: sm_refresh_token (browser flows)
  • Request body: refresh_token field (programmatic SDK clients)

Returns new access and refresh tokens.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/auth/refresh" \  -H "Content-Type: application/json" \  -d '{}'
{
  "access_token": "string",
  "refresh_token": "string",
  "token_type": "bearer",
  "expires_in": 3600
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}