Help Centers
Get a redirect rule by URL
Retrieves a specific redirect rule by its source URL.
The url query parameter is normalized before matching: query parameters and hash fragments are stripped, the hostname is lowercased, and trailing slashes are removed. This is the same normalization applied when creating a redirect rule.
Query Parameters
url(required) - Full absolute URL to look up (http or https)
Response
Returns a redirect rule object with:
id- Unique identifier (MongoDB ObjectId)helpCenterId- Help center this rule belongs tolocale- Locale codefromUrl- Canonical source URL being redirected fromtargetType- "article" or "collection"targetId- ID of the target article or collectioncreatedAt- ISO 8601 timestamp when createdupdatedAt- ISO 8601 timestamp when last updated
Errors
400- Invalid URL format404- No redirect rule exists for the given URL
Respuesta
application/json
Success
Canonical source URL being redirected from (query and hash stripped)
Ejemplo:
https://help.example.com/en/old/getting-startedLocale code for the redirect rule
Opciones disponibles:
ar, am, fa, ht, lo, my, pa, ps, so, tl, ur, he, ta, te, mr, gu, kn, ml, ha, jv, yo, ig, uz, ne, sd, az, si, km, kk, bn, bs, pt-BR, bg, ca, hr, cs, da, nl, en, et, fi, fr, de, el, hi, hu, id, it, ja, ko, lv, lt, ms, mn, nb, pl, pt, ro, ru, sr, zh-CN, sk, sl, es, sw, sv, th, zh-TW, tr, uk, viEjemplo:
enObject type identifier
Opciones disponibles:
redirect_ruleEjemplo:
redirect_ruleType of content the redirect points to
Opciones disponibles:
article, collectionEjemplo:
articleMás en Help Centers
GETList help centersGETGet a help center by IDGETList collectionsPOSTCreate a collection¿Aún necesitas ayuda? Pregunta al equipo