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

# Overview

> The base URL, authentication, errors, paging and versions of the REST API.

## Base URL

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

Requests and responses are JSON, with `snake_case` fields. Every endpoint has an
[MCP tool](https://rendermate.com/docs/mcp/overview.md) that takes the same arguments.

## Authentication

Send an [API key](https://rendermate.com/docs/authentication.md) as a Bearer token. It acts in its workspace.

```bash theme={null}
curl https://api.rendermate.com/v1/account \
  -H "Authorization: Bearer $RENDERMATE_API_KEY"
```

## Errors

An error has an HTTP status and a body with a stable `code`, a `message` that says what to do, a
`doc_url` explaining the code, and the request's `request_id`:

```json theme={null}
{
  "error": {
    "code": "project.not_found",
    "message": "no such project in this workspace",
    "doc_url": "https://rendermate.com/docs/errors#project.not_found",
    "request_id": "req_019ae3c2f1d47a2b8c5e6f7a8b9c0d1e"
  }
}
```

Every response carries its request ID in the `x-request-id` header too.

| Status | Code | Meaning |
| - | - | - |
| 400 | `invalid_request` | An argument is missing or wrong |
| 401 | `unauthorized` | No valid API key |
| 403 | `forbidden` | The caller's role doesn't allow it |
| 404 | `<thing>.not_found` | No such thing in this workspace |
| 409 | `version.conflict` | Another commit landed first: read the document again |
| 409 | `<thing>.<conflict>` | The request conflicts with what's there, such as `asset.name_taken` |
| 501 | `not_available` | The endpoint can't be used |
| 503 | `…unavailable`, `document.contended` | Try again with backoff |

[Errors](https://rendermate.com/docs/errors.md) lists every code, what to do about it, and which errors to retry.

## Paging

Lists come newest first. `limit` sets the page size; a page that has more after it includes
`next`, which you pass as `after` to get the next page.

```bash theme={null}
curl "https://api.rendermate.com/v1/projects?limit=20&after=prj_01M8…" \
  -H "Authorization: Bearer $RENDERMATE_API_KEY"
```

## Versions and aliases

Endpoints that take a document version take either a version number or an alias, such as
`latest`: `{"version": 12}` or `{"alias": "latest"}` in a body, `?version=12` or `?alias=latest`
in a query. Without either, they use `latest`, the newest version.


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