Skip to main content
GET
/
v1
/
connections
List connections
curl --request GET \
  --url https://api.markifact.com/v1/connections \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.markifact.com/v1/connections"

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', 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",
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"

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")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.markifact.com/v1/connections")

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 shared connections owned by your team, plus private connections owned by the user who created the API key.

Endpoint

GET /v1/connections

Query Parameters

ParameterTypeRequiredDescription
external_idstringNoFilter connections by the external ID you provided when creating the auth link.
typestringNoFilter connections by connection type, such as ga4, gads, or meta_ads.

Example Request

curl "https://api.markifact.com/v1/connections?external_id=customer_123&type=ga4" \
  -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
  }
]

Connection Object

FieldTypeDescription
idstringPublic Markifact connection ID.
typestringConnection type.
display_namestring or nullDisplay name for the connection.
external_idstring or nullExternal ID from the auth link, if provided.
is_privatebooleanWhether the connection is private to the API key’s owning user.
created_atinteger or nullCreated timestamp in milliseconds.
updated_atinteger or nullUpdated timestamp in milliseconds.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

external_id
string

Filter connections by the external ID you provided when creating the auth link.

type
string

Filter connections by connection type.

Example:

"ga4"

Response

Connections returned.

id
string | null
required

Public Markifact connection ID.

type
string
required

Connection type.

is_private
boolean
required
display_name
string | null
external_id
string | null
created_at
integer<int64> | null
updated_at
integer<int64> | null