Examples

GET /api/v2/images/5
200
{
  "data": {
    "id": "5",
    "type": "images",
    "links": {
      "self": "http://test.host/api/v2/images/5"
    },
    "attributes": {
      "media": "https://static-dev.smartkarma.com/images/media/000/000/005/original/test.png?1503974552",
      "media-file-name": "test.png",
      "media-file-size": 1024,
      "media-updated-at": "2017-08-29T10:42:32.965+08:00",
      "width": 0,
      "height": 0
    },
    "relationships": {
      "attachable": {
        "links": {
          "self": "http://test.host/api/v2/images/5/relationships/attachable",
          "related": "http://test.host/api/v2/images/5/attachable"
        }
      }
    }
  }
}

Params

Param name Description
id
required

Image ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hyphen(-) with no leading or trailing space.