Skip to main content
GET
/
api
/
v1
/
files
/
{id}
/
download
Download file directly by attachment ID
curl --request GET \
  --url http://localhost:3001/api/v1/files/{id}/download \
  --header 'x-api-key: <api-key>'
{
  "statusCode": 400,
  "message": "Validation failed",
  "errors": [
    {
      "code": "invalid_type",
      "message": "Expected string, received number",
      "path": [
        "email"
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

Placet API key (hp_...)

Path Parameters

id
string
required

Response

File stream