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

# API reference

> Complete reference for the Posttu V1 REST API.

## Base URL

```
https://posttu.com/api/v1
```

## Authentication

All endpoints require an API key via the `Authorization: Bearer <key>` or `x-api-key` header. See [Authentication](https://docs.posttu.com/authentication.md) for details.

## Response format

All responses return JSON. Successful responses include the resource data directly. Errors return an `error` field:

```json theme={null}
{
	"error": "Workflow not found"
}
```

## Pagination

List endpoints support cursor-based pagination:

**limit** `number` (default: 50)

Maximum number of items to return.

**cursor** `string`

Cursor token from a previous response's `nextCursor` field.

A response with more pages includes a `nextCursor` value. When `nextCursor` is `null` or absent, you've reached the last page.

## Status codes

| Code | Meaning |
| - | - |
| `200` | Request succeeded |
| `400` | Invalid input — check the `error` field for details |
| `401` | Missing or invalid API key |
| `404` | Resource not found |
| `429` | Rate limit exceeded |
| `500` | Server error |

## OpenAPI spec

A machine-readable OpenAPI 3.1 spec is available at:

```
GET /api/v1/openapi.json
```

Import it into Postman, Insomnia, or any OpenAPI-compatible tool.


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