# Make a guard key. The key is shown once

`POST /s/{site}/keys` · Praecise Shield for AI · Guard keys

Make a guard key. The key is shown once.

## Parameters

- `site` (path, required), string: The site id (ai_…).

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "agent": {
      "type": "string",
      "description": "The name this key speaks for."
    },
    "ratePerMinute": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    }
  },
  "required": [
    "agent"
  ]
}
```

## Responses

- `201`: OK
- `409`: Too many keys.

## Example

```sh
curl -X POST 'https://shield-ai.praecise.com/s/{site}/keys' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "agent": "string"
}'
```
