---
title: "Add an attachment"
method: POST
path: "/attachments/account/{accountId}"
tags: ["Attachments"]
---

# Add an attachment

`POST /attachments/account/{accountId}`

## Request

- Base URL: `https://api.app.subskribe.com`
- URL: `https://api.app.subskribe.com/attachments/account/{accountId}`
- Auth: API key in header `X-API-Key`

Attaches a document to the specified account. The post body should contain the body of the document that is to be attached. On success the Id of the attachment is returned.

## Path parameters

- `accountId` string, required

## Query parameters

- `fileName` string
- `description` string
- `tag` 'MASTER_SUBSCRIPTION_AGREEMENT' | 'STATEMENT_OF_WORK' | 'ORDER_FORM' | 'OTHER'

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

successful operation

- Attachment
  - `id` string, uuid, required
  - `name` string, required
  - `description` string
  - `status` 'UPLOADING' | 'UPLOADED'
  - `accountId` string
  - `tag` 'MASTER_SUBSCRIPTION_AGREEMENT' | 'STATEMENT_OF_WORK' | 'ORDER_FORM' | 'OTHER'
  - `inUse` boolean
  - `isDeleted` boolean
  - `createdOn` integer, required
  - `updatedOn` integer

---

[API](https://skmtc.dev/dealhub/apis/subskribe-api.md) - [All operations](https://skmtc.dev/dealhub/apis/subskribe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dealhub/apis/subskribe-api/revisions/c1ee531b82ce?raw)
