Kanorio

API 參考

Redirects

Content Delivery API: GET /redirects

這頁只有英文版。API 參考、Webhook 事件與變更紀錄維持英文,和程式碼裡的欄位名稱、錯誤碼一致。
Base URL https://{site}/api/v1ErrorsPagination

Response 200

  • dataobject[]required
  • data[].sourcePathstringrequired

    Path on the site, starts with /

  • data[].targetUrlstringrequired

    Relative path or absolute URL

  • data[].statusCode301 | 302required
  • data[].source"user" | "system"required
  • data[].localestring | null

    Null for rules that apply in every locale (matched against the path without the locale prefix). A locale code for rules that belong to one locale, such as a changed translated slug or a retired locale prefix: match these against the full path including the prefix and use targetUrl as is.

  • data[].updatedAtstringrequired
  • hasMorebooleanrequired

    True when another page exists; pass nextCursor to fetch it.

  • nextCursorstring | nullrequired

    Cursor for the next page, or null on the last page.

curl -X GET "https://{site}/api/v1/redirects"