Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST 'https://api.weir.ai/auth/refresh/token' \ -H 'Content-Type: application/json' \ -d '{ "refreshToken": "admin_refresh_123456789" }'
{ "data": { "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "refreshToken": "new_admin_refresh_987654321", "expiresIn": 3600 }, "message": "Token refreshed successfully", "status": "success" }
Refresh admin access token
const refreshAdminToken = async (refreshToken) => { const response = await fetch('https://api.weir.ai/auth/refresh/token', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ refreshToken }) }); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); return await response.json(); };
Was this page helpful?