Skip to main content
POST
/
portal
/
auth
/
refresh-token
Refresh Vendor Token
curl --request POST \
  --url https://staging-api.puppetvendors.com/portal/auth/refresh-token \
  --header 'x-access-token: <api-key>'

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.

V2 Preview — This endpoint is part of the V2 API preview. Breaking changes may occur.

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

x-access-token
string
required
A valid (non-expired) vendor JWT.

Response

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

Error Responses

401
{ "success": false, "error": { "message": "Invalid or expired token" } }

Example

curl -X POST "https://staging-api.puppetvendors.com/portal/auth/refresh-token" \
  -H "x-access-token: YOUR_VENDOR_JWT"