List links of the token's workspace, newest first
curl --request GET \
--url https://app.utmkit.co/api/v1/links \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.utmkit.co/api/v1/links"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.utmkit.co/api/v1/links', 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://app.utmkit.co/api/v1/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.utmkit.co/api/v1/links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.utmkit.co/api/v1/links")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.utmkit.co/api/v1/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"android_url": "<string>",
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"api_token_id": 123,
"user_id": 123
},
"destination": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"id": 123,
"ios_url": "<string>",
"note": "<string>",
"qr_url": "<string>",
"short_code": "<string>",
"short_url": "<string>",
"state": "live",
"tags": [
{
"color": "gray",
"name": "<string>"
}
],
"utm_campaign": "<string>",
"utm_content": "<string>",
"utm_medium": "<string>",
"utm_source": "<string>",
"utm_term": "<string>"
}
],
"next_after": 123
}Links
List links of the token's workspace, newest first
Requires a token with the links:read permission.
GET
/
api
/
v1
/
links
List links of the token's workspace, newest first
curl --request GET \
--url https://app.utmkit.co/api/v1/links \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.utmkit.co/api/v1/links"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.utmkit.co/api/v1/links', 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://app.utmkit.co/api/v1/links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.utmkit.co/api/v1/links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.utmkit.co/api/v1/links")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.utmkit.co/api/v1/links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"android_url": "<string>",
"campaign_id": 123,
"created_at": "2023-11-07T05:31:56Z",
"created_by": {
"api_token_id": 123,
"user_id": 123
},
"destination": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"id": 123,
"ios_url": "<string>",
"note": "<string>",
"qr_url": "<string>",
"short_code": "<string>",
"short_url": "<string>",
"state": "live",
"tags": [
{
"color": "gray",
"name": "<string>"
}
],
"utm_campaign": "<string>",
"utm_content": "<string>",
"utm_medium": "<string>",
"utm_source": "<string>",
"utm_term": "<string>"
}
],
"next_after": 123
}Authorizations
utmk_, minted on /tokens
Query Parameters
search string — free terms and key:value filters (spec 042); the keys are domain, code, tag, campaign (the container's name), state (live|pending|withdrawn), destination (unreachable|reachable), channel (misfiled|ok — where Google Analytics 4 will file the clicks against where the values were aiming), utm_source, utm_medium, utm_campaign, utm_term, utm_content; quote a value with spaces
Maximum string length:
200cursor — id of the last link seen
Required range:
x <= 100