POST
/
v1
/
documents
Upload a document
curl --request POST \
  --url https://api.wellapp.ai/v1/documents \
  --header 'Content-Type: multipart/form-data' \
  --form 'metadata={
  "file_name": "<string>",
  "partner_id": "<string>",
  "customer_id": "<string>",
  "user_identifier": {
    "uuid": "<string>",
    "email": "<string>",
    "phone_number": "<string>"
  },
  "status": "<string>",
  "uploaded_at": "2023-11-07T05:31:56Z",
  "processed_at": "2023-11-07T05:31:56Z",
  "file_type": "<string>",
  "size_bytes": 123,
  "extracted_fields": {
    "vendor": "<string>",
    "total": "<string>",
    "date": "2023-12-25"
  }
}' \
  --form file=@example-file.txt
{
  "id": "<string>",
  "type": "document",
  "attributes": {
    "file_name": "<string>",
    "partner_id": "<string>",
    "customer_id": "<string>",
    "user_identifier": {
      "uuid": "<string>",
      "email": "<string>",
      "phone_number": "<string>"
    },
    "status": "<string>",
    "uploaded_at": "2023-11-07T05:31:56Z",
    "processed_at": "2023-11-07T05:31:56Z",
    "file_type": "<string>",
    "size_bytes": 123,
    "extracted_fields": {
      "vendor": "<string>",
      "total": "<string>",
      "date": "2023-12-25"
    }
  }
}

Body

multipart/form-data

Response

201
application/json

Created

The response is of type object.