---
title: "Upload document"
method: POST
path: "/resources/1/documents"
tags: ["platform", "resources", "resource-request"]
---

# Upload document

`POST /resources/1/documents`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/resources/1/documents`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`

Upload a document prior to providing it as a requirement within a resource request.

## Request body `multipart/form-data`

- C8df889022018062dfcb44e930a391e7e1c8e669bd11a10a717da508b9ae3dcfUploadDocumentApiDoc
  - `document` string, binary, required: The document file you want to upload. Supported file formats: .doc, .docx, .jpg, .jpeg, .png, .pdf, .xls, .xlsx, .mp4, .avi, .mov, .webm

## Response `201`

Document successfully uploaded

- C8df889022018062dfcb44e930a391e7e1c8e669bd11a10a717da508b9ae3dcfDocumentIdentifier
  - `documentId` string: The ID of the document.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
