You can create a new URL redirect by making a POST request to https://api.intercom.io/help_center/help_centers/{help_center_id}/redirects.
Requires the read_write_help_center_redirects_scope OAuth scope. Set Intercom-Version: Preview.
Intercom API version.
By default, it's equal to the version set in the app package.
The source URL to redirect. Must be an absolute URL within the help center's URL space.
The locale of the target translation (e.g. en, fr). For article targets this selects the ArticleContent variant.
The type of the redirect target.
- The production API serverhttps://api.intercom.io/help_center/help_centers/{help_center_id}/redirects
- The european API serverhttps://api.eu.intercom.io/help_center/help_centers/{help_center_id}/redirects
- The australian API serverhttps://api.au.intercom.io/help_center/help_centers/{help_center_id}/redirects
curl -i -X POST \
https://api.intercom.io/help_center/help_centers/123/redirects \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: Preview' \
-d '{
"from_url": "http://help-center.test/lovelyhelpcenter/old-page",
"locale": "en",
"target_type": "article",
"target_id": "11"
}'redirect created
The type of the object - help_center_redirect.
The source URL that is redirected. An absolute URL within the help center's URL space.
The locale of the redirect's target. For article targets this is the bound translation's locale, which may differ from the requested locale if no translation exists in that locale.
The unique identifier of the target article or collection. For article targets this is the Article ID.
{ "id": "26", "type": "help_center_redirect", "from_url": "http://help-center.test/lovelyhelpcenter/old-page", "locale": "en", "help_center_id": "7", "target_type": "article", "target_id": "11", "created_at": 1781619405, "updated_at": 1781619405 }