> ## Documentation Index
> Fetch the complete documentation index at: https://dev.puppetvendors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Refresh Vendor Token

> Exchange a valid vendor token for a new one with extended expiry

<Note>
  **V2 Preview** — This endpoint is part of the V2 API preview. Breaking changes may occur.
</Note>

## Overview

Exchange a valid (non-expired) vendor token for a new one with extended expiry. Call this proactively before the current token expires to avoid forcing the vendor to re-enter credentials.

## Headers

<ParamField header="x-access-token" type="string" required>
  A valid (non-expired) vendor JWT.
</ParamField>

## Response

```json 200 theme={null}
{
  "success": true,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expiresIn": 86400,
    "shopDomain": "my-store.myshopify.com"
  }
}
```

### Error Responses

```json 401 theme={null}
{ "success": false, "error": { "message": "Invalid or expired token" } }
```

## Example

```bash theme={null}
curl -X POST "https://staging-api.puppetvendors.com/portal/auth/refresh-token" \
  -H "x-access-token: YOUR_VENDOR_JWT"
```
