Skip to content
Get started

Get connection (by id)

connections.get_by_id(strconnection_id) -> ConnectionGetByIDResponse
GET/v3/connections/{connectionId}

Get connection details with id

ParametersExpand Collapse
connection_id: str
ReturnsExpand Collapse
class ConnectionGetByIDResponse:
id: str
created_at: str
formatdatetime
provider: str
Deprecatedcontainer_tags: Optional[List[str]]
document_limit: Optional[float]
email: Optional[str]
expires_at: Optional[str]
formatdatetime
metadata: Optional[Dict[str, object]]

Get connection (by id)

import os
from supermemory import Supermemory

client = Supermemory(
    api_key=os.environ.get("SUPERMEMORY_API_KEY"),  # This is the default and can be omitted
)
response = client.connections.get_by_id(
    "connectionId",
)
print(response.id)
{
  "id": "id",
  "createdAt": "createdAt",
  "provider": "provider",
  "containerTags": [
    "string"
  ],
  "documentLimit": 0,
  "email": "email",
  "expiresAt": "expiresAt",
  "metadata": {
    "foo": "bar"
  }
}
Returns Examples
{
  "id": "id",
  "createdAt": "createdAt",
  "provider": "provider",
  "containerTags": [
    "string"
  ],
  "documentLimit": 0,
  "email": "email",
  "expiresAt": "expiresAt",
  "metadata": {
    "foo": "bar"
  }
}