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 PATCH 'https://api.weir.ai/org/refresh/client?clientId=cli_123456789' \ -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \ -H 'x-source: console'
{ "data": { "clientId": "cli_123456789", "credentials": { "clientId": "NewClientId123", "secretKey": "NewSecretKey456" }, "refreshedAt": "2024-01-22T15:30:00Z" }, "message": "Client credentials refreshed successfully", "status": "success" }
Generate new credentials for an API client
Show Credentials
const refreshClient = async (clientId, accessToken) => { const response = await fetch(`https://api.weir.ai/org/refresh/client?clientId=${clientId}`, { method: 'PATCH', headers: { 'Authorization': `Bearer ${accessToken}`, 'x-source': 'console' } }); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); return await response.json(); };
Was this page helpful?