Get my uploaded files

At any time you can check what files you have uploaded on our server. This will be useful if you want to resend an email with an already uploaded attachment, or if you want to remove the attachments from our server.

Simply what you have to do is a request of type get as in the example below

curl --location 'https://api.youremailapi.com/files' \
--header 'apikey: {YOUR_API_KEY_HERE}'

Response

If you have files on our server, the response will have the following structure. Inside the "files" array you will find all the files you have uploaded. And inside the meta object, there is the calculation of how many bytes all those files weigh

{
  "files": [
    {
      "id": 2,
      "token": "c1798e9220511634267073e1f118796214ad39a94ae4a85699b2fdb95fe482ce",
      "size": 337554,
      "name": "c1798e9220511634267073e1f118796214ad39a94ae4a85699b2fdb95fe482ce.gif",
      "created_at": "2023-08-07T01:21:16.226Z"
    },
    {
      "id": 3,
      "token": "69ca3ae3c06a9afce511698500710a46c187368abd05e0b20c7e50a77f6ab5a2",
      "size": 553443,
      "name": "69ca3ae3c06a9afce511698500710a46c187368abd05e0b20c7e50a77f6ab5a2.gif",
      "created_at": "2023-08-07T01:21:16.235Z"
    }
  ],
  "meta": {
    "total_bytes": 890997
  }
}