# List envelopes

`GET /v1/accounts/{accountId}/envelopes`

The workspace's envelopes, the most recent first: each with its documents in order, their statuses and signers, and the counts by status.

**Authentication:** Bearer access token (`Authorization: Bearer ...`) or API key (`X-Api-Key` header).

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `accountId` | path | string | yes | Workspace account ID. |
| `page` | query | integer | no | Page number. |
| `per-page` | query | integer | no | Records per page: 20 by default, at most 50; a larger value answers 50 a page. |
| `search` | query | string | no | Part of the envelope's name. |
| `status` | query | string | no | `open`: envelopes with a document still open; `closed`: every document signed, declined, cancelled, expired or failed. |

## Responses

### 200 — The workspace's envelopes

```json
{
    "data": [
        {
            "resource": "envelope",
            "id": "1a2f3c4d5e6f708192a3b4c5d6e",
            "name": "Contrato de prestação de serviços",
            "message": "Segue o contrato e seus anexos.",
            "documents": [
                {
                    "id": "615601fab04c0a3147bb1246",
                    "position": 1,
                    "name": "contrato.pdf",
                    "status": "pending_signature",
                    "artifacts": {
                        "original": "https://api.assinafy.com.br/v1/documents/615601fab04c0a3147bb1246/download/original",
                        "thumbnail": "https://api.assinafy.com.br/v1/documents/615601fab04c0a3147bb1246/thumbnail"
                    },
                    "signers": [
                        {
                            "id": "fa8c140cb49b79f940aab95fddd",
                            "full_name": "Ana Souza",
                            "email": "ana@example.com",
                            "whatsapp_phone_number": "+5548999990001",
                            "completed": false,
                            "signed_at": "2026-11-06T14:30:00Z"
                        }
                    ]
                }
            ],
            "counts": {
                "certificated": 1,
                "pending_signature": 2
            },
            "signing_urls": [
                {
                    "signer_id": "string",
                    "url": "https://api.assinafy.com.br/v1/sign/doc1?email=joe@example.com",
                    "embedded": false
                }
            ],
            "created_at": "2026-11-04T12:00:00Z"
        }
    ],
    "status": 200,
    "message": ""
}
```

### 400 — A filter refused as sent, an entry of `errors` each: `search` (not text), `status` (other than `open` or `closed`).

```json
{
    "status": 400,
    "message": "Give status as open or closed.",
    "errors": [
        {
            "field": "status",
            "code": "Invalid",
            "message": "Give status as open or closed."
        }
    ]
}
```

### 403 — An OAuth app's token lacks `documents:read` (`InsufficientScope`). Also a member deactivated in the workspace, a workspace scheduled for deletion, or an OAuth token of another workspace.

```json
{
    "status": 400,
    "code": "PlanRestricted",
    "message": "Bad request.",
    "data": null,
    "errors": [
        {
            "field": "full_name",
            "code": "Required",
            "message": "Full Name cannot be blank."
        }
    ]
}
```

### 404 — The requested resource does not exist.

```json
{
    "status": 400,
    "message": "Bad request.",
    "data": null,
    "code": "PlanRestricted",
    "errors": [
        {
            "field": "full_name",
            "code": "Required",
            "message": "Full Name cannot be blank."
        }
    ]
}
```

### 401 — Missing or invalid credentials.

```json
{
    "status": 400,
    "message": "Bad request.",
    "data": null,
    "code": "PlanRestricted",
    "errors": [
        {
            "field": "full_name",
            "code": "Required",
            "message": "Full Name cannot be blank."
        }
    ]
}
```

### 500 — Unexpected server error.

```json
{
    "status": 400,
    "message": "Bad request.",
    "data": null,
    "code": "PlanRestricted",
    "errors": [
        {
            "field": "full_name",
            "code": "Required",
            "message": "Full Name cannot be blank."
        }
    ]
}
```
