Basic

POST /cms/url-redirects/2026-03/url-mappings

Changed on

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/cms/url-redirects/2026-03/url-mappings
  • Auth
    • HTTP bearer
    • or API key in query parameter hapikey
    • or none

Request body */*

createdstring date-time required

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

destinationstring required

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

idstring required

The unique ID of this URL redirect.

isMatchFullUrlboolean required

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

isMatchQueryStringboolean required

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

isOnlyAfterNotFoundboolean 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.

isPatternboolean required

Whether the routePrefix should match based on pattern.

isProtocolAgnosticboolean required

Whether the routePrefix should match both HTTP and HTTPS protocols.

isTrailingSlashOptionalboolean required

Whether a trailing slash will be ignored.

precedenceinteger required

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

redirectStyleinteger required

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

routePrefixstring required

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

updatedstring date-time required

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

Response

An error occurred.

categorystring required

The error category

contextobject

Context about the error condition

correlationIdstring uuid required

A unique identifier for the request. Include this value with any error reports or support tickets

linksobject

A map of link names to associated URIs containing documentation about the error or recommended remediation steps

messagestring required

A human readable message describing the error along with remediation steps where appropriate

subCategorystring

A specific category that contains more specific detail about the error

Example response

{
  "category": "VALIDATION_ERROR",
  "correlationId": "aeb5f871-7f07-4993-9211-075dc63e7cbf",
  "links": {
    "knowledge-base": "https://www.hubspot.com/products/service/knowledge-base"
  },
  "message": "Invalid input (details will vary based on the error)"
}

Changes

Some revisions have not been checked yet.