Create a redirect rule
POST/v2/help_center/redirect_rules
Creates a new redirect rule in your organization.
The fromUrl is normalized on creation: query parameters and hash fragments are stripped, the hostname is lowercased, and trailing slashes are removed. The fromUrl hostname must match the Help Center’s configured custom domain.
The target article or collection must exist and have a resolvable URL (i.e., a published translation with a slug).
Request Body
Required attributes:
helpCenterId- The ID of the help center this rule belongs tolocale- Locale code used to resolve the target translationfromUrl- The full absolute URL to redirect from (must match the help center’s custom domain)targetType- “article” or “collection”targetId- The ID of the target article or collection
Response
Returns the created redirect rule object.
Errors
400- Invalid request data, fromUrl does not match custom domain, or target not found
Create a redirect rule
curl https://do.featurebase.app/v2/help_center/redirect_rules \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $FEATUREBASE_API_KEY" \
-d '{
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"targetId": "10021362",
"targetType": "article"
}'{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2026-02-11T12:00:00.000Z",
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"object": "redirect_rule",
"targetId": "1234567",
"targetType": "article",
"updatedAt": "2026-02-11T12:00:00.000Z"
}Returns Examples
{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2026-02-11T12:00:00.000Z",
"fromUrl": "https://help.example.com/en/old/getting-started",
"helpCenterId": "ox6qrqprmsuqaunj",
"locale": "en",
"object": "redirect_rule",
"targetId": "1234567",
"targetType": "article",
"updatedAt": "2026-02-11T12:00:00.000Z"
}