Skip to main content
POST
/
v3
/
document-uploads
Upload a document
curl --request POST \
  --url https://api.ctrl-hub.com/v3/document-uploads \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-Session-Token: <api-key>' \
  --form 'content=<string>'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "attributes": {
      "checksum": "<string>",
      "size": 123,
      "content_type": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "expires_at": "2023-11-07T05:31:56Z"
    }
  },
  "jsonapi": {
    "version": "<string>"
  }
}

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Body

multipart/form-data

Upload a document to the server

content
string
required

Response

Get a document upload

JSON API response object

data
object
required

A document upload

jsonapi
object
required