Skip to main content
POST
/
attachments
cURL
curl --request POST \
  --url https://api.usepylon.com/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'description=<string>' \
  --form file='@example-file' \
  --form 'file_url=<string>'
{
  "data": {
    "description": "<string>",
    "id": "<string>",
    "name": "<string>",
    "url": "<string>"
  },
  "request_id": "<string>"
}

Authorizations

Authorization
string
header
required

Authorization: Bearer

Body

multipart/form-data
description
string

The description of the file.

file
file

The file to upload.

file_url
string

The URL to fetch the file from, if the file is not provided.

Response

data
object
request_id
string

The request ID for tracking.