POST
/
api
/
v3
/
files
Upload file.
curl --request POST \
  --url https://apix.us.amity.co/api/v3/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file \
  --form files=@example-file \
  --form fullImage=true \
  --form 'preferredFilename=<string>' \
  --form accessType=public
{
  "status": "<string>",
  "data": [
    {
      "fileId": "<string>",
      "type": "image",
      "accessType": "public",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "attributes": {
        "name": "<string>",
        "extension": "<string>",
        "size": 123,
        "mimeType": "<string>",
        "metadata": {
          "exif": {},
          "gps": {},
          "height": 123,
          "width": 123,
          "isFull": true
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data

Information of file to be created. It will be applied to every attachment

The body is of type object.

Response

200
application/json

File Upload Result

The response is of type object.