---
title: "Upload document(s) for a particular template."
method: POST
path: "/api/Documentupload"
tags: ["Docstore"]
---

# Upload document(s) for a particular template.

`POST /api/Documentupload`

## Headers

- `Authorization` string, required
- `UserName` string

## Request body

- EmsignerAPIBusinessObjectDocumentViewModel[]
  - `TemplateId` integer, required — TemplateId(fetched using GetTemplates) of the activity created through Manage Workflows
  - `Base64FileData` string, required — base64 string format of the documentfile
  - `DocumentName` string, required — Name of the document with extension

## Response `200`

OK

- EMDMSHelperReturnObjectSystemCollectionsGenericListEmsignerAPIBusinessObjectDocumentReponse
  - `IsSuccess` boolean
  - `Messages` string[]
  - `ErrorCode` integer
  - `Response` EmsignerAPIBusinessObjectDocumentReponse[]
    - `DocumentID` integer
    - `DocumentName` string
    - `DocumentNumber` string

---

[API](https://skmtc.dev/emsigner/apis/emsignerapi.md) · [All operations](https://skmtc.dev/emsigner/apis/emsignerapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/emsigner/emsignerapi/revisions/7d5d55e0d91d/schema)
