Skip to main content
POST
/
users
/
{developer_user_id}
/
documents
Upload Document for User
curl --request POST \
  --url https://api.curalabs.io/v1/users/{developer_user_id}/documents \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form 'document_name=Monthly Report Q1.pdf' \
  --form file=@example-file
{
  "document_id": "doc_mno345pqr678",
  "developer_user_id": "<string>",
  "filename": "report.pdf",
  "created_at": "2023-11-07T05:31:56Z"
}
Upload a document associated with a specific end-user. See the API Reference for details on operationId: uploadUserDocument.

Authorizations

X-API-Key
string
header
required

API Key provided by the platform. Note- X-Timestamp and X-Signature headers are also required for authentication, but not defined as separate schemes here due to OpenAPI limitations on complex signature schemes.

Path Parameters

developer_user_id
string
required

The unique identifier for the end-user this document belongs to.

Example:

"user-unique-id-in-your-system"

Body

multipart/form-data
file
file
required

The document file to upload.

document_name
string

Optional name for the document. If not provided, the original filename might be used.

Example:

"Monthly Report Q1.pdf"

Response

Created. Document successfully uploaded.

document_id
string

Unique identifier for the uploaded document.

Example:

"doc_mno345pqr678"

developer_user_id
string

Identifier for the end-user the document is associated with.

filename
string

Original filename of the uploaded document.

Example:

"report.pdf"

created_at
string<date-time>

ISO 8601 timestamp when the document was uploaded.

I