Remove links from a group
curl --request POST \
--url https://api.teasy.link/v1/groups/{id}/unassign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"link_ids": [
"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c",
"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10"
]
}
'import requests
url = "https://api.teasy.link/v1/groups/{id}/unassign"
payload = { "link_ids": ["lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c", "rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10"] }
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({
link_ids: ['lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c', 'rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10']
})
};
fetch('https://api.teasy.link/v1/groups/{id}/unassign', 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/groups/{id}/unassign",
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([
'link_ids' => [
'lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c',
'rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10'
]
]),
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/groups/{id}/unassign"
payload := strings.NewReader("{\n \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\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/groups/{id}/unassign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teasy.link/v1/groups/{id}/unassign")
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 \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "bulk_unassign_result",
"failed_count": 1,
"unassigned_count": 2,
"unassigned": [
{
"index": 123,
"data": {
"id": "lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c",
"object": "landing",
"title": "Kate",
"slug": "kate",
"url": "https://teasy.link/kate",
"is_active": true,
"note": "<string>",
"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"
}
]
}
}{
"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"
}
]
}
}Groups
Unassign from Group (Bulk)
The group must be yours and must be the one the links belong to — otherwise the request is a way to strip any group from your links.
POST
/
v1
/
groups
/
{id}
/
unassign
Remove links from a group
curl --request POST \
--url https://api.teasy.link/v1/groups/{id}/unassign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"link_ids": [
"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c",
"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10"
]
}
'import requests
url = "https://api.teasy.link/v1/groups/{id}/unassign"
payload = { "link_ids": ["lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c", "rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10"] }
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({
link_ids: ['lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c', 'rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10']
})
};
fetch('https://api.teasy.link/v1/groups/{id}/unassign', 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/groups/{id}/unassign",
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([
'link_ids' => [
'lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c',
'rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10'
]
]),
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/groups/{id}/unassign"
payload := strings.NewReader("{\n \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\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/groups/{id}/unassign")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.teasy.link/v1/groups/{id}/unassign")
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 \"link_ids\": [\n \"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c\",\n \"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"object": "bulk_unassign_result",
"failed_count": 1,
"unassigned_count": 2,
"unassigned": [
{
"index": 123,
"data": {
"id": "lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c",
"object": "landing",
"title": "Kate",
"slug": "kate",
"url": "https://teasy.link/kate",
"is_active": true,
"note": "<string>",
"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"
}
]
}
}{
"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.
Path Parameters
Example:
"grp_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
Body
application/json
Landing pages and redirects may be mixed: the prefix tells them apart.
Required array length:
1 - 100 elementsExample:
[
"lnd_5aec1b2c3d4e5f6a7b8c9d0e1f2a3b4c",
"rdr_9f2c5a4b7d4c31a2f86e0d91b3c7aa10"
]
⌘I