Skip to main content
POST
/
v1
/
organizations
/
connections
/
list
List Storage Connections
curl --request POST \
  --url https://api.mixpeek.com/v1/organizations/connections/list \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider_type": "google_drive",
  "status": "PENDING",
  "is_active": true
}
'
{
  "results": [
    {
      "internal_id": "<string>",
      "provider_type": "google_drive",
      "provider_config": {
        "credentials": {
          "client_email": "[email protected]",
          "client_id": "123456789012345678901",
          "private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
          "private_key_id": "a1b2c3d4e5f6...",
          "project_id": "mixpeek-prod-456",
          "type": "service_account"
        },
        "description": "Service account accessing shared drive",
        "provider_type": "google_drive",
        "shared_drive_id": "0AH-Xabc123def456"
      },
      "name": "<string>",
      "created_by_user_id": "<string>",
      "connection_id": "<string>",
      "description": "Shared drive for marketing team assets and campaign materials",
      "status": "ACTIVE",
      "is_active": true,
      "last_used_at": "2023-11-07T05:31:56Z",
      "last_error": "Authentication failed: Invalid credentials",
      "consecutive_failures": 0,
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "metadata": {}
    }
  ],
  "pagination": {
    "total": 123,
    "page": 123,
    "page_size": 123,
    "total_pages": 123,
    "next_page": "<string>",
    "previous_page": "<string>"
  },
  "total": 1
}

Headers

Authorization
string
required

REQUIRED: Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.

Query Parameters

limit
integer | null
offset
integer | null

Body

application/json

Request payload for listing storage connections with filters.

Use this to filter connections by provider type, status, or active flag. Results are paginated automatically.

Use Cases:

  • List all active Google Drive connections
  • Find failed connections that need attention
  • Filter by provider type for sync configuration

Examples:

# List all active Google Drive connections
{
    "provider_type": "google_drive",
    "is_active": True
}

# Find failed connections
{
    "status": "failed"
}
provider_type
enum<string> | null

OPTIONAL. Filter connections by provider type. Must be one of: google_drive, s3. If not provided, returns connections of all types.

Available options:
google_drive,
s3
Example:

"google_drive"

status
enum<string> | null

OPTIONAL. Filter connections by operational status. ACTIVE: Healthy and ready for use. SUSPENDED: Temporarily disabled. FAILED: Health checks failing. ARCHIVED: Permanently retired.

Available options:
PENDING,
IN_PROGRESS,
PROCESSING,
COMPLETED,
COMPLETED_WITH_ERRORS,
FAILED,
CANCELED,
UNKNOWN,
SKIPPED,
DRAFT,
ACTIVE,
ARCHIVED,
SUSPENDED
is_active
boolean | null

OPTIONAL. Filter by active flag. True: Returns only active connections (status=ACTIVE). False: Returns only inactive connections (SUSPENDED/FAILED/ARCHIVED). If not provided, returns connections of all active states.

Response

Successful Response

Response envelope for listing storage connections.

Contains paginated results and metadata about the listing operation.

results
StorageConnectionModel · object[]
required

List of storage connections matching the request filters. Results are paginated according to the pagination parameters. SECURITY: Sensitive credential fields are automatically redacted.

pagination
PaginationResponse · object
required

Pagination metadata including total count, page number, page size, and navigation links for next/previous pages.

total
integer
required

Total number of connections matching the filters (before pagination). Use this to calculate total pages and display pagination controls.

Required range: x >= 0