Links API
Every links call: what to send, what comes back, and copy-ready examples.
On this page
List campaigns
GET/campaignsScope: links:read
In the address and headers
limitquery, optional- whole number. 1 or more, 100 or less, starts as 50
cursorquery, optional- text. up to 400 letters
curl "https://api.usetotems.com/v1/campaigns" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [
{
"id": "6f1e80df-3b47-4c0e-9a55-1f2e3d4c5b6a",
"name": "Autumn launch",
"created_at": "2026-12-03T22:57:17.879Z"
}
],
"request_id": "req_..."
}Make a campaign
POST/campaignsScope: links:write
In the address and headers
Idempotency-Keyheader, optional- text. up to 200 letters
Body
nameneeded- text. up to 100 letters
curl -X POST "https://api.usetotems.com/v1/campaigns" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "Spring launch"
}'{
"data": {
"id": "2a72e8e7-7c15-4e2b-8d44-5b6a7c8d9e0f",
"name": "Spring launch",
"created_at": "2026-12-03T23:43:09.406Z"
},
"request_id": "req_..."
}List links
GET/linksScope: links:read
In the address and headers
limitquery, optional- whole number. 1 or more, 100 or less, starts as 50
cursorquery, optional- text. up to 400 letters
searchquery, optional- text. up to 100 letters
content_idquery, optional- id (UUID)
campaign_idquery, optional- id (UUID)
curl "https://api.usetotems.com/v1/links?limit=50" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [
{
"id": "6f1ebebd-3b47-4c0e-9a55-1f2e3d4c5b6a",
"slug": "demo-client-notes",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://customer.com/apply",
"content_id": "6f1eddac-3b47-4c0e-9a55-1f2e3d4c5b6a",
"content_title": "Client notes letter",
"campaign_id": "6f1e80df-3b47-4c0e-9a55-1f2e3d4c5b6a",
"campaign_name": "Autumn launch",
"person_id": null,
"channel": "email",
"place": "email",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": null,
"created_at": "2026-11-14T22:00:00.000Z",
"owner_id": null,
"clicks": 51,
"short_url": "https://go.usetotems.com/demo-client-notes"
}
],
"next_cursor": "WyIyMDI2LTExLTA5IDIyOjAwOjAwKzAwIiwiNjEwYzQ2ZDAtMWI4MC00YmNhLWFhNjItNWZjYjQ4NWU3MTlmIl0",
"request_id": "req_..."
}Make a link
POST/linksScope: links:write
In the address and headers
Idempotency-Keyheader, optional- text. up to 200 letters
Body
destinationneeded- text. up to 2000 letters
slugoptional- text
domainoptional- text
content_idoptional- id (UUID), or empty
campaign_idoptional- id (UUID), or empty
channeloptional- youtube, instagram, tiktok, x, linkedin, facebook, email, dm, podcast, website, referral, direct, unknown, other
placeoptional- description, pinned_comment, bio, story, post, dm, email, website, other
utmoptional- object
ogoptional- object
open_in_appoptional- true or false
expires_atoptional- UTC time, or empty
expired_tooptional- text
curl -X POST "https://api.usetotems.com/v1/links" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"destination": "https://example.com/apply",
"slug": "client-video",
"channel": "youtube",
"place": "description"
}'{
"data": {
"id": "2a761b19-7c15-4e2b-8d44-5b6a7c8d9e0f",
"slug": "client-video",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://example.com/apply",
"content_id": "2a6e1d9c-7c15-4e2b-8d44-5b6a7c8d9e0f",
"content_title": "How I plan my week (new cut)",
"campaign_id": null,
"campaign_name": null,
"person_id": null,
"channel": "youtube",
"place": "description",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": null,
"created_at": "2026-12-03T23:43:09.578Z",
"owner_id": "2a77b432-7c15-4e2b-8d44-5b6a7c8d9e0f",
"clicks": 0,
"short_url": "https://go.usetotems.com/client-video"
},
"request_id": "req_..."
}Make up to 100 links
POST/links/batchScope: links:write
In the address and headers
Idempotency-Keyheader, optional- text. up to 200 letters
Body
linksneeded- list of any value. up to 100
curl -X POST "https://api.usetotems.com/v1/links/batch" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"links": [
{
"destination": "https://example.com/apply",
"slug": "video-1",
"place": "description"
},
{
"destination": "https://example.com/apply",
"slug": "video-2",
"place": "description"
}
]
}'{
"data": [
{
"index": 0,
"ok": true,
"link": {
"id": "2a7ae664-7c15-4e2b-8d44-5b6a7c8d9e0f",
"slug": "5vydczc",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://example.com/apply",
"content_id": null,
"content_title": null,
"campaign_id": null,
"campaign_name": null,
"person_id": null,
"channel": "other",
"place": "description",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": null,
"created_at": "2026-12-03T23:43:10.140Z",
"owner_id": "2a77b432-7c15-4e2b-8d44-5b6a7c8d9e0f",
"clicks": 0,
"short_url": "https://go.usetotems.com/5vydczc"
}
},
{
"index": 1,
"ok": false,
"error": {
"code": "unsafe_destination",
"message": "That address isn't allowed.",
"field": "destination"
}
}
],
"request_id": "req_..."
}One link
GET/links/{id}Scope: links:read
In the address and headers
idin the path, needed- id (UUID)
The example uses a made-up id. Put one of your own in its place.
curl "https://api.usetotems.com/v1/links/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": {
"id": "6f1ebebd-3b47-4c0e-9a55-1f2e3d4c5b6a",
"slug": "demo-client-notes",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://customer.com/apply",
"content_id": "6f1eddac-3b47-4c0e-9a55-1f2e3d4c5b6a",
"content_title": "Client notes letter",
"campaign_id": "6f1e80df-3b47-4c0e-9a55-1f2e3d4c5b6a",
"campaign_name": "Autumn launch",
"person_id": null,
"channel": "email",
"place": "email",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": null,
"created_at": "2026-11-14T22:00:00.000Z",
"owner_id": null,
"clicks": 51,
"short_url": "https://go.usetotems.com/demo-client-notes"
},
"request_id": "req_..."
}Edit a link
PATCH/links/{id}Scope: links:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
Body
destinationoptional- text. up to 2000 letters
slugoptional- text
content_idoptional- id (UUID), or empty
campaign_idoptional- id (UUID), or empty
channeloptional- youtube, instagram, tiktok, x, linkedin, facebook, email, dm, podcast, website, referral, direct, unknown, other
placeoptional- description, pinned_comment, bio, story, post, dm, email, website, other
utmoptional- object
ogoptional- object
open_in_appoptional- true or false
expires_atoptional- UTC time, or empty
expired_tooptional- text
disabledoptional- true or false
confirm_hostoptional- true or false
The example uses a made-up id. Put one of your own in its place.
curl -X PATCH "https://api.usetotems.com/v1/links/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"destination": "https://example.com/book"
}'{
"data": {
"id": "2a761b19-7c15-4e2b-8d44-5b6a7c8d9e0f",
"slug": "client-video",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://example.com/apply",
"content_id": "2a6e1d9c-7c15-4e2b-8d44-5b6a7c8d9e0f",
"content_title": "How I plan my week (new cut)",
"campaign_id": null,
"campaign_name": null,
"person_id": null,
"channel": "youtube",
"place": "bio",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": null,
"created_at": "2026-12-03T23:43:09.578Z",
"owner_id": "2a77b432-7c15-4e2b-8d44-5b6a7c8d9e0f",
"clicks": 0,
"short_url": "https://go.usetotems.com/client-video"
},
"request_id": "req_..."
}Turn a link off
DELETE/links/{id}Scope: links:write
In the address and headers
idin the path, needed- id (UUID)
Idempotency-Keyheader, optional- text. up to 200 letters
The example uses a made-up id. Put one of your own in its place.
curl -X DELETE "https://api.usetotems.com/v1/links/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a" \
-H "Authorization: Bearer $TOTEMS_KEY" \
-H "Idempotency-Key: $(uuidgen)"{
"data": {
"id": "2a761b19-7c15-4e2b-8d44-5b6a7c8d9e0f",
"slug": "client-video",
"host": "go.usetotems.com",
"domain_id": "00000000-0000-4000-8000-000000000001",
"destination": "https://example.com/apply",
"content_id": "2a6e1d9c-7c15-4e2b-8d44-5b6a7c8d9e0f",
"content_title": "How I plan my week (new cut)",
"campaign_id": null,
"campaign_name": null,
"person_id": null,
"channel": "youtube",
"place": "bio",
"utm": {},
"og": {},
"open_in_app": true,
"expires_at": null,
"disabled_at": "2026-12-03T23:43:10.741Z",
"created_at": "2026-12-03T23:43:09.578Z",
"owner_id": "2a77b432-7c15-4e2b-8d44-5b6a7c8d9e0f",
"clicks": 0,
"short_url": "https://go.usetotems.com/client-video"
},
"request_id": "req_..."
}Clicks on one link
GET/links/{id}/clicksScope: links:read
In the address and headers
idin the path, needed- id (UUID)
limitquery, optional- whole number. 1 or more, 100 or less, starts as 50
cursorquery, optional- text. up to 400 letters
The example uses a made-up id. Put one of your own in its place.
curl "https://api.usetotems.com/v1/links/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a/clicks?limit=50" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [
{
"id": "6f1f3a79-3b47-4c0e-9a55-1f2e3d4c5b6a",
"occurred_at": "2026-12-03T10:19:31.446Z",
"country": "GB",
"device": "phone",
"referrer_host": null
}
],
"next_cursor": "WyIyMDI2LTEyLTAzIDEwOjA2OjA3LjExODg3MiswMCIsImJjMzQ3ZTQ1LWQyNjAtYjVmZi0yNjIyLTVmMjE2MThkM2RlZSJd",
"request_id": "req_..."
}QR code picture
GET/links/{id}/qrScope: links:read
In the address and headers
idin the path, needed- id (UUID)
formatquery, optional- svg, png. starts as svg
The example uses a made-up id. Put one of your own in its place.
curl "https://api.usetotems.com/v1/links/6f1d2c9a-3b47-4c0e-9a55-1f2e3d4c5b6a/qr?format=svg" \
-H "Authorization: Bearer $TOTEMS_KEY"Answers with status 200.
Link domains
GET/domainsScope: links:read
curl "https://api.usetotems.com/v1/domains" \
-H "Authorization: Bearer $TOTEMS_KEY"{
"data": [
{
"id": "00000000-0000-4000-8000-000000000001",
"host": "go.usetotems.com",
"shared": true,
"status": "ok"
}
],
"request_id": "req_..."
}Your answer stays in this browser.