Skip to main content

Create Upload

Create a new upload endpoint for uploading artifacts.

Endpoint

POST /upload endpoints

Request

curl -X POST https://api.docyard.io/v1/upload endpoints \
  -H "X-API-Key: dk_live_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Production Upload",
    "description": "Main upload endpoint for insurance declarations"
  }'

Response

{
  "upload endpoint_id": "upload endpoint-new-001",
  "name": "Production Upload",
  "description": "Main upload endpoint for insurance declarations",
  "status": "active",
  "api_key": "dk_live_dist_aaaaaaaa",
  "api_secret": "dk_secret_dist_bbbbbbbb",
  "created_at": "2026-03-15T10:00:00Z"
}
Important: Save the api_key and api_secret securely. The secret is only shown once.
  • [List Uploads](/api-reference/upload endpoints/list)
  • [Rotate Keys](/api-reference/upload endpoints/rotate-keys)