Skip to main content
POST
/
kyc-document-upload
Upload EDD document
curl --request POST \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/kyc-document-upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form edd_case_id=3c90c3cc-0d44-4b50-8888-8dd25736052a \
  --form document_type=source_of_funds
{
  "success": true,
  "status": 201,
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "document_type": "source_of_funds"
  }
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

multipart/form-data
file
file
required

The document file to upload (PDF, JPG, PNG). Max 5MB.

edd_case_id
string<uuid>
required

The EDD case this document belongs to.

document_type
enum<string>
required
Available options:
source_of_funds,
vehicle_invoice,
property_documents,
finance_letter,
bank_statement

Response

Document uploaded and linked to EDD case

success
boolean
Example:

true

status
integer
Example:

201

data
object