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.
API rate limiting
X-RateLimit-Limit: 60 X-RateLimit-Remaining: 45 X-RateLimit-Reset: 1704470400
const response = await fetch('https://api.boostgpt.co/v1/bots', { headers: { 'Authorization': `Bearer ${apiKey}` } }); const remaining = response.headers.get('X-RateLimit-Remaining'); console.log(`Requests remaining: ${remaining}`);
async function makeRequestWithRetry(url, options, maxRetries = 3) { for (let i = 0; i < maxRetries; i++) { const response = await fetch(url, options); if (response.status === 429) { const wait = Math.pow(2, i) * 1000; await new Promise(resolve => setTimeout(resolve, wait)); continue; } return response; } throw new Error('Max retries exceeded'); }
Was this page helpful?