# With a customer token

`POST /platform-agents/mandates` · Rivier · agents

With a customer token: a standing permission for one tool, within a bound when it has one (the most one input field may be). It never widens what a connection grants.

- Scope: agents:write
- Graphql: Mutation.agentsPlatformMandateCreate
- Sdk: agents.platformMandate.create
- Cli: agents platform mandate create

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "tool": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_]{0,47}$"
    },
    "max": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "field",
        "value"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "tool"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/platform-agents/mandates' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "tool": "string"
}'
```
