Skip to main content
POST
/
api
/
v1
/
redirects
Create Redirect
curl --request POST \
  --url https://api.launchmystore.io/api/v1/redirects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "path": "<string>",
  "target": "<string>"
}
'
{
  "success": true,
  "data": {
    "id": "redir_new123",
    "path": "/promo",
    "target": "/collections/summer-sale",
    "created_at": "2024-01-20T14:30:00Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Body Parameters

path
string
required
Source path (e.g., “/old-page”)
target
string
required
Destination URL (relative or absolute)

Response

{
  "success": true,
  "data": {
    "id": "redir_new123",
    "path": "/promo",
    "target": "/collections/summer-sale",
    "created_at": "2024-01-20T14:30:00Z"
  }
}
Redirects are 301 permanent redirects. Use for SEO-friendly URL changes.