Zum Hauptinhalt springen
GET
/
cms
/
v3
/
audit-logs
/
監査ログをクエリー
curl --request GET \
  --url https://api.hubapi.com/cms/v3/audit-logs/ \
  --header 'Authorization: Bearer <token>'
{
  "paging": {
    "next": {
      "after": "<string>",
      "link": "<string>"
    },
    "prev": {
      "before": "<string>",
      "link": "<string>"
    }
  },
  "results": [
    {
      "objectId": "4065364319",
      "objectName": "My Landing Page",
      "fullName": "John Doe",
      "event": "UPDATED",
      "userId": "1011561",
      "timestamp": "1583792674672",
      "objectType": "LANDING_PAGE"
    }
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Enterprise
この API には、次のいずれかのスコープが必要です。
content

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

after
string

監査ログが返される期間の開始を表すタイムスタンプ

before
string

監査ログが返される期限のタイムスタンプ

eventType
string[]

フィルターとして使用するイベントタイプ(CREATED、UPDATED、PUBLISHED、DELETED、UNPUBLISHED)のカンマ区切りリスト。

limit
integer

返すログの数。

objectId
string[]

フィルターとして使用するオブジェクトIDのカンマ区切りリスト。

objectType
string[]

フィルターとして使用するオブジェクトタイプ(BLOG、LANDING_PAGE、DOMAIN、HUBDB_TABLEなど)のカンマ区切りリスト

sort
string[]

監査ログの並べ替えの方向(並べ替えの基準にできるのはタイムスタンプのみ)。

userId
string[]

フィルターとして使用するユーザーIDのカンマ区切りリスト。

Response

successful operation

The collection of audit logs.

results
object[]
required
paging
object