---
title: "codespar consents"
description: "Consent tokens: mint the token whose URL the consumer opens to authorise an agent"
---

# codespar consents

Consent tokens: mint the token whose URL the consumer opens to authorise an agent

2 comandos. Esta página é gerada da árvore de `--help` da CLI publicada, então ela descreve o que você instala, não o que está em `main`.

### `codespar consents create`

`POST /v1/consents`

```bash
codespar consents create [options]
```

| opção | o que faz |
|---|---|
| `-q, --query <key=value>` | Query parameter (repeatable) (default: []) |
| `--timeout <ms>` | Per-request timeout in milliseconds |
| `-i, --input <json>` | Request body as a JSON string |
| `-f, --input-file <path>` | Request body from a JSON file |

### `codespar consents init`

`POST /v1/consents/init`

```bash
codespar consents init [options]
```

| opção | o que faz |
|---|---|
| `-q, --query <key=value>` | Query parameter (repeatable) (default: []) |
| `--timeout <ms>` | Per-request timeout in milliseconds |
| `-i, --input <json>` | Request body as a JSON string |
| `-f, --input-file <path>` | Request body from a JSON file |
