POST
/
files
curl --request POST \
  --url https://base_url/api/v1/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'corporation_id=<string>'
{
  "data": {
    "id": "<string>",
    "name": "example.pdf",
    "size": 102400,
    "corporation_id": "<string>",
    "created_at": 1727284490
  },
  "message": "Successfully created file."
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file

The file to upload

corporation_id
string

The unique identifier for a corporation associated with this file.

Response

200
application/json
Information about the created file
data
object
message
string
Example:

"Successfully created file."