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

# Messages API

> Use the Anthropic Messages-shaped endpoint at /v1/messages.

## Endpoint

```bash theme={null}
POST https://api.asterwise.dev/v1/messages
x-api-key: $ASTER_API_KEY
anthropic-version: 2023-06-01
Content-Type: application/json
```

## Minimal request

```bash theme={null}
curl https://api.asterwise.dev/v1/messages \
  -H "x-api-key: $ASTER_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"aster-work","max_tokens":1024,"messages":[{"role":"user","content":"Summarise the decision."}]}'
```

## Work attachments

The delivered Work attachment route accepts static PNG, JPEG, GIF, WebP, and ICO images plus PDF. The web playground keeps temporary originals only for the configured cleanup window and clears them on user cleanup.

<Note>
  Multipage image rendering and maximum-size provider rendering have not been qualified. PDF support does not imply arbitrary document or Office-file ingestion.
</Note>

## Next steps

* [Handle errors and retries](/errors-fallback)
* [Check supported capabilities](/products-capabilities)
