← Home
GET/hyax-api/v1/redirects

List redirects

Old addresses on your site and where each one sends visitors. `from` and `to` are paths inside the site, without the domain. `isWildcard` marks a rule whose `from` ends in `/*` and covers a whole section. A redirect with a `postId` follows that post, so its `to` is wherever the post lives now.

Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.

Query parameters

NameRequiredDescription
searchNoOnly redirects whose old or new path contains this text
postIdNoOnly the redirects that lead to this post, whether they were added on the post or on the Redirects page
limitNoDefault 50, max 200
cursorNo`nextCursor` from the previous page

Request

curl -X GET 'https://platform.hyax.com/hyax-api/v1/redirects?limit=10' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Response

{
  "success": true,
  "data": [
    {
      "id": "clx…",
      "from": "/gaming/*",
      "to": "/article/*",
      "statusCode": 301,
      "isPermanent": true,
      "isExternal": false,
      "isWildcard": true,
      "postId": null,
      "postTitle": null,
      "hitCount": 42,
      "lastHitAt": "2025-01-15T12:00:00.000Z",
      "createdAt": "2025-01-10T12:00:00.000Z"
    }
  ],
  "total": 1,
  "nextCursor": null
}