For the complete documentation index, see llms.txt. This page is also available as Markdown.

Files

APIs for adding file attachments to accounts

Upload files to an account

post
/accounts/{id}/files

Uploads one or more files to an account by ID or external ID.

Rate limit: 30 requests per minute

Authorizations
AuthorizationstringRequired

Authorization: Bearer

Path parameters
idstringRequired

The ID or external ID of the account to upload files to.

Body
filestring · binaryOptional

The file to upload.

file_urlstringOptional

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

Responses
200Success
application/json
request_idstringOptional

The request ID for tracking.

post/accounts/{id}/files
POST /accounts/{id}/files HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35

{
  "file": "binary",
  "file_url": "text"
}
{
  "data": [
    {
      "description": "text",
      "id": "text",
      "name": "text",
      "url": "text"
    }
  ],
  "request_id": "text"
}

Last updated

Was this helpful?