---
title: "Create Document Attachment"
method: POST
path: "/public/v1/documents/{id}/attachments"
tags: ["Document Attachments"]
---

# Create Document Attachment

`POST /public/v1/documents/{id}/attachments`

Creates an attachment for a particular document

## Path parameters

- `id` string, required

## Request body

- DocumentAttachmentRequest
  - `source` string — URL link to the file to be attached to a document
  - `name` string — Optional name to set for uploaded file

## Response `200`

OK

- DocumentAttachmentResponse
  - `uuid` string
  - `date_created` string
  - `created_by` object
    - `id` string
    - `email` string
    - `first_name` string
    - `last_name` string
    - `avatar` string, nullable
  - `name` string, nullable

## Other responses

- `400` — Bad Request
- `401` — Authentication error
- `404` — Not found
- `423` — Document is locked for editing
- `429` — Too Many Requests

---

[API](https://skmtc.net/pandadoc/apis/pandadoc-public-api.md) · [All operations](https://skmtc.net/pandadoc/apis/pandadoc-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pandadoc/pandadoc-public-api/versions/0c2b70be3fb0/schema)
