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

# API reference

> Complete reference for the Bludia public REST API v1 at https://YOUR_API_HOST/ext/api/v1: record CRUD per collection and end-user authentication endpoints, with headers, parameters, and response schemas.

This tab documents every public endpoint, generated from Bludia's OpenAPI specification. Use the **Try it** panel on each page to send real requests: set your host, API key, and (for end users) access token.

## Base URL and auth

```text theme={null}
Base URL:   https://YOUR_API_HOST/ext/api/v1
Headers:    X-BLUDIA-API-KEY: <api key>                      (always)
            Authorization: Bearer <access_token>             (end_users keys, data + account routes)
```

## Endpoints

| Method | Path | Summary | Auth |
| :- | :- | :- | :- |
| `GET` | `/collections/{collection}/records` | List records | Key (+ Bearer for end users) |
| `POST` | `/collections/{collection}` | Create a record | Key (+ Bearer) |
| `GET` | `/collections/{collection}/{id}` | Get a record | Key (+ Bearer) |
| `PUT` | `/collections/{collection}/{id}` | Update a record | Key (+ Bearer) |
| `DELETE` | `/collections/{collection}/{id}` | Delete a record | Key (+ Bearer) |
| `POST` | `/auth/{guard}/register` | Register | Key |
| `POST` | `/auth/{guard}/login` | Log in | Key |
| `POST` | `/auth/{guard}/refresh` | Refresh session | Key |
| `POST` | `/auth/{guard}/password/forgot` | Request password reset | Key |
| `POST` | `/auth/{guard}/password/reset` | Reset password | Key |
| `POST` | `/auth/{guard}/email/verify` | Verify email | Key |
| `GET` | `/auth/{guard}/me` | Current user | Key + Bearer |
| `POST` | `/auth/{guard}/logout` | Log out | Key + Bearer |
| `POST` | `/auth/{guard}/logout-all` | Log out everywhere | Key + Bearer |
| `POST` | `/auth/{guard}/email/resend` | Resend verification code | Key + Bearer |

## Related guides

> [card] [Authentication](https://docs.bludia.com/api/authentication.md)
>
> Platform vs end-user keys.

> [card] [Querying](https://docs.bludia.com/api/querying.md)
>
> Filters, sorting, pagination.

> [card] [Errors](https://docs.bludia.com/api/errors.md)
>
> Status codes and bodies.

> [!NOTE]
>
> The OpenAPI file is at [`/api-reference/openapi.json`](https://docs.bludia.com/api-reference/openapi.json). Import it into Postman, Insomnia, or a code generator.


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