POST
/
document
/
upload
/
{docId}
cURL
curl --request POST \
  --url https://sandbox.finhub.cloud/document/upload/{docId} \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Forwarded-For: <x-forwarded-for>' \
  --form 'metadata=<string>' \
  --form 'status=<string>' \
  --form 'organization=<string>' \
  --form 'documentType=<string>' \
  --form 'title=<string>' \
  --form 'purpose=<string>' \
  --form 'organizationName=<string>' \
  --form 'comment=<string>' \
  --form file=@example-file
{
  "code": 200,
  "message": "Success",
  "redirectUrl": "<string>",
  "sessionId": "<string>",
  "data": "<any>"
}

Headers

X-Forwarded-For
string
required

Forwarded client IP address

User-Agent
string

Client user agent information

X-Tenant-ID
string

Tenant identifier for multi-tenant operations

Path Parameters

docId
string
required

Body

multipart/form-data
metadata
string
status
string
organization
string
documentType
string
title
string
file
file
purpose
string
organizationName
string
comment
string

Response

200 - application/json

OK

Standard response wrapper for all API responses

code
integer

HTTP status code

Example:

200

message
string

Response message

Example:

"Success"

redirectUrl
string

Optional URL to redirect to after processing

sessionId
string

Optional session identifier

data
any

The actual response data payload