Last updated 6 months ago
Login using your Context Data user login and generate your token
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
OK
No Content
const response = await fetch('https://sapphire.contextdata.ai/api/auth/token', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "username": "text", "password": "text" }), }); const data = await response.json();
const response = await fetch('https://sapphire.contextdata.ai/api/auth/', { method: 'DELETE', headers: { "Authorization": "Bearer <token>" }, }); const data = await response.json();