Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY

Examples

// Successful request
GET /api/v2/assets/7UhQGdm3p9MJHRBI9Ohu/history/0
200
{
  "history": {
    "results": [
      {
        "id": 29,
        "user_id": 66,
        "event_type": "ASSET_ADDED",
        "created_at": "2023-11-27T09:42:47.222Z",
        "updated_at": "2023-11-27T09:42:47.222Z",
        "event_targets": [
          {
            "target_type": "Asset",
            "target": {
              "id": 25,
              "elasticsearch_id": "7UhQGdm3p9MJHRBI9Ohu",
              "title": "Sample Asset"
            }
          }
        ]
      }
    ],
    "next_cursor": null
  }
}
// If :asset_id is not found
GET /api/v2/assets/-1/history/0
404
{
  "error": "asset not found"
}
// Unprocessable entity
GET /api/v2/assets/mrEAiYVZZIUxLmeHBSFl/history/test
422
{
  "error": "Invalid parameter 'cursor' value \"test\": Invalid cursor"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters