Create redirects in bulk
curl --request POST \
--url https://api.teasy.link/v1/redirects/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"name": "Promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"note": "Autumn mailing",
"domain": "teasy.link",
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"is_active": true,
"antibot_enabled": false
}
]
}
'import requests
url = "https://api.teasy.link/v1/redirects/bulk"
payload = { "items": [
{
"name": "Promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"note": "Autumn mailing",
"domain": "teasy.link",
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"is_active": True,
"antibot_enabled": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
name: 'Promo',
target_url: 'https://onlyfans.com/kate',
slug: 'promo',
note: 'Autumn mailing',
domain: 'teasy.link',
group_id: 'grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d',
is_active: true,
antibot_enabled: false
}
]
})
};
fetch('https://api.teasy.link/v1/redirects/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teasy.link/v1/redirects/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'name' => 'Promo',
'target_url' => 'https://onlyfans.com/kate',
'slug' => 'promo',
'note' => 'Autumn mailing',
'domain' => 'teasy.link',
'group_id' => 'grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d',
'is_active' => true,
'antibot_enabled' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.teasy.link/v1/redirects/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.teasy.link/v1/redirects/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teasy.link/v1/redirects/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "bulk_create_result",
"failed_count": 1,
"created_count": 2,
"created": [
{
"index": 123,
"data": {
"id": "rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"object": "redirect",
"name": "Promo",
"url": "https://teasy.link/promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"is_active": true,
"note": "Autumn mailing",
"antibot_enabled": false,
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"domain": "teasy.link",
"created_at": "2026-08-21T10:00:00Z",
"updated_at": "2026-08-21T10:00:00Z"
}
}
],
"failed": [
{
"index": 3,
"error": {
"code": "invalid_request",
"message": "This address is already taken.",
"value": "promo"
}
}
]
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}Redirects
Create Redirects (Bulk)
Always 200, even when every item failed: a third branch would make the client guess where “partly” ends. Counts as one request against your quota.
POST
/
v1
/
redirects
/
bulk
Create redirects in bulk
curl --request POST \
--url https://api.teasy.link/v1/redirects/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"name": "Promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"note": "Autumn mailing",
"domain": "teasy.link",
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"is_active": true,
"antibot_enabled": false
}
]
}
'import requests
url = "https://api.teasy.link/v1/redirects/bulk"
payload = { "items": [
{
"name": "Promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"note": "Autumn mailing",
"domain": "teasy.link",
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"is_active": True,
"antibot_enabled": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{
name: 'Promo',
target_url: 'https://onlyfans.com/kate',
slug: 'promo',
note: 'Autumn mailing',
domain: 'teasy.link',
group_id: 'grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d',
is_active: true,
antibot_enabled: false
}
]
})
};
fetch('https://api.teasy.link/v1/redirects/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.teasy.link/v1/redirects/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'name' => 'Promo',
'target_url' => 'https://onlyfans.com/kate',
'slug' => 'promo',
'note' => 'Autumn mailing',
'domain' => 'teasy.link',
'group_id' => 'grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d',
'is_active' => true,
'antibot_enabled' => false
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.teasy.link/v1/redirects/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.teasy.link/v1/redirects/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teasy.link/v1/redirects/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"name\": \"Promo\",\n \"target_url\": \"https://onlyfans.com/kate\",\n \"slug\": \"promo\",\n \"note\": \"Autumn mailing\",\n \"domain\": \"teasy.link\",\n \"group_id\": \"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d\",\n \"is_active\": true,\n \"antibot_enabled\": false\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "bulk_create_result",
"failed_count": 1,
"created_count": 2,
"created": [
{
"index": 123,
"data": {
"id": "rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"object": "redirect",
"name": "Promo",
"url": "https://teasy.link/promo",
"target_url": "https://onlyfans.com/kate",
"slug": "promo",
"is_active": true,
"note": "Autumn mailing",
"antibot_enabled": false,
"group_id": "grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d",
"domain": "teasy.link",
"created_at": "2026-08-21T10:00:00Z",
"updated_at": "2026-08-21T10:00:00Z"
}
}
],
"failed": [
{
"index": 3,
"error": {
"code": "invalid_request",
"message": "This address is already taken.",
"value": "promo"
}
}
]
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "Redirect not found.",
"request_id": "req_9f2c5a4b7d4c31a2f86e0d91b3c7aa10",
"details": [
{
"field": "target_url",
"code": "invalid_value",
"message": "target_url must be a valid URL"
}
]
}
}Authorizations
API key issued in the dashboard. Server-side only: never ship it to a browser, and never pass it as a query parameter.
Body
application/json
Each item is validated on its own; one bad item fails only itself. The whole batch counts as a single request against your quota.
Required array length:
1 - 100 elementsShow child attributes
Show child attributes
⌘I