Skip to main content
POST
Create Redirect

Authorizations

X-Lightsage-Api-Key
string
header
required

Body

application/json
from_url
string
required

Full https:// address. The old address, on your own site.

Maximum string length: 2000
to_url
string
required

Full https:// address. Where it now redirects.

Maximum string length: 2000
title
string

Defaults to from_url → to_url.

Maximum string length: 300
live_on
string<date>

Day the redirect went live. Defaults to today.

task_id
string

Task this redirect completes, from GET /v2/tasks.

Response

Successful Response

id
string
required

Library redirect ID.

title
string
required
from_url
string
required

The old address, which now redirects.

to_url
string
required

Where the old address now sends visitors and agents.

live_on
string<date> | null

Day the redirect went live.

task_id
string | null
added_at
string | null
updated_at
string | null