For the complete documentation index, see llms.txt. This page is also available as Markdown.

Resource History

Operations for searching the history of indexed platform resources.

Get the raw history (ie. events are not sorted) of a resource (for the current month)

get
/resource_history/resource_type={resource_type}/resource_id={resource_id}
Path parameters
resource_typestringRequired

The type of the resource (DISPLAY_AD, EMAIL_TEMPLATE and VIDEO_AD are not yet supported)

resource_idstringRequired

The ID of the resource for which the history is to be fetched (can't be set without resource_type)

Query parameters
organisation_idinteger · int64Required

The organisation in which the search is performed

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/resource_history/resource_type={resource_type}/resource_id={resource_id}
GET /v1/resource_history/resource_type={resource_type}/resource_id={resource_id}?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "resource_type": "text",
    "resource_id": "text",
    "events": [
      {
        "timestamp": "2026-01-01T00:00:00.000Z",
        "user_identification": {
          "user_id": "text",
          "user_agent": "text",
          "user_ipaddress": "text",
          "user_name": "text"
        },
        "event_id": "123e4567-e89b-12d3-a456-426614174000",
        "event_type": "ACTION",
        "alert_code": "text"
      }
    ]
  }
}

Search the history of a resource

get
/resource_history
Query parameters
organisation_idinteger · int64Required

The organisation in which the search is performed

resource_typestringOptional

The type of the resource (DISPLAY_AD, EMAIL_TEMPLATE and VIDEO_AD are not yet supported)

resource_idstringOptional

The ID of the resource for which the history is to be fetched (can't be set without resource_type)

event_typestring · enumOptional

Action ( = edit done by a human user) or Alert ( = alert generated by the platform on a resource)

Possible values:
user_idstringOptional

The ID of the user for which the history is to be fetched

fromstringOptional

Get only events that occurred after this date (Unix timestamp)

tostringOptional

Get only events that occurred before this date (Unix timestamp)

max_resultsinteger · int32Optional

Number of maximum items that shall be returned by this search

Responses
200

Success !

application/json
countintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
get/resource_history
GET /v1/resource_history?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "data": [
    {
      "resource_type": "text",
      "resource_id": "text",
      "events": [
        {
          "timestamp": "2026-01-01T00:00:00.000Z",
          "user_identification": {
            "user_id": "text",
            "user_agent": "text",
            "user_ipaddress": "text",
            "user_name": "text"
          },
          "event_id": "123e4567-e89b-12d3-a456-426614174000",
          "event_type": "ACTION",
          "alert_code": "text"
        }
      ]
    }
  ],
  "count": 1,
  "max_results": 1,
  "first_result": 1,
  "total": 1,
  "status": "ok"
}

Last updated

Was this helpful?