Create Encrypted File
Creates an encrypted file on your account.
Encryption details is available here.
Request
HTTP Method: POST
URI Path: /v3/encrypted_files
Header: Content-Type: multipart/form-data
Note
In version 2026-04-16, POST /v3/encrypted_files accepts a single file per request and returns JSON:API-formatted success and error responses.
Request Body Object Attributes
Name |
Parameter Type |
Type |
Is Required? |
Description |
|---|---|---|---|---|
encrypted_files[encryption_fingerprint] |
|
|
Yes |
The encryption fingerprint. |
encrypted_files[description] |
|
|
No |
The encrypted file description. |
encrypted_files[file] |
|
|
Yes |
The encrypted file. |
Note
Accepted file formats:
.pdf
.jpg
.png
You may upload 1 file per request.
Each file must not exceed 20 MB in size.
Uploaded encrypted files will expire after 24 hours.
Legacy batch parameters such as
encrypted_files[items][][file]are not supported in version2026-04-16and return400 Bad Request.
Examples
http
POST /v3/encrypted_files HTTP/1.1
Host: api.didww.com
Content-Type: multipart/form-data
Accept: application/vnd.api+json
Api-Key: [API token]
curl
curl -i -X POST https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: multipart/form-data"
response
HTTP/1.1 201 Created
Content-Type: application/vnd.api+json
{
"data": {
"id": "377dc5cf-55b3-45b8-9fed-156600a7f151",
"type": "encrypted_files",
"attributes": {
"description": "my file",
"expires_at": "2026-04-07T20:53:11.747Z"
}
},
"meta": {
"api_version": "2026-04-16"
}
}
http
POST /v3/encrypted_files HTTP/1.1
Host: api.didww.com
Content-Type: multipart/form-data
Accept: application/vnd.api+json
Api-Key: [API token]
curl
curl -i -X POST https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: multipart/form-data"
response
HTTP/1.1 201 Created
Content-Type: application/vnd.api+json
{
"data": {
"id": "377dc5cf-55b3-45b8-9fed-156600a7f151",
"type": "encrypted_files",
"attributes": {
"description": null,
"expires_at": "2026-04-07T20:53:11.747Z"
}
},
"meta": {
"api_version": "2026-04-16"
}
}
http
POST /v3/encrypted_files HTTP/1.1
Host: api.didww.com
Content-Type: multipart/form-data
Accept: application/vnd.api+json
Api-Key: [API token]
curl
curl -i -X POST https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: multipart/form-data"
response
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/vnd.api+json
{
"errors": [
{
"title": "outdated fingerprint",
"detail": "outdated fingerprint",
"code": "100",
"source": {
"pointer": "/data"
},
"status": "422"
}
]
}
http
POST /v3/encrypted_files HTTP/1.1
Host: api.didww.com
Content-Type: multipart/form-data
Accept: application/vnd.api+json
Api-Key: [API token]
curl
curl -i -X POST https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: multipart/form-data"
response
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/vnd.api+json
{
"errors": [
{
"title": "can't be blank",
"detail": "file - can't be blank",
"code": "100",
"source": {
"pointer": "/data/attributes/file"
},
"status": "422"
}
]
}
http
POST /v3/encrypted_files HTTP/1.1
Host: api.didww.com
Content-Type: multipart/form-data
Accept: application/vnd.api+json
Api-Key: [API token]
curl
curl -i -X POST https://api.didww.com/v3/encrypted_files -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: multipart/form-data"
response
HTTP/1.1 400 Bad Request
Content-Type: application/vnd.api+json
{
"errors": [
{
"title": "invalid params",
"detail": "invalid params",
"code": "400",
"status": "400"
}
]
}
Other Responses
Code |
Success |
Description |
|---|---|---|
401 |
No |
|
400 |
No |
|
422 |
No |