> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.jp/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve redirect details

> IDを基準に1件の既存のURLリダイレクトの詳細が返されます。

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "サポートされる製品",
    description: "次のいずれかの製品またはそれ以上が必要です。",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "無料ツール",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="PROFESSIONAL" salesLevel="FREE" serviceLevel="FREE" cmsLevel="STARTER" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'content'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/cms-url-redirects-v2026-03.json GET /cms/url-redirects/2026-03/{urlRedirectId}
openapi: 3.0.1
info:
  title: URLリダイレクト
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: PROFESSIONAL
    sales: FREE
    service: FREE
    cms: STARTER
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-api-use-case: 1ページを別のページにリダイレクトするか、柔軟なパターン変数を使用して1つのURLを使用するブログ全体をリダイレクトします。
  x-hubspot-introduction: >-
    URLリダイレクトAPIを使用して、トラフィックをHubSpotがホスティングするページまたはブログ記事から任意のURLにリダイレクトします。ページを特定のURLにリダイレクトすることも、柔軟なパターンリダイレクトを使用して、変数を使用する複数のページをリダイレクトすることもできます。HubSpotでのリダイレクトの管理について詳細をご確認ください。
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
paths:
  /cms/url-redirects/2026-03/{urlRedirectId}:
    get:
      tags:
        - Basic
      summary: リダイレクトの詳細を取得
      description: IDを基準に1件の既存のURLリダイレクトの詳細が返されます。
      operationId: get-/cms/url-redirects/2026-03/{urlRedirectId}_getById
      parameters:
        - name: urlRedirectId
          in: path
          description: ターゲットリダイレクトのID。
          required: true
          style: simple
          explode: false
          schema:
            type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UrlMapping'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - content
components:
  schemas:
    UrlMapping:
      required:
        - created
        - destination
        - id
        - isMatchFullUrl
        - isMatchQueryString
        - isOnlyAfterNotFound
        - isPattern
        - isProtocolAgnostic
        - isTrailingSlashOptional
        - precedence
        - redirectStyle
        - routePrefix
        - updated
      type: object
      properties:
        created:
          type: string
          description: URLマッピングが最初に作成された日時。
          format: date-time
        destination:
          type: string
          description: ターゲットURLが「routePrefix」に一致する場合にリダイレクトされる転送先URL。
        id:
          type: string
          description: このURLリダイレクトの固有ID。
        isMatchFullUrl:
          type: boolean
          description: 「routePrefix」がドメインを含めてURL全体で一致する必要があるかどうか。
        isMatchQueryString:
          type: boolean
          description: 「routePrefix」がクエリー文字列を含めてURLパス全体で一致する必要があるかどうか。
        isOnlyAfterNotFound:
          type: boolean
          description: >-
            URLの公開中のページが見つからない場合のみURLリダイレクトマッピングを適用する必要があるかどうか。Falseの場合、URLリダイレクトマッピングは既存のどのページよりも優先されます。
        isPattern:
          type: boolean
          description: パターンに基づいて「routePrefix」が一致する必要があるかどうか。
        isProtocolAgnostic:
          type: boolean
          description: 「routePrefix」がHTTPプロトコルとHTTPSプロトコルの両方に一致する必要があるかどうか。
        isTrailingSlashOptional:
          type: boolean
          description: トレイリングスラッシュが無視されるかどうか。
        precedence:
          type: integer
          description: >-
            URLリダイレクトに優先順位を付けるために使用されます。特定のURLが複数のリダイレクトに一致する場合、優先順位の「低い」URLが使用されます。
          format: int32
        redirectStyle:
          type: integer
          description: >-
            作成するリダイレクトのタイプ。オプションには以下が含まれます：301（永久）、302（一時的）、305（プロキシー）。詳細については、［こちら］（https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page）を参照してください。
          format: int32
        routePrefix:
          type: string
          description: リダイレクトを行うために照合するターゲット受信URL、パス、またはパターン。
        updated:
          type: string
          description: URLマッピングが最後に変更された日時。
          format: date-time
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: リクエストの固有ID。エラー報告またはサポートチケットには必ずこの値を含めてください
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
          example: An error occurred
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            cms-url-redirects-delete: ''
            content: ''

````