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

# List URL redirects

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Returns every URL redirect on the app's published site.

Each rule sends visitors from one path to another with a 301, which search engines treat as permanent. Read `id` here to update or delete a rule.

An app can hold up to 50 rules, and [Create URL redirect](/api-reference/create-url-redirect) rejects the 51st.

<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time.</Warning>

<Note>This endpoint accepts a personal API key. Workspace API keys are not authorized for it and are rejected with a 403.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json get /api/apps/{app_id}/url-redirects
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - ApiKeyAuth: []
paths:
  /api/apps/{app_id}/url-redirects:
    get:
      summary: List URL redirects
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Returns every URL redirect on the app's published site.


        Each rule sends visitors from one path to another with a 301, which
        search engines treat as permanent. Read `id` here to update or delete a
        rule.


        An app can hold up to 50 rules, and [Create URL
        redirect](/api-reference/create-url-redirect) rejects the 51st.


        <Warning>The response includes fields beyond the ones documented here.
        Don't rely on undocumented response fields, as they can change at any
        time.</Warning>


        <Note>This endpoint accepts a personal API key. Workspace API keys are
        not authorized for it and are rejected with a 403.</Note>
      operationId: list_url_redirects_api_apps__app_id__url_redirects_get
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app whose URL redirects to manage.
            title: App Id
          description: ID of the app whose URL redirects to manage.
          example: 6820f3a4e7b91d003c45a1f2
      responses:
        '200':
          description: The app's URL redirects.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UrlRedirectResource'
                title: UrlRedirects
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have access to this app, or you used a workspace API key.
            These endpoints take a personal API key.
        '404':
          description: App not found.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UrlRedirectResource:
      properties:
        id:
          type: string
          title: Id
          description: >-
            ID of the redirect. Pass it as `redirect_id` to [Update URL
            redirect](/api-reference/update-url-redirect) and [Delete URL
            redirect](/api-reference/delete-url-redirect).
          example: 68c2d1e5f3b8a4216e9b5583
        source_path:
          type: string
          title: Source Path
          description: >-
            The path visitors request, normalized: no trailing slash,
            percent-escapes decoded.
          example: /old-pricing
        target_path:
          type: string
          title: Target Path
          description: >-
            Where the visitor is sent. Either an internal path or an absolute
            `https://` URL on another site.
          example: /pricing
        match_type:
          $ref: '#/components/schemas/UrlRedirectMatchType'
          description: >-
            `single` redirects that exact path. `prefix` redirects the path and
            everything under it, keeping the remainder of the path.
          example: single
      type: object
      required:
        - id
        - source_path
        - target_path
        - match_type
      title: UrlRedirectResource
      description: One 301 redirect rule on the app's published site.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UrlRedirectMatchType:
      type: string
      enum:
        - single
        - prefix
      title: UrlRedirectMatchType
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: api_key
      description: Personal API key.

````