const token = 'YOUR_API_TOKEN'; // Create (async () => { const res = await fetch('https://paste.su/dev', { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body: new URLSearchParams({ paste_title: 'Node Test', content: 'Hello from Node!', type: 'public', expiration: 'unlimited' }) }); const created = await res.json(); console.log('Create:', created); // Fetch const r2 = await fetch(`https://paste.su/dev?paste_id=${created.paste_id}`, { headers: { Authorization: `Bearer ${token}` } }); console.log('Fetch:', await r2.json()); })();