Zum Hauptinhalt springen
GET
/
cms
/
v3
/
url-redirects
/
現在のリダイレクトを取得
curl --request GET \
  --url https://api.hubapi.com/cms/v3/url-redirects/ \
  --header 'Authorization: Bearer <token>'
{
  "total": 2,
  "results": [
    {
      "id": "3212223134",
      "createdAt": "2017-07-24T17:24:09.141Z",
      "updatedAt": "2017-07-24T17:24:09.141Z",
      "routePrefix": "http://test.hs-sites.com/(?P<page_slug>.*)",
      "destination": "http://www.example.online/{page_slug}",
      "redirectStyle": 301,
      "isOnlyAfterNotFound": true,
      "isMatchFullUrl": true,
      "isMatchQueryString": false,
      "isPattern": false,
      "isTrailingSlashOptional": true,
      "isProtocolAgnostic": true,
      "precedence": 3
    },
    {
      "id": "3212242073",
      "createdAt": "2017-07-25T15:42:06.410Z",
      "updatedAt": "2017-07-25T15:42:06.410Z",
      "routePrefix": "/mytest/(?P<page_slug>.*)",
      "destination": "/newtest/{page_slug}",
      "redirectStyle": 301,
      "isOnlyAfterNotFound": true,
      "isMatchFullUrl": true,
      "isMatchQueryString": false,
      "isPattern": false,
      "isTrailingSlashOptional": true,
      "isProtocolAgnostic": true,
      "precedence": 999999993
    }
  ],
  "paging": {
    "next": {
      "after": "Mg%3D%3D",
      "link": "https://api.hubspot.com/cms/v3/url-redirects?after=Mg%3D%3D"
    }
  }
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter
この API には、次のいずれかのスコープが必要です。
content

Authorizations

Authorization
string
header
required

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

Query Parameters

createdAt
string<date-time>

この日付ちょうどに作成されたリダイレクトのみを返します。

createdAfter
string<date-time>

この日付より後に作成されたリダイレクトのみを返します。

createdBefore
string<date-time>

この日付より前に作成されたリダイレクトのみを返します。

updatedAt
string<date-time>

この日付ちょうどに最後に更新されたリダイレクトのみを返します。

updatedAfter
string<date-time>

この日付より後に最後に更新されたリダイレクトのみを返します。

updatedBefore
string<date-time>

この日付より前に最後に更新されたリダイレクトのみを返します。

sort
string[]
after
string

最後に正常に読み取られたリソースのページ操作カーソルトークンは、より多くの結果を含むページ付きレスポンスのpaging.next.after JSONプロパティーとして返されます。

limit
integer

ページあたりの結果の最大数

archived
boolean

アーカイブ済みの結果のみを返すかどうか。

Response

successful operation

total
integer
required
results
object[]
required
paging
object
I