Complete API reference for BloodLink Africa. Build powerful integrations with our RESTful API.
Generate an API key from your account settings
Include your API key in the Authorization header
Start with the /api/users/profile endpoint
BloodLink Africa uses Bearer token authentication. Include your API key in the Authorization header.
API requests are rate limited to ensure fair usage and system stability.
// Authentication
const response = await fetch('/api/auth/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: 'user@example.com',
password: 'password123'
})
});
const data = await response.json();
const token = data.access_token;
// Using the token for authenticated requests
const profileResponse = await fetch('/api/users/profile', {
headers: {
'Authorization': `Bearer ${token}`
}
});Never expose your API keys in client-side code. Always use server-side authentication for production applications.
Get support from our developer community or contact our technical team.