This skill helps manage Read the Docs redirects via the API, enabling listing, creating, updating, and deleting project redirects efficiently.
npx playbooks add skill readthedocs/skills --skill readthedocs-redirects-manager
Use the Read the Docs API to manage custom redirects for a project.
RTD_HOSThttps://app.readthedocs.orghttps://app.readthedocs.comRTD_TOKEN (preferred) or provided by the userFields commonly used in redirect requests/responses:
from_url: source path (e.g., /old-page/)to_url: destination path or URL (e.g., /new-page/)type: redirect type (e.g., page, exact, clean_url_to_html, html_to_clean_url)http_status: HTTP status code (commonly 301 or 302)description: optional noteenabled: true/falseforce: apply even if the page exists (availability depends on plan)position: priority order (lower is higher priority)GET /api/v3/projects/{slug}/redirects/
curl -s -H "Authorization: Token $RTD_TOKEN" \
"${RTD_HOST}/api/v3/projects/project-slug/redirects/"
POST /api/v3/projects/{slug}/redirects/
curl -s -X POST \
-H "Authorization: Token $RTD_TOKEN" \
-H "Content-Type: application/json" \
"${RTD_HOST}/api/v3/projects/project-slug/redirects/" \
-d '{
"from_url": "/old-page/",
"to_url": "/new-page/",
"type": "page",
"http_status": 301,
"description": "Move old page to new location",
"enabled": true
}'
PUT /api/v3/projects/{slug}/redirects/{id}/
curl -s -X PUT \
-H "Authorization: Token $RTD_TOKEN" \
-H "Content-Type: application/json" \
"${RTD_HOST}/api/v3/projects/project-slug/redirects/123/" \
-d '{
"from_url": "/old-page/",
"to_url": "/new-page/",
"type": "page",
"http_status": 302,
"description": "Temporary redirect during migration",
"enabled": true
}'
DELETE /api/v3/projects/{slug}/redirects/{id}/
curl -s -X DELETE \
-H "Authorization: Token $RTD_TOKEN" \
"${RTD_HOST}/api/v3/projects/project-slug/redirects/123/"
page redirects for version-agnostic moves and exact for version/language-specific URLs.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.