Skip to main content
Process Document Upload
curl --request POST \
  --url https://api.sigma.pastel.africa/api/v1/edd/process-upload \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'requestId=<string>' \
  --form documentType=bvn_slip \
  --form 'customerId=<string>' \
  --form file=@example-file
{
  "success": true,
  "message": "<string>",
  "data": {
    "documentId": "<string>",
    "documentType": "<string>",
    "status": "processing",
    "confidence": 0.5,
    "extractedData": {},
    "processedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data

Document upload payload

file
file
required

Document file to be processed (JPEG, PNG, PDF)

requestId
string
required

EDD request ID to associate the document with

documentType
enum<string>
required

Type of document being uploaded

Available options:
bvn_slip,
nin_slip,
drivers_license,
passport,
voters_card,
cac_certificate,
tin_certificate
customerId
string

Customer ID for document association

Response

Document processed successfully

success
boolean

Indicates if the request was successful

message
string

Success message

data
object
I