Skip to content

Upload document to project

Upload a document to the system.

Endpoint

POST /api/v1/external/projects/{projectUuid}/documents

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesMust be multipart/form-data
AcceptstringNoMust be application/json

Request Body

The request should be sent as multipart/form-data with the following fields:

FieldTypeRequiredDescription
files[]fileYesThe document files to upload

Parameters

ParameterTypeRequiredDescription
projectUuidstringYesThe UUID of the project to upload the document to. Can be found in the Recognito application.

Response

Success Response (200 OK)

json
{
  "status": "success"
}

Error Response (400 Bad Request)

json
{
  "error": "string",
  "message": "string"
}

Example

Request

bash
curl -X POST https://apiv2.recognito.io/api/v1/external/projects/{projectUuid}/documents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "files[]=@/path/to/document.pdf" \
  -F "files[]=@/path/to/document2.pdf"

Response

json
{
  "status": "success"
}