Authentication
Authenticate API requests using Bearer tokens.
Overview
All endpoints require an API key passed via the Authorization header in the format Bearer YOUR_API_KEY.
Never expose your API key in client-side code or public repositories.
Base URL
https://backend.blooio.com/v2/apiExample
curl -H 'Authorization: Bearer YOUR_API_KEY' \
https://backend.blooio.com/v2/api/meimport fetch from 'node-fetch'
const res = await fetch('https://backend.blooio.com/v2/api/me', {
headers: { 'Authorization': `Bearer ${process.env.BLOOIO_API_KEY}` }
})
const me = await res.json()import os, requests
res = requests.get('https://backend.blooio.com/v2/api/me',
headers={ 'Authorization': f"Bearer {os.environ['BLOOIO_API_KEY']}" }
)
me = res.json()Headers
- Authorization:
Bearer YOUR_API_KEY - Content-Type:
application/json(for requests with a body)
Errors
- 401 Unauthorized: missing or invalid token
- 403 Forbidden: action not allowed for this key