Fathom AnalyticsAPI

Command Palette

Search for a command to run...

API Reference · v1

Errors

When we detect a problem with your request, we return an HTTP 400 or 401 response. Make sure you've set Accept: application/json in your request headers so that errors come back as JSON.

General errors return a single error key with a human-readable message. Validation errors (for example, a missing required field) return an errors object keyed by field name.

General error400
{
    "error": "This token doesn't have permission to access this endpoint"
}
Validation error400
{
    "errors": {
        "name": [
            "The name field is required."
        ]
    }
}