Get connection
curl --request GET \
--url https://api.markifact.com/v1/connections/{connection_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.markifact.com/v1/connections/{connection_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.markifact.com/v1/connections/{connection_id}', 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.markifact.com/v1/connections/{connection_id}",
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://api.markifact.com/v1/connections/{connection_id}"
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://api.markifact.com/v1/connections/{connection_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.markifact.com/v1/connections/{connection_id}")
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[
{
"id": "<string>",
"type": "<string>",
"is_private": true,
"display_name": "<string>",
"external_id": "<string>",
"created_at": 123,
"updated_at": 123
}
]{
"detail": "<unknown>"
}Connections
Get connection
Find connections by Markifact connection ID or your external ID.
GET
/
v1
/
connections
/
{connection_id}
Get connection
curl --request GET \
--url https://api.markifact.com/v1/connections/{connection_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.markifact.com/v1/connections/{connection_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.markifact.com/v1/connections/{connection_id}', 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.markifact.com/v1/connections/{connection_id}",
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://api.markifact.com/v1/connections/{connection_id}"
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://api.markifact.com/v1/connections/{connection_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.markifact.com/v1/connections/{connection_id}")
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[
{
"id": "<string>",
"type": "<string>",
"is_private": true,
"display_name": "<string>",
"external_id": "<string>",
"created_at": 123,
"updated_at": 123
}
]{
"detail": "<unknown>"
}Returns matching connections as a list. Markifact connection ID lookup returns a list with one item. External ID lookup can return multiple connections.
Endpoint
GET /v1/connections/{connection_id}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
connection_id | string | Markifact connection ID by default, or your external ID when lookup_by=external_id. |
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
lookup_by | string | No | id | Use id for Markifact connection ID lookup, or external_id for your external ID. |
Get by Markifact Connection ID
curl "https://api.markifact.com/v1/connections/1f2e3d4c-0000-0000-0000-000000000000" \
-H "Authorization: Bearer YOUR_API_KEY"
Get by External ID
curl "https://api.markifact.com/v1/connections/customer_123?lookup_by=external_id" \
-H "Authorization: Bearer YOUR_API_KEY"
Response
[
{
"id": "1f2e3d4c-0000-0000-0000-000000000000",
"type": "ga4",
"display_name": "login@example.com",
"external_id": "customer_123",
"is_private": false,
"created_at": 1764000000000,
"updated_at": 1764000000000
}
]
Notes
- The response is always a list.
lookup_by=idonly searches within your team.lookup_by=external_idcan return more than one connection if you use the same external ID for multiple connection types.- If no connection is found, the API returns
404.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Markifact connection ID by default, or your external ID when lookup_by is external_id.
Query Parameters
Use id for Markifact connection ID lookup, or external_id for your external ID.
Available options:
id, external_id 
