To retrieve all the mockups that are published you can use the /mockups/list endpoint.

GET <https://api.mockupsjar.com/mockups/list>

Valid response: 200 Ok

{
 "status": "success",
 "data": [
  {
   "slug": "ripped-torn-paper-1",
   "name": "Ripped Torn Paper 1",
   "width": 640,
   "height": 427,
   "previewURL": "<https://mockupsjar-production.s3-eu-west-1.amazonaws.com/renders/OVNNQVbibMNk6AcT-gL7CegKMZABSLHW1-c.jpg>"
  },
  {
   "slug": "notepad-with-penl",
   "name": "Notepad with Penl",
   "width": 640,
   "height": 427,
   "previewURL": "<https://mockupsjar-production.s3-eu-west-1.amazonaws.com/renders/yJsb8BidtPDSHjhc-zS0rULW89uxBtIn7-c.jpg>"
  },
  {
   "slug": "man-writing-on-paper",
   "name": "Man writing on paper",
   "width": 640,
   "height": 427,
   "previewURL": "<https://mockupsjar-production.s3-eu-west-1.amazonaws.com/renders/man-writing-on-paper-bKe67WlzPRUk791R.jpg>"
  }
  "..."
  ]
}

Invalid response: 500 Exception

Code sample

const axios = require('axios');
const API_URL = process.env.API_URL;        // <https://api.mockupsjar.com>
const API_TOKEN = process.env.API_TOKEN;    // Put your API TOKEN in here

axios({
    method: 'get',
    url: `${API_URL}/mockups/list`,
    headers: {
        'Authorization': 'Bearer ' + API_TOKEN
    }
})
    .then((response) => {
        console.log(response.status, response.statusText, JSON.stringify(response.data, null, ' '));
    })
    .catch((e) => {
        console.info('exception', e.message);
    })