API Reference
Authors API
Get authors for a workspace
URL
https://contioreach.com/api/public/authorsMethod
GETQuery Parameters
| Parameter | Type | Description |
|---|---|---|
idOptional | string | Filter authors by ID |
Authentication
API requests require authentication using an API key in one of two ways:
x-api-key header
Include your API key in the x-api-key header
headers: {
'x-api-key': 'YOUR_API_KEY'
}authorization header
Include your API key in the authorization header with format: Bearer YOUR_API_KEY
headers: {
'authorization': 'Bearer YOUR_API_KEY'
}Response
200Success
{
authors: [
{
id: string,
name: string,
email: string,
profileImage: string
}
]
}401Unauthorized
{
error: string // Authentication error message
}500Server Error
{
error: "Failed to fetch authors"
}Usage Examples
Fetch all authors
async function fetchAuthors() {
const response = await fetch('https://contioreach.com/api/public/authors', {
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
return await response.json();
}Fetch author by ID
async function fetchAuthorById(id) {
const response = await fetch('https://contioreach.com/api/public/authors?id=' + id, {
headers: {
'x-api-key': 'YOUR_API_KEY'
}
});
return await response.json();
}