---
title: "Upload Document"
method: POST
path: "/2/domains/accounts/{account}/documents"
tags: ["Domain > Document"]
---

# Upload Document

`POST /2/domains/accounts/{account}/documents`

Upload domain related document

## Path parameters

- `account` string, required

## Request body

- object
  - `document` string, binary, required
  - `document_type` '"domain_contact_verification_document"' | '"domain_extra_field_document"', nullable — The document type (default: domain_extra_field_document)
  - `field_name` string, required — The additional field name

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` 6a791d9bApiDomainDocument
    - `id` integer, required — Unique identifier of the resource `Domain Document`
    - `name` string, required — The file name
    - `document` 6a791d9bFile, required
      - `id` integer, required — Unique identifier of the resource `File`
      - `name` string, required — Name of the resource `File`
      - `size` integer, required
      - `saved` boolean, required
      - `type` string, required
      - `extension` string, required
      - `URL` string

## Other responses

- `422` — Unprocessable Entity

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/158a854b0c7d/schema)
