Skip to main content
GET
/
v1
/
connections
/
{connection_id}
Get connection
curl --request GET \
  --url https://api.markifact.com/v1/connections/{connection_id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "type": "<string>",
    "is_private": true,
    "display_name": "<string>",
    "external_id": "<string>",
    "created_at": 123,
    "updated_at": 123
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.markifact.com/llms.txt

Use this file to discover all available pages before exploring further.

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

ParameterTypeDescription
connection_idstringMarkifact connection ID by default, or your external ID when lookup_by=external_id.

Query Parameters

ParameterTypeRequiredDefaultDescription
lookup_bystringNoidUse 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=id only searches within your team.
  • lookup_by=external_id can 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

Authorization
string
header
required

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

Path Parameters

connection_id
string
required

Markifact connection ID by default, or your external ID when lookup_by is external_id.

Query Parameters

lookup_by
enum<string>
default:id

Use id for Markifact connection ID lookup, or external_id for your external ID.

Available options:
id,
external_id

Response

Matching 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