API ReferenceConnections

Retrieve connections

Returns a list of connections for the authenticated user, including connection details and associated files.

GET
/api/connections

Authorization

AuthorizationRequiredBearer <token>

Bearer token authentication required

In: header

curl -X GET "https://app.dcup.dev/api/connections" \
  -H "Authorization: Bearer <token>"

A list of connections

[
  {
    "connectionId": "conn1",
    "identifier": "my_connection",
    "source": "google_drive",
    "sourceFolder": "My Folder",
    "metadata": {},
    "isConfigSet": true,
    "lastSynced": "2023-10-01T12:00:00Z",
    "createdAt": "2023-09-01T12:00:00Z",
    "chunkCount": 10,
    "pageCount": 5,
    "files": [
      {
        "name": "file1.pdf",
        "totalPages": 3,
        "chunksIds": [
          "chunk1",
          "chunk2"
        ]
      },
      {
        "name": "file2.pdf",
        "totalPages": 2,
        "chunksIds": [
          "chunk3"
        ]
      }
    ]
  }
]