---
title: "Upload one MyFatoorah KYC document"
method: POST
path: "/api/myfatoorah-documents/v1/upload"
---

# Upload one MyFatoorah KYC document

`POST /api/myfatoorah-documents/v1/upload`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/myfatoorah-documents/v1/upload`
- Auth: API key in cookie `__Secure-better-auth.session_token`

Forwards a base64-encoded KYC document to the organization's connected MyFatoorah account and records the upload marker. Requires a signed-in session with payment-provider rights for that organization.

## Request body

- object
  - `organizationId` string, required
  - `fileType` integer, required
  - `fileName` string, required
  - `contentType` 'image/jpeg' | 'image/png' | 'image/bmp' | 'image/gif' | 'application/pdf' | 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' | 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', required
  - `buffer` string, required

## Response `200`

MyFatoorah accepted the document and the marker was recorded.

- object
  - `fileType` number, required
  - `uploadedAt` string, required

## Other responses

- `400`: That upload request is not valid, or MyFatoorah rejected the file.
- `401`: Sign in to upload a document.
- `403`: You cannot upload MyFatoorah documents, or the merchant Paywall locks this business.
- `409`: Connect MyFatoorah before uploading documents.
- `412`: MyFatoorah is not configured.
- `413`: That file exceeds MyFatoorah's 5 MB limit.
- `500`: MyFatoorah accepted the document, but saving it here failed.
- `502`: MyFatoorah could not accept that document.

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
