Data ConnectionsList data connections

List data connections

Retrieve all available data connections. Data connections define external data sources (databases, APIs, warehouses) that can be used in queries and insights.

curl -X GET "https://api.mythic-analytics.com/api/v1/data-connections?type=example_string&status=active" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "success": true,
  "data": [
    {
      "id": "dc_7kH3nPqR",
      "name": "Production PostgreSQL",
      "type": "postgres",
      "status": "active",
      "last_checked": "2024-06-15T12:00:00.000Z",
      "created_at": "2024-03-01T10:00:00.000Z"
    }
  ],
  "count": 3
}
GET
/data-connections
GET
Bearer Token
Bearer Tokenstring
Required

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
API Key (query: admin_key)
admin_keystring
Required

Alternative to the Authorization header for server-to-server scenarios.

Alternative to the Authorization header for server-to-server scenarios.
query
typestring

Filter by connection type (e.g., postgres, bigquery, api).

query
statusstring

Filter by connection status.

Options: active, inactive, error
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY

query
admin_keystring
Required

API Key for authentication. Alternative to the Authorization header for server-to-server scenarios.

Query Parameters

typestring

Filter by connection type (e.g., postgres, bigquery, api).

statusstring

Filter by connection status.

Allowed values:activeinactiveerror

Responses

successboolean
dataarray
countinteger