Menu
Get All Files
Get all Files
GET
/v2/filesUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Get All Files action (under Files).
- Fill in the fields below, then reference the result from later steps as
{{getAllFiles.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getAllFiles.response.data.<field>}}.
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "file",
"file_name": "file_name.jpg",
"mime_type": "image/jpeg",
"file_size": 36000,
"public": true,
"meta": {
"timestamps": {
"created_at": "2023-10-11T13:02:25.293Z"
},
"dimensions": {
"width": 1800,
"height": 1000
}
},
"links": {
"self": "https://https://euwest.api.elasticpath.com//v2/files/ddc28c74-a7df-46be-b262-8fa69a6e7d52"
},
"link": {
"href": "https://files-eu.epusercontent.com/e8c53cb0-120d-4ea5-8941-ce74dec06038/f8cf26b3-6d38-4275-937a-624a83994702.png"
}
}
],
"meta": {
"page": {
"limit": 100,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 1
}
},
"links": {
"self": "https://useast.api.elasticpath.com/v2/files?page[offset]=0&page[limit]=100",
"current": "https://useast.api.elasticpath.com/v2/files?page[offset]=0&page[limit]=100",
"first": "https://useast.api.elasticpath.com/v2/files?page[offset]=0&page[limit]=100",
"last": "https://useast.api.elasticpath.com/v2/files?page[offset]=10&page[limit]=100",
"prev": "https://useast.api.elasticpath.com/v2/files?page[offset]=0&page[limit]=100",
"next": "https://useast.api.elasticpath.com/v2/files?page[offset]=100&page[limit]=100"
}
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?