API ReferenceConnections

Retrieve specific connection

Returns details of a single connection for the authenticated user, identified by the connection ID, including associated files.

GET
/api/connections/{id}

Authorization

AuthorizationRequiredBearer <token>

Bearer token authentication required

In: header

Path Parameters

idRequiredstring

The unique identifier of the connection

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

Details of the requested connection

{
  "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": 5,
  "pageCount": 3,
  "files": [
    {
      "name": "file1.pdf",
      "totalPages": 3,
      "chunksIds": [
        "chunk1",
        "chunk2"
      ]
    }
  ]
}