Authors API
Get authors for a workspace
url
https://contioreach.com/api/public/authors
method
GET
Query Parameters
id
Optional
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
authorization header
Include your API key in the authorization header with format: Bearer YOUR_API_KEY
Response
200
Success
typescript
{
authors: [
{
id: string,
name: string,
email: string,
profileImage: string
}
]
}401
Unauthorized
{
error: string // Authentication error message
}500
Server 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();
}