Component Details API

Get component (product) details by productNumber (or by componentId).

HTTP Method / Path: GET /configwise/api/components/:productNumber|:componentId[?include_360=true|false]

Authorization: Request must include 'x-token' header, eg: 'x-token': '755c0fadf29146c3b65778528a3abb12' See Setup API token to generate or retrieve the API token defined in the ConfigWise Portal.

Required HTTP headers:

  • x-token: YOUR_API_TOKEN

  • Accept: application/json

As a URL parameter you can use 'product number' or 'internal component id'.

NOTICE: If you add '?include_360=true' (false by default) URL query parameter then response includes extra info about generated 360 images, eg:

"images": {
    "default": {
        "frame": {
            "original": "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2/image?product_number=ROD000462",
            "small":    "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2/image?product_number=ROD000462&size=small",
            "medium":   "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2/image?product_number=ROD000462&size=medium",
            "large":    "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2/image?product_number=ROD000462&size=large"
        },
        "frame360": {
            "original": "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2?product_number=ROD000462",
            "small":    "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2?product_number=ROD000462&size=small",
            "medium":   "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2?product_number=ROD000462&size=medium",
            "large":    "https://manage.configwise.io/configwise/viewer360/urqXk9gYm2?product_number=ROD000462&size=large"
        }
    }
}

An example of success response:

200 HTTP response code

{
  "id": "X5UuJ9y6Pz",
  "productNumber": "FAV-00004",
  "name": "Engineer static fbx binary",
  "appName": "Engineer static fbx binary",
  "createdAt": "2018-05-26T15:06:29.658Z",
  "updatedAt": "2019-10-28T17:12:50.619Z",
  "isFloating": false,
  "description": "Engineer FBX binary - no animation.",
  "productLink": null,
  "isVariance": false,
  "parentProductNumber": null,
  "published": true,
  "thumbnail": "https://manage.configwise.io/configwise/files/companies/EZVEjkaKiH/catalog/components/X5UuJ9y6Pz/93ffe7e4-f78a-4c13-ba37-29ee037fa267/Engineer_-_binary_static-thumbnail.png",
  "iosModel": null,
  "iosModelAssets": [],
  "androidModel": null,
  "androidModelAssets": [],
  "originalModel": "https://manage.configwise.io/configwise/files/companies/EZVEjkaKiH/catalog/components/X5UuJ9y6Pz/93ffe7e4-f78a-4c13-ba37-29ee037fa267/Engineer_-_binary_static.fbx",
  "originalModelAssets": [
     "https://manage.configwise.io/configwise/files/companies/EZVEjkaKiH/catalog/components/ygVpL5mRdG/f175ad1f-28c5-4b80-88b4-1ca70c92674d/BOXSurface_Color.jpg",
     "https://manage.configwise.io/configwise/files/companies/EZVEjkaKiH/catalog/components/ygVpL5mRdG/f175ad1f-28c5-4b80-88b4-1ca70c92674d/door_RSurface_Color.jpg"
  ],
  "fileSizes": [
      {
          "filePath": "companies/EZVEjkaKiH/catalog/components/X5UuJ9y6Pz/93ffe7e4-f78a-4c13-ba37-29ee037fa267/Engineer_-_binary_static.fbx",
          "size": 512112
      },
      {
         "filePath": "companies/EZVEjkaKiH/catalog/components/ygVpL5mRdG/f175ad1f-28c5-4b80-88b4-1ca70c92674d/BOXSurface_Color.jpg",
         "size": 514927
     },
     {
         "filePath": "companies/EZVEjkaKiH/catalog/components/ygVpL5mRdG/f175ad1f-28c5-4b80-88b4-1ca70c92674d/door_RSurface_Color.jpg",
         "size": 600223
     }
  ],
  "nodesToTags": [
      {
          "nodeName": "Mesh_0027",
          "tag": "Mesh_0027"
      }
  ],
  "tagsToMaterials": [
      {
          "tag": "Mesh_0027",
          "materialIds": [
              "2Gbr1XQo0E",
              "jcNoky4dLn",
              "5iAwvXkcLl"
          ]
      }
  ]
}

Examples of error responses:

404 HTTP response code (if requested component not found)

{
   "error": "Not Found."
}

403 HTTP response code (if incorrect 'x-token' header in the response)

{
   "error": "Forbidden."
}

500 HTTP response code (if server side error occurs)

{
   "error": "Internal Server Error"
}