---
title: "Create attachment"
method: POST
path: "/document/attachment/create"
tags: ["Document"]
deprecated: true
---

# Create attachment

`POST /document/attachment/create`

> **Deprecated.**

Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide. Create a new attachment for a document

## Request body

- object
  - `documentId` number, required
  - `data` object, required
    - `label` string, required
    - `data` string, uri, required

## Response `200`

Successful response

- object
  - `id` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/documenso/apis/documenso-v2-api.md) · [All operations](https://skmtc.net/documenso/apis/documenso-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/documenso/documenso-v2-api/revisions/3db245102197/schema)
