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

# Upload one MyFatoorah KYC document

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

## Request

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

Forwards the request body, the document's raw bytes under its own MIME type, to the organization's connected MyFatoorah account and records the upload marker. Requires a signed-in session with payment-provider rights for that organization.

## Query parameters

- `organizationId` string, required
- `fileType` string, required

## Headers

- `x-file-name` string, required

## Request body `image/jpeg`

- string, binary

## 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.
- `415`: That file type is not accepted.
- `500`: MyFatoorah accepted the document, but saving it here failed.
- `502`: MyFatoorah could not accept that document.
- `504`: MyFatoorah took too long to accept that document — try again.

---

[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)
