redirect id
1639562002248499321
GET /v1/redirect/{id} HTTP/1.1
Host: api.redirhub.com
Authorization: YOUR_API_KEY
Accept: */*
success
{
"id": "72288a61-034e-4596-80c9-88751cf0a937",
"host": "www.example.com",
"url": "www.example.com",
"file": "www.example.com/*",
"https": true,
"destination": "https://www.google.com",
"destinations": "[]",
"type": "301",
"status": "active",
"forward_path": false,
"forward_query": false,
"created_at": "2023-11-15T15:09:14.000000Z",
"updated_at": "2023-11-15T15:09:14.000000Z"
}
Get all redirects
GET /v1/redirect HTTP/1.1
Host: api.redirhub.com
Authorization: YOUR_API_KEY
Accept: */*
success
{
"data": [
{
"id": "72288a61-034e-4596-80c9-88751cf0a937",
"host": "www.example.com",
"url": "www.example.com",
"file": "www.example.com/*",
"https": true,
"destination": "https://www.google.com",
"destinations": "[]",
"type": "301",
"status": "active",
"forward_path": false,
"forward_query": false,
"created_at": "2023-11-15T15:09:14.000000Z",
"updated_at": "2023-11-15T15:09:14.000000Z"
}
]
}
URL
www.example.com
Destination URL
https://www.google.com
More Destinations
[]
Type
301
whether forwarding slug to destination
false
whether forwarding query params to destination
false
POST /v1/redirect HTTP/1.1
Host: api.redirhub.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"url": "www.example.com",
"destination": "https://www.google.com",
"destinations": "[]",
"type": "301",
"forward_path": false,
"forward_query": false
}
success
{
"data": null
}
redirect id
1639562002248499321
URL
www.example.com
Destination URL
https://www.google.com
More Destinations
[]
Type
301
whether forwarding slug to destination
false
whether forwarding query params to destination
false
PUT /v1/redirect/{id} HTTP/1.1
Host: api.redirhub.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"url": "www.example.com",
"destination": "https://www.google.com",
"destinations": "[]",
"type": "301",
"forward_path": false,
"forward_query": false
}
success
{
"data": null
}