---
title: "Upload new compliance document"
method: POST
path: "/v2/documents"
tags: ["Compliance"]
---

# Upload new compliance document

`POST /v2/documents`

## Request

- Base URL: `https://api.sandbox.payall.com`
- URL: `https://api.sandbox.payall.com/v2/documents`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/v2/oauth/token`

Use this method to upload documents.

Supported file types are: PDF, PNG, JPEG.

## Request body `image/png`

- string, binary

## Response `201`

Created

Returns new document ID.

- object
  - `id` string, uuid: New document ID. Use this ID to reference the document in future.

## Other responses

- `413`: Payload Too Large The file size is too large. Max file size is 10MB.

---

[API](https://skmtc.dev/payall/apis/payall-m2m-authentication-api.md) - [All operations](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/payall/apis/payall-m2m-authentication-api/revisions/5f561eccd6ce?raw)
