Skip to main content
GET
/
cms
/
v3
/
url-redirects
/
{urlRedirectId}
Get details for a redirect
curl --request GET \
  --url https://api.hubapi.com/cms/v3/url-redirects/{urlRedirectId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "3212223134",
  "createdAt": "2017-07-24T17:24:09.141Z",
  "updatedAt": "2017-07-24T17:24:09.141Z",
  "routePrefix": "http://test.hs-sites.com/(?P<page_slug>.*)",
  "destination": "http://www.example.online/{page_slug}",
  "isOnlyAfterNotFound": true,
  "isMatchFullUrl": true,
  "isMatchQueryString": false,
  "isPattern": false,
  "isTrailingSlashOptional": true,
  "isProtocolAgnostic": true
}

Supported products

Requires one of the following products or higher.
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -Free
Service HubService Hub -Free
Content HubContent Hub -Starter
Data HubData Hub -Free

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

urlRedirectId
string
required

The ID of the target redirect.

Response

successful operation

destination
string
required

The destination URL, where the target URL should be redirected if it matches the routePrefix.

id
string
required

The unique ID of this URL redirect.

isMatchFullUrl
boolean
required

Whether the routePrefix should match on the entire URL, including the domain.

isMatchQueryString
boolean
required

Whether the routePrefix should match on the entire URL path, including the query string.

isOnlyAfterNotFound
boolean
required

Whether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page.

isPattern
boolean
required

Whether the routePrefix should match based on pattern.

isProtocolAgnostic
boolean
required

Whether the routePrefix should match both HTTP and HTTPS protocols.

isTrailingSlashOptional
boolean
required

Whether a trailing slash will be ignored.

precedence
integer<int32>
required

Used to prioritize URL redirection. If a given URL matches more than one redirect, the one with the lower precedence will be used.

redirectStyle
integer<int32>
required

The type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details here.

routePrefix
string
required

The target incoming URL, path, or pattern to match for redirection.

created
string<date-time>

The date and time when the URL mapping was initially created.

updated
string<date-time>

The date and time when the URL mapping was last modified.

Last modified on December 16, 2025