# Agents life work

`POST /agents/{id}/life/work` · Rivier · agents

Say what was done under a ticket the persona prompt issued, so the agent's life can learn from it. Say what kind of work, not what a customer wrote.

- Scope: agents:write
- Graphql: Mutation.agentsLifeWork
- Sdk: agents.life.work
- Cli: agents life work

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "ticket": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "brief": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    }
  },
  "required": [
    "ticket",
    "brief"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/agents/{id}/life/work' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ticket": "string",
  "brief": "string"
}'
```
