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

# Conventions

> Ids, formats, pagination, metadata and request ids.

## Format

* JSON request and response bodies, `snake_case` fields.
* Timestamps in ISO 8601 UTC: `2026-11-03T10:04:03Z`.
* Credits are numbers: prices have up to two decimals, what is reserved and charged is whole credits.
* Ids are a type prefix and 32 hex characters: `gen_6f1c2a9e4b7d4c1e9a3f0b5d8e2c7a14`. Prefixes: `gen_` generation, `asset_` asset, `elm_` element, `evt_` event, `whep_` webhook endpoint.
* Every object has an `object` field with its type.

**Forward compatibility.** We add fields, enum values, models, modes and event types without a new version. Ignore fields you do not know, and do not fail on an unknown enum value (for example a new `status_detail`).

## Pagination

List endpoints return a page of objects, newest first:

```json theme={null}
{ "object": "list", "data": [ … ], "has_more": true }
```

| Parameter | |
| - | - |
| `limit` | 1–100, default 20. |
| `starting_after` | An id: return objects after it (older). |
| `ending_before` | An id: return objects before it (newer). |

To walk everything, pass the last id of each page as `starting_after` until `has_more` is `false`. Cursors stay correct while new objects are created. A cursor whose object was deleted is refused with `400 parameter_invalid` at `starting_after` or `ending_before`: list again from the first page.

## Metadata

Generations and webhook endpoints accept `metadata`: up to 20 string pairs (keys up to 40 characters, values up to 500) of your own. Argil stores and returns them, includes them in webhooks, and never interprets them. Filter generations on them with `GET /v2/generations?metadata[order_id]=A-1042`.

## Request ids

Every response has a `Request-Id` header, repeated in error bodies. Log it, and quote it when you contact support.


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