GET
/
files
curl --request GET \
  --url http://staging.api.commenda.io/api/v1/files \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "files": [
      {
        "id": "<string>",
        "name": "example.pdf",
        "size": 102400
      }
    ],
    "cursor": "<string>"
  },
  "message": "Successfully fetched files."
}

Authorizations

Authorization
string
header
required

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

Query Parameters

cursor
string

Pagination cursor for the next set of results. Optional.

limit
integer
default:10

Number of items to return per page. Optional. Default is 10.

Required range: 1 <= x <= 100

Response

200
application/json
A list of files and a pagination cursor for the next set of results.
data
object
message
string
Example:

"Successfully fetched files."