Spectre API
The Spectre API provides programmatic access to Spectre products and services.
Authentication
All requests require a bearer token. Include it in the Authorization header:
Authorization: Bearer YOUR_API_TOKEN_HERE
If you do not have an API token, please contact the Spectre team at apis@spectre.uk.com.
The JSON
Standard
The API adheres to the JSON
- Accept: application/vnd.api+json
- Content-Type: application/vnd.api+json
Learn more about JSON
Environments
- Production: https://api.spectre.uk.com/v1
Resource Areas
- Property Reports: Endpoints for working with user data, reports, and leads (e.g., get current user, list/create reports, list/create leads).
- Email: Endpoints for contacts and segments (e.g., create contacts, list/create segments).
Refer to the Reference section for the full endpoint list, request/response schemas, and examples.
Common Query Parameters
Some endpoints support standard JSON
include: Include related entities (e.g.,include=pdf,include=accounts,company,company.reportTemplates).page[size]: Set the number of results per page.page[number]: Set the page number.
Check each endpoint in the Reference for supported parameters and relationships.
Errors
The API uses standard HTTP status codes and returns JSON
400, 401, 403, 404, 406, 415, and 500.
Example (condensed):
{
"errors": [
{ "title": "Unauthorized", "code": "401" }
]
}