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

# Requests and responses

> Base URL, headers, methods, the response shape, and data types.

A JSON API over HTTPS. Every response, errors included, is JSON.

## Base URL

```text theme={null}
https://api.followr.ai/api
```

Paths in the reference are relative to it: `GET /companies` means `GET https://api.followr.ai/api/companies`. HTTPS only.

## Headers

| Header | Value | When |
| - | - | - |
| `Authorization` | `Bearer YOUR_API_KEY` | Always. See [Authentication](https://docs.followr.ai/authentication.md). |
| `Accept` | `application/json` | Always. |
| `Content-Type` | `application/json` | JSON bodies. |
| `Content-Type` | `multipart/form-data` | File uploads. Let your HTTP client set it. |

## Methods

| Method | Does | Success |
| - | - | - |
| `GET` | Reads. Never changes anything. | `200` |
| `POST` | Creates, or runs an action (publish, generate). | `201` for a new resource; otherwise `200`, `202` or `204`, per endpoint |
| `PUT` | Updates. Send only the fields to change. | `200` |
| `DELETE` | Deletes. | `204`, empty body |

## Response shape

One resource comes inside `data`. A list is an array in `data`, plus `links` and `meta` when paginated ([Pagination](https://docs.followr.ai/api/pagination.md)).

```json One resource theme={null}
{
  "data": {
    "id": 88412,
    "title": "Winter menu launch",
    "draft": true,
    "created_at": "2026-12-01T14:03:11.000000Z"
  }
}
```

```json List theme={null}
{
  "data": [{ "id": 88412 }, { "id": 88413 }],
  "links": { "first": "...", "last": "...", "prev": null, "next": "..." },
  "meta": { "current_page": 1, "per_page": 30, "total": 112 }
}
```

```json Action theme={null}
{
  "deleted_ids": [88412, 88413],
  "deleted_count": 2
}
```

A few actions, like a bulk delete, answer with a plain object. Each endpoint's page shows its exact response.

Related resources (a group's posts, an asset's image, the creator) come only when you ask with `include`. See [Filtering, sorting and including](https://docs.followr.ai/api/filtering-sorting-and-including.md).

## Data types

| Type | Format |
| - | - |
| IDs | Integers. The only non-numeric path ID is `/users/me`. |
| Dates you get | UTC, ISO 8601 with microseconds: `2026-12-15T09:30:00.000000Z`. |
| Dates you send | ISO 8601 with an offset: `2026-12-15T09:30:00Z` or `2026-12-15T10:30:00+01:00`. No offset means UTC. |
| Empty values | `null`. Fields are present even when empty; only relations you didn't include, and a few fields marked as conditional, are left out. |
| Enums | Lowercase strings, such as `instagram` or `pending`. |

## Slow requests

Most requests take well under a second. AI generation can take up to 60 seconds: set a timeout of at least 70 seconds, or use the asynchronous mode where offered (start the job, then poll). See [Generating with AI](https://docs.followr.ai/guides/ai-generation.md).

> [!WARNING]
>
> The API allows browser calls (CORS), but never put a key in front-end code: anyone who loads the page can read it. Call the API from your server.

## How the API changes

The API has no version in the URL. It evolves in backward-compatible ways wherever possible, and changes go in the [changelog](https://docs.followr.ai/changelog.md). Build your client to tolerate:

* new endpoints and new optional parameters;
* new fields in responses and new keys in error bodies;
* new enum values (a new network, a new status);
* a different field order.

So: ignore unknown fields, don't fail on an unknown enum value, and never parse an error's `message`.


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