# Get Encrypted Files

Returns a list of encrypted files in the account.

## Request

HTTP Method: `GET`

URI Path: `/v3/encrypted_files`

Note

For all returned data attributes, see [Encrypted Files Object](encrypted-files-object.html).

### URI Query Parameters

| Name | Type | Is Required? | Description |
| --- | --- | --- | --- |
| fields[encrypted\_files] | `string` | No | [Sparse fieldsets](../../../specification/sparse-fieldsets.html#api-sparse-fieldsets) |
| filter[<filter\_name>] | `string` | No | [Filtering](../../../specification/filtering.html#api-filters) |
| sort | `string` | No | [Sorting](../../../specification/sorting.html#api-sorting) |
| page[number] | `integer` | No | [Page number](../../../specification/pagination.html#api-pagination). |
| page[size] | `integer` | No | [Page size](../../../specification/pagination.html#api-pagination). Pagination defaults to `50` records per page. The maximum is `100`. |

### Filters

| Filter Name | Type | Allow Blank | Allow Array | Filters by: |
| --- | --- | --- | --- | --- |
| id | `string` | No | Yes | The `id` field. |

### Sorting

| Value | Sorts by |
| --- | --- |
| description | The encrypted file description. |
| expires\_at | The expiration date of encrypted file. |

## Examples

Encrypted File

[[DIDWW-API-EXAMPLE-START]]

http

```
1GET /v3/encrypted_files HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Authorization: Bearer [access token]
```

curl

```
1curl -i -X GET https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" -H "Authorization: Bearer [access token]"
```

response

```
 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5    "data": [
 6        {
 7            "id": "cc52b6b3-0627-47d3-a1c9-b54d3de42813",
 8            "type": "encrypted_files",
 9            "attributes": {
10                "description": "Description",
11                "expires_at": "2021-03-29T14:18:19.569Z"
12            }
13        }
14    ],
15    "meta": {
16        "total_records": 1,
17        "api_version": "2026-11-19"
18    },
19    "links": {
20        "first": "https://api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=50",
21        "last": "https://api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=50"
22    }
23}
```

[[DIDWW-API-EXAMPLE-END]]

## Other Responses

| Code | Success | Description |
| --- | --- | --- |
| 400 | No | [Bad Request](../../../specification/errors/index.html#api-bad-request). Malformed request: unknown filter, bad pagination or bad sort field. |
| 401 | No | [Unauthorized](../../authentication.html#authentication-v35) |
| 429 | No | The request budget of the account for the current window is spent (`too_many_requests`). `Retry-After` gives the number of seconds to wait. |
