Skip to main content
POST
/
v1
/
api
/
agencies
/
{id}
/
kyc
/
documents
Upload a KYC document
curl --request POST \
  --url http://localhost:3091/v1/api/agencies/{id}/kyc/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": 123,
  "agencyId": 123,
  "name": "<string>",
  "fileUrl": "<string>",
  "uploadedAt": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "reviewedAt": "2023-11-07T05:31:56Z",
  "reviewedById": 123,
  "rejectionReason": "<string>"
}

Authorizations

Authorization
string
header
required

JWT access token from POST /v1/api/auth/login

Path Parameters

id
integer<int64>
required

Body

multipart/form-data
file
file
required

Response

Document uploaded successfully

id
integer<int64>
agencyId
integer<int64>
name
string
fileUrl
string
uploadedAt
string<date-time>
status
string
reviewedAt
string<date-time>
reviewedById
integer<int32>
rejectionReason
string