cURL
curl --request POST \ --url http://staging.api.commenda.io/api/v1/files \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form companyId=3c90c3cc-0d44-4b50-8888-8dd25736052a \ --form file=@example-file
{ "data": { "id": "<string>", "name": "example.pdf", "size": 102400 }, "message": "Successfully created file." }
Upload a new file to Commenda.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Information about the created file
The response is of type object.
object
Was this page helpful?