GET /api/v2/assets/:asset_id/history
Get asset history

Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

GET /api/v2/assets/HY2wT3wBW4fR4Me2eX2X/history
200
{
  "history": [
    {
      "account": "test-account",
      "event": "ASSET_ADDED",
      "id": "e52fc3f8-fe9c-4efb-9499-5802e4c475bd",
      "severity": 0,
      "targets": {
        "asset_id": "HY2wT3wBW4fR4Me2eX2X"
      },
      "time": "2021-10-05T09:02:18.916Z",
      "user_id": 293
    }
  ]
}
GET /api/v2/assets/not-found-id/history
404
{
  "error": "asset not found"
}

Params

Param name Description
asset_id
required

Asset ID

Validations:

  • Must be a String

Headers

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

GET /api/v2/projects/:project_id/history
Get project history

Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

GET /api/v2/projects/Io2wT3wBW4fR4Me2jX3B/history
200
{
  "history": [
    {
      "account": "test-account",
      "event": "PROJECT_ADDED",
      "id": "1aa6512b-8dfe-47d8-93c6-1a631809845e",
      "severity": 0,
      "targets": {
        "project_id": "Io2wT3wBW4fR4Me2jX3B"
      },
      "time": "2021-10-05T09:02:24.157Z",
      "user_id": 295
    },
    {
      "account": "test-account",
      "event": "USER_LINKED",
      "id": "88daec98-250f-4b1d-8044-4f4b376a1524",
      "severity": 0,
      "targets": {
        "project_id": "Io2wT3wBW4fR4Me2jX3B",
        "user_id": 295
      },
      "time": "2021-10-05T09:02:24.241Z",
      "user_id": 0
    }
  ]
}
GET /api/v2/projects/not-found-id/history
404
{
  "error": "project not found"
}

Params

Param name Description
project_id
required

Project ID

Validations:

  • Must be a String

Headers

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