BigCommerce Redirects API

The Redirects API from BigCommerce — 4 operation(s) for redirects.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /redirects List legacy redirect URLs (deprecated) · BigCommerce Get All Redirects #
Ask an LLM
“Can I still list all redirect URLs with the deprecated redirects endpoint?”
“Which legacy call returns every redirect path and forward?”
Tell an agent
List all legacy redirect URLs.
Show the first {limit} redirects from the deprecated redirects list.
POST /redirects Create a legacy redirect URL (deprecated) · BigCommerce Create a Redirect #
Ask an LLM
“Can I still create a redirect URL with the deprecated redirects endpoint?”
“What fields are required to add a legacy redirect?”
Tell an agent
Create a legacy redirect from {path} to {forward}.
Add a new redirect URL {path} forwarding to {forward} using the deprecated endpoint.
DELETE /redirects Delete all legacy redirects (deprecated) · BigCommerce Delete All Redirects #
Ask an LLM
“Can I still delete every redirect URL at once with the deprecated endpoint?”
“Is there a bulk delete for legacy redirects?”
Tell an agent destructive · confirm first
Delete all legacy redirect URLs.
Remove every redirect from the deprecated redirects list.
GET /redirects/{id} Get one legacy redirect URL (deprecated) · BigCommerce Get a Redirect #
Ask an LLM
“Can I still fetch a single redirect URL with the deprecated endpoint?”
“What does the legacy redirects call return for one redirect?”
Tell an agent
Get legacy redirect {id}.
Show the {id}th redirect from the deprecated redirects list.
PUT /redirects/{id} Update a legacy redirect URL (deprecated) · BigCommerce Update a Redirect #
Ask an LLM
“Can I still update a redirect URL with the deprecated endpoint?”
“What fields must I send to change a legacy redirect?”
Tell an agent
Update legacy redirect {id} to forward from {path} to {forward}.
Change the {id}th redirect in the deprecated list to {path} → {forward}.
DELETE /redirects/{id} Delete one legacy redirect (deprecated) · BigCommerce Delete a Redirect #
Ask an LLM
“Can I still delete a single redirect URL with the deprecated endpoint?”
“How do I remove one redirect from the legacy redirects list?”
Tell an agent destructive · confirm first
Delete legacy redirect {id}.
Remove the {id}th redirect from the deprecated redirects list.
GET /redirects/count Count legacy redirects (deprecated) · BigCommerce Get a Count of Redirects #
Ask an LLM
“Can I still count redirect URLs with the deprecated endpoint?”
“How many redirects exist in the legacy redirects list?”
Tell an agent
Count the legacy redirect URLs.
Tell me how many redirects are in the deprecated list.
GET /storefront/redirects List redirects across all storefronts · BigCommerce Get Redirects #
Ask an LLM
“Which call returns all 301 redirects across every storefront?”
“Can I search storefront redirects by keyword?”
Tell an agent
List all storefront redirects.
Find storefront redirects matching {keyword}.
PUT /storefront/redirects Upsert redirects across all storefronts · BigCommerce Upsert Redirects #
Ask an LLM
“How do I add or update redirects across every storefront at once?”
“Can I upsert redirect data for all storefronts in one call?”
Tell an agent
Upsert the redirect data in the storefront redirects endpoint.
Create or update storefront redirects with this payload.
DELETE /storefront/redirects Delete redirects · BigCommerce Delete Redirects #
Ask an LLM
“How do I remove several redirects from my store?”
“Can I delete all redirects for one site?”
Tell an agent destructive · confirm first
Delete redirects {id}.
Delete all redirects for site {site_id}.

Documentation

📖
Documentation
https://docs.bigcommerce.com/developer
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/abandoned-carts
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/carts
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/brands
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/categories
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/category-trees
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/product-modifiers
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/product-variant-options
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/product-variants
📖
APIReference
https://developer.bigcommerce.com/docs/rest-catalog/products
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/channels
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/checkouts
📖
APIReference
https://developer.bigcommerce.com/docs/rest-content/store-content
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/currencies
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/customers
📖
APIReference
https://developer.bigcommerce.com/docs/rest-content/email-templates
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/geography
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/orders
📖
APIReference
https://developer.bigcommerce.com/docs/rest-content/pages
📖
APIReference
https://developer.bigcommerce.com/docs/rest-payments/tokens
📖
APIReference
https://developer.bigcommerce.com/docs/rest-payments/methods-deprecated
📖
APIReference
https://developer.bigcommerce.com/docs/rest-payments/processing
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/settings
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/shipping-v2
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/channels/site
📖
APIReference
https://developer.bigcommerce.com/docs/rest-management/store-information
📖
APIReference
https://developer.bigcommerce.com/docs/rest-storefront/carts
📖
APIReference
https://developer.bigcommerce.com/docs/rest-storefront/checkouts
📖
APIReference
https://developer.bigcommerce.com/docs/rest-storefront/customers
📖
APIReference
https://developer.bigcommerce.com/docs/rest-storefront/orders
📖
APIReference
https://developer.bigcommerce.com/docs/rest-storefront/subscriptions
📖
APIReference
https://docs.bigcommerce.com/developer/docs/integrations/webhooks/overview
📖
APIReference
https://developer.bigcommerce.com/docs/rest-content/widgets

Specifications

Schemas & Data

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/bigcommerce:bigcommerce-redirects-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bigcommerce-redirects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bigcommerce Redirects API
  version: ''
  contact:
    name: BigCommerce
    url: https://www.bigcommerce.com
    email: support@bigcommerce.com
  termsOfService: https://www.bigcommerce.com/terms
  description: 'Operations tagged Redirects across 2 of this provider''s published API definitions: content-openapi-original.yml, redirects-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.bigcommerce.com/stores/{store_hash}/v2
  variables:
    store_hash:
      default: store_hash
      description: Permanent ID of the BigCommerce store.
  description: BigCommerce API Gateway
- url: https://api.bigcommerce.com/stores/{store_hash}/v3
  variables:
    store_hash:
      default: store_hash
      description: Permanent ID of the BigCommerce store.
  description: BigCommerce API Gateway
security:
- X-Auth-Token: []
tags:
- name: Redirects
paths:
  /redirects:
    parameters:
    - $ref: '#/components/parameters/Accept'
    get:
      deprecated: true
      tags:
      - Redirects
      summary: BigCommerce Get All Redirects
      description: 'Returns a list all *Redirect URLs*.


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To get redirect URLs, use Redirects V3ʼs Get redirects endpoint.'
      operationId: getRedirects
      parameters:
      - name: page
        in: query
        description: Filter param.
        schema:
          type: integer
      - name: limit
        in: query
        description: Filter param.
        schema:
          type: integer
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/redirect'
            Response Schema:
              example: ''
    post:
      tags:
      - Redirects
      summary: BigCommerce Create a Redirect
      description: 'Creates a *Redirect URL*.


        **Required Fields**

        * path

        * forward


        **Read Only**

        * url


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To upsert new redirect data, use Redirects V3ʼs Upsert redirects endpoint.'
      operationId: createRedirect
      parameters:
      - $ref: '#/components/parameters/ContentType'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/redirect'
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/redirect'
              example:
                id: 3
                path: /mens_clothing
                forward:
                  type: category
                  ref: 3
                url: http://store.example.com/mens
    delete:
      deprecated: true
      tags:
      - Redirects
      summary: BigCommerce Delete All Redirects
      description: 'By default, it deletes all *Redirect URLs* in a store.


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To delete redirect URLs, use Redirects V3ʼs Delete redirects endpoint.'
      operationId: deleteRedirects
      responses:
        '204':
          description: ''
          content: {}
    servers:
    - url: https://api.bigcommerce.com/stores/{store_hash}/v2
      variables:
        store_hash:
          default: store_hash
          description: Permanent ID of the BigCommerce store.
      description: BigCommerce API Gateway
  /redirects/{id}:
    parameters:
    - $ref: '#/components/parameters/Accept'
    - name: id
      in: path
      description: ID of the redirect URL.
      required: true
      schema:
        type: integer
    get:
      deprecated: true
      tags:
      - Redirects
      summary: BigCommerce Get a Redirect
      description: 'Returns a single *Redirect URL*.


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To get a redirect URL, use Redirects V3ʼs Get redirects endpoint.'
      operationId: getRedirect
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/redirect'
              example:
                id: 1
                path: /smith-journal-13/
                forward:
                  type: product
                  ref: 111
                url: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
    put:
      tags:
      - Redirects
      summary: BigCommerce Update a Redirect
      description: 'Updates a *Redirect URL*.


        **Required Fields**

        * path

        * forward


        **Read Only Fields**

        * url


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To update redirect data, use Redirects V3ʼs Upsert redirects endpoint.'
      operationId: updateRedirect
      parameters:
      - $ref: '#/components/parameters/ContentType'
      requestBody:
        content:
          application/json:
            schema:
              title: Redirect
              required:
              - forward
              - path
              type: object
              properties:
                id:
                  type: integer
                  description: Numeric ID of the redirect.
                  example: 1
                path:
                  type: string
                  description: The path from which to redirect.
                  example: /smith-journal-13/
                forward:
                  type: object
                  properties:
                    type:
                      type: string
                      description: 'The type of redirect. If it is a manual redirect then type will always be manual. Dynamic redirects will have the type of the page. Such as product or category.

                        '
                      example: product
                    ref:
                      type: string
                      description: Reference of the redirect. Dynamic redirects will have the category or product number. Manual redirects will have the url that is being directed to.
                      example: '111'
                url:
                  type: string
                  description: URL of the redirect. READ-ONLY.
                  readOnly: true
                  example: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
              example:
                id: 1
                path: /smith-journal-13/
                forward:
                  type: product
                  ref: '111'
                url: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/redirect'
              example:
                id: 1
                path: /smith-journal-13/
                forward:
                  type: product
                  ref: 111
                url: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
    delete:
      tags:
      - Redirects
      summary: BigCommerce Delete a Redirect
      description: 'Deletes a *Redirect URL*.


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To delete a redirect URL, use Redirects V3ʼs Delete redirects endpoint.'
      operationId: deleteRedirect
      responses:
        '204':
          description: ''
          content: {}
    servers:
    - url: https://api.bigcommerce.com/stores/{store_hash}/v2
      variables:
        store_hash:
          default: store_hash
          description: Permanent ID of the BigCommerce store.
      description: BigCommerce API Gateway
  /redirects/count:
    parameters:
    - $ref: '#/components/parameters/Accept'
    get:
      deprecated: true
      tags:
      - Redirects
      summary: BigCommerce Get a Count of Redirects
      description: 'Gets a count of *Redirect URLs* in a store.


        > #### Warning

        > **Deprecated**

        > * This API operation is deprecated. Avoid using this API operation if possible. It will be removed in a future version.

        > * To get a count of redirects, use the `meta` object data returned with the Redirects V3ʼs Get redirects endpoint.'
      operationId: getRedirectsCount
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/count_Response'
              example:
                count: 27
    servers:
    - url: https://api.bigcommerce.com/stores/{store_hash}/v2
      variables:
        store_hash:
          default: store_hash
          description: Permanent ID of the BigCommerce store.
      description: BigCommerce API Gateway
  /storefront/redirects:
    parameters:
    - $ref: '#/components/parameters/Accept'
    get:
      tags:
      - Redirects
      summary: BigCommerce Get Redirects
      description: Returns a collection of the store's 301 redirects across all sites.
      operationId: getStorefrontRedirects
      parameters:
      - name: site_id
        in: query
        description: Filters items by `site_id`.
        schema:
          type: integer
      - name: id:in
        in: query
        description: Filters items by redirect `id`. Also accepts comma-separated values to filter for multiple redirects.
        style: form
        explode: false
        schema:
          type: array
          items:
            type: string
      - name: limit
        in: query
        description: Controls the number of items to return per page.
        schema:
          type: integer
      - name: page
        in: query
        description: Specifies the page number in a limited (paginated) list of items. Used to paginate large collections.
        schema:
          type: integer
      - name: sort
        in: query
        description: 'Field name to sort by. Note: Since redirect `id` increments when new redirects are added, you can use that field to sort by redirect create date.

          '
        schema:
          type: string
          enum:
          - from_path
          - type
          - site_id
          - id
      - name: direction
        in: query
        description: Sort direction. Acceptable values are `asc`, `desc`.
        schema:
          type: string
          enum:
          - asc
          - desc
      - name: include
        in: query
        description: Indicates whether to include redirect sub-resources. Only `to_url` is supported.
        schema:
          type: string
          enum:
          - to_url
      - name: keyword
        in: query
        description: Filters redirects by the specified keyword. Will only search from the beginning of a URL path. For example, `blue` will match `/blue` and `/blue-shirt` ,  **not** `/royal-blue-shirt`.
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/301RedirectRead'
                  meta:
                    $ref: '#/components/schemas/MetaPaginationObject'
      x-operation-id-source: normalized
      x-operation-id-original: getRedirects
    put:
      tags:
      - Redirects
      summary: BigCommerce Upsert Redirects
      description: Upserts new redirect data across all storefronts.
      operationId: upsertRedirects
      parameters:
      - $ref: '#/components/parameters/ContentType'
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/301RedirectUpsert'
        required: false
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/301RedirectRead'
                  meta:
                    $ref: '#/components/schemas/MetaPaginationObject'
    delete:
      tags:
      - Redirects
      summary: BigCommerce Delete Redirects
      description: Deletes redirects.
      operationId: deleteStorefrontRedirects
      parameters:
      - name: id:in
        in: query
        description: List of Redirect IDs to delete explicitly.
        required: true
        style: form
        explode: false
        schema:
          type: array
          items:
            type: integer
      - name: site_id
        in: query
        description: Site ID provided to delete all redirects for a given Site.
        schema:
          type: integer
      responses:
        '204':
          description: No Content
          content: {}
      x-operation-id-source: normalized
      x-operation-id-original: deleteRedirects
    servers:
    - url: https://api.bigcommerce.com/stores/{store_hash}/v3
      variables:
        store_hash:
          default: store_hash
          description: Permanent ID of the BigCommerce store.
      description: BigCommerce API Gateway
components:
  schemas:
    count_Response:
      title: count_Response
      type: object
      properties:
        count:
          type: number
          description: ''
          example: 27
      example:
        count: 27
      x-internal: false
    forward:
      title: forward
      type: object
      x-internal: false
      properties:
        type:
          type: string
          description: The type of redirect. If it is a `manual` redirect then type will always be manual. Dynamic redirects will have the type of the page. Such as product or category.
          example: product
        ref:
          type: integer
          description: Reference of the redirect. Dynamic redirects will have the category or product number. Manual redirects will have the url that is being directed to.
          example: 111
    redirect:
      title: redirect
      required:
      - forward
      - path
      type: object
      properties:
        id:
          type: integer
          description: Numeric ID of the redirect.
          example: 1
        path:
          type: string
          description: The path from which to redirect.
          example: /smith-journal-13/
        forward:
          $ref: '#/components/schemas/forward'
        url:
          type: string
          description: URL of the redirect. READ-ONLY.
          readOnly: true
          example: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
      example:
        id: 1
        path: /smith-journal-13/
        forward:
          type: product
          ref: 111
        url: http://store-store_hash.mybigcommerce.com/towels/bath-towels/hand-towels/
      x-internal: false
    301RedirectUpsert:
      required:
      - from_path
      - site_id
      type: object
      properties:
        from_path:
          type: string
          example: /old-url/
        site_id:
          type: integer
        to:
          $ref: '#/components/schemas/RedirectTo'
      description: Data necessary to create or update a redirect. If there’s a conflict on the from_path and site_id, the redirect will be overwritten with new data.
    RedirectTo:
      title: RedirectTo
      type: object
      properties:
        type:
          type: string
          enum:
          - product
          - brand
          - category
          - page
          - post
          - url
        entity_id:
          type: integer
        url:
          maxLength: 2048
          type: string
          example: /new-url/
    301RedirectRead:
      type: object
      description: Full detail of a Redirect, optionally including the full destination URL.
      properties:
        id:
          type: integer
        site_id:
          type: integer
        from_path:
          type: string
          example: /old-url
        to:
          $ref: '#/components/schemas/RedirectTo'
        to_url:
          type: string
          description: Full destination URL for the redirect. Must be explicitly included via URL parameter.
          format: uri
          example: https://store-domain.com/new-url
    MetaPaginationObject:
      type: object
      properties:
        pagination:
          type: object
          properties:
            total:
              minimum: 0
              type: integer
              example: 246
            count:
              minimum: 0
              type: integer
              example: 5
            per_page:
              minimum: 0
              type: integer
              example: 5
            current_page:
              minimum: 1
              type: integer
              example: 1
            total_pages:
              minimum: 0
              type: integer
              example: 50
            links:
              type: object
              properties:
                next:
                  type: string
                  example: ?limit=5&page=2
                current:
                  type: string
                  example: ?limit=5&page=1
  parameters:
    ContentType:
      name: Content-Type
      in: header
      required: true
      description: The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the request body.
      schema:
        type: string
        default: application/json
    Accept:
      name: Accept
      in: header
      required: true
      description: The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body.
      schema:
        type: string
        default: application/json
  securitySchemes:
    X-Auth-Token:
      name: X-Auth-Token
      description: '### OAuth scopes


        | UI Name | Permission | Parameter |

        |:--|:--|:-|

        |  Content | modify | `store_v2_content` |

        |  Content | read-only | `store_v2_content_read_only` |


        ### Authentication header


        | Header | Argument | Description |

        |:-|:|:|

        | `X-Auth-Token` | `access_token` | For more about API accounts that generate `access_token`s, see our [Guide to API Accounts](/docs/start/authentication/api-accounts). |


        ### Further reading


        For example requests and more information about authenticating BigCommerce APIs, see [Authentication and Example Requests](/docs/start/authentication#x-auth-token-header-example-requests).


        For more about BigCommerce OAuth scopes, see our [Guide to API Accounts](/docs/start/authentication/api-accounts#oauth-scopes).


        For a list of API status codes, see [API Status Codes](/docs/start/about/status-codes).'
      type: apiKey
      in: header
x-refined-from:
- content-openapi-original.yml
- redirects-openapi-original.yml