> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Understand common Markifact API error responses.

The Markifact API returns JSON errors using the standard `detail` field.

## Common Status Codes

| Status | Meaning |
| - | - |
| `400` | The request is invalid or uses an unsupported value. |
| `401` | The API key is missing, invalid, revoked, expired, or not allowed. |
| `404` | The resource was not found or does not belong to your team. |
| `500` | The API could not complete the request because of server configuration or an internal error. |

## Validation Error

```json theme={"dark"}
{
  "detail": "redirect_url must be a valid https URL"
}
```

Unsupported connection types include the allowed values:

```json theme={"dark"}
{
  "detail": {
    "message": "Unsupported connection_type",
    "allowed_values": ["ga4", "gads", "meta_ads"]
  }
}
```

## Authentication Error

```json theme={"dark"}
{
  "detail": "Missing API key"
}
```

## Not Found

For team-scoped resources, `404` can mean the resource does not exist or belongs to another team.

```json theme={"dark"}
{
  "detail": "Connection not found"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.