Skip to main content
POST
/
v2
/
documents
Upload a document
curl --request POST \
  --url https://api.example.com/v2/documents \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'name=<string>' \
  --form 'purpose=<string>' \
  --form 'type=<string>' \
  --form 'customerId=<string>'
{
  "id": "<string>"
}

Body

multipart/form-data
file
file
required
name
string
required
purpose
string
required
type
string
required
customerId
string

Response

201 - application/json
id
string
required
Pattern: ^doc_[0-9A-Za-z]{22}$