DEV Community Request Redirects API

The request_redirects API from DEV Community — 2 operation(s) for request_redirects.

GitHub OpenAPI

Operations 5

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 /api/admin/request_redirects List request redirects · Retrieve all request redirects (Admin) #
Ask an LLM
“Which request redirects are configured on the platform?”
“Can I see all vanity URL redirects?”
Tell an agent
List all request redirects.
Show request redirects, {per_page} per page.
POST /api/admin/request_redirects Request a redirect for a page · Create a request redirect (Admin) #
Ask an LLM
“How does a page get redirected to a new URL?”
“Can I request a redirect for a blog post that moved?”
Tell an agent
Request a redirect for {original_url} to {destination_url} on {request_domain}.
Set up a redirect from the old page to the new one.
GET /api/admin/request_redirects/{id} Get a request redirect · Retrieve a request redirect's details (Admin) #
Ask an LLM
“What destination does a specific request redirect point to?”
“Can I look up one redirect route by ID?”
Tell an agent
Show request redirect {id}.
Get the destination of redirect {id}.
PATCH /api/admin/request_redirects/{id} Update a request redirect · Update a request redirect (Admin) #
Ask an LLM
“Can I change the destination of an existing request redirect?”
“Is it possible to update a redirect's domain scope?”
Tell an agent
Update request redirect {id} with {request_redirect}.
Change the destination of redirect {id} to {request_redirect}.
DELETE /api/admin/request_redirects/{id} Delete a request redirect · Delete a request redirect (Admin) #
Ask an LLM
“How do I remove a request redirect?”
“Does deleting a redirect stop the routing intercept right away?”
Tell an agent destructive · confirm first
Delete request redirect {id}.
Remove redirect {id} so the path is no longer intercepted.

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/dev-to:dev-to-request-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

dev-to-request-redirects-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Forem API V1 Request Redirects API
  version: 1.0.0
  description: Access Forem articles, users and other resources via API.
servers:
- url: https://dev.to
  description: Production server
security:
- api-key: []
- bearer_auth: []
tags:
- name: request_redirects
paths:
  /api/admin/request_redirects:
    get:
      summary: Retrieve all request redirects (Admin)
      tags:
      - request_redirects
      description: 'Retrieve a list of all request redirects configured on the platform.


        ### Redirects Overview:

        - Redirects map incoming HTTP request paths or domains to specific target destination URLs (301 or 302 redirects).

        - Primarily used for managing vanity URLs, legacy path support, or domain migrations.

        - Requires Administrator privileges.'
      parameters:
      - name: page
        in: query
        required: false
        description: Pagination page index.
        schema:
          type: integer
      - name: per_page
        in: query
        required: false
        description: Number of items to return per page.
        schema:
          type: integer
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RequestRedirect'
      operationId: getApiAdminRequestRedirects
      x-operation-id-source: derived
    post:
      summary: Create a request redirect (Admin)
      tags:
      - request_redirects
      description: 'Create a new request redirect route. Requires Administrator privileges.


        ### Body Parameter Guidelines:

        - **original_url**: The source path (e.g. `/old-page`) to intercept.

        - **destination_url**: The target destination (e.g. `https://myforem.com/new-page`) to redirect users to.

        - **request_domain**: The domain scope (e.g. `dev.to`) where this redirect rule applies.'
      parameters: []
      responses:
        '201':
          description: created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestRedirect'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                request_redirect:
                  type: object
                  properties:
                    original_url:
                      type: string
                    destination_url:
                      type: string
                    request_domain:
                      type: string
                  required:
                  - original_url
                  - destination_url
                  - request_domain
        description: Redirect routing parameters.
      operationId: postApiAdminRequestRedirects
      x-operation-id-source: derived
  /api/admin/request_redirects/{id}:
    get:
      summary: Retrieve a request redirect's details (Admin)
      tags:
      - request_redirects
      description: Retrieve details of a single request redirect route by ID. Requires Admin credentials.
      parameters:
      - name: id
        in: path
        required: true
        description: Unique redirect ID.
        schema:
          type: integer
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestRedirect'
      operationId: getApiAdminRequestRedirectsById
      x-operation-id-source: derived
    patch:
      summary: Update a request redirect (Admin)
      tags:
      - request_redirects
      description: Update details (paths or domain scope) of an existing redirect route by ID. Requires Admin credentials.
      parameters:
      - name: id
        in: path
        required: true
        description: Unique redirect ID to update.
        schema:
          type: integer
      responses:
        '200':
          description: successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestRedirect'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                request_redirect:
                  type: object
                  properties:
                    original_url:
                      type: string
                    destination_url:
                      type: string
                    request_domain:
                      type: string
        description: Updated redirect routing parameters.
      operationId: patchApiAdminRequestRedirectsById
      x-operation-id-source: derived
    delete:
      summary: Delete a request redirect (Admin)
      tags:
      - request_redirects
      description: Delete a request redirect route, disabling the routing intercept immediately. Requires Admin credentials.
      parameters:
      - name: id
        in: path
        required: true
        description: Unique redirect ID to delete.
        schema:
          type: integer
      responses:
        '204':
          description: no content
      operationId: deleteApiAdminRequestRedirectsById
      x-operation-id-source: derived
components:
  schemas:
    RequestRedirect:
      description: Representation of a request redirect
      type: object
      properties:
        id:
          type: integer
          format: int64
        original_url:
          type: string
        destination_url:
          type: string
        request_domain:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
      - id
      - original_url
      - destination_url
      - request_domain
      - created_at
      - updated_at
  securitySchemes:
    api-key:
      type: apiKey
      name: api-key
      in: header
      description: "API Key authentication.\n\nAuthentication for some endpoints, like write operations on the\nArticles API require a DEV API key.\n\nAll authenticated endpoints are CORS disabled, the API key is intended for non-browser scripts.\n\n### Getting an API key\n\nTo obtain one, please follow these steps:\n\n  - visit https://dev.to/settings/extensions\n  - in the \"DEV API Keys\" section create a new key by adding a\n    description and clicking on \"Generate API Key\"\n\n    ![obtain a DEV API Key](https://user-images.githubusercontent.com/37842/172718105-bd93664e-76e0-477d-99c4-265dda0b06c5.png)\n\n  - You'll see the newly generated key in the same view\n    ![generated DEV API Key](https://user-images.githubusercontent.com/37842/172718151-e7fe26a0-9937-42e8-96c6-333acdab9e49.png)"
    bearer_auth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Short-lived RS256 RFC 9068 access token issued by the configured delegation service and verified against its configured JWKS. The issuer authorizes the client and requested operation before minting the token; Forem validates the token and resolves its subject and owner to a local user. An invalid token returns 401; an unavailable trust dependency with no usable cached key returns 503.
x-provenance:
  method: harvested
  publisher: DEV Community
  source: https://raw.githubusercontent.com/forem/forem/main/swagger/v1/api_v1.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)