To retrieve information relate to a mockup you can use the /mockups/getinfo endpoint.

GET <https://api.mockupsjar.com/mockups/getinfo/><mockup-name>

Valid response: 200 Ok

{
 "status": "success",
 "data": {
  "slug": "swiasi-android-s5-top",
  "name": "Samsung Galaxy S5 Top View",
  "fields": [
   {
    "id": 2,
    "width": 161,
    "height": 287
   }
  ]
 }
}

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/getinfo/swiasi-android-s5-top`,
    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);
    })