Skip to main content
A connection is a bidirectional relationship between two users that requires mutual acceptance. The connection lifecycle goes through request → accept/decline. Multiple response shapes exist depending on the context in which connections are retrieved.

EstablishedConnection

Returned in lists of confirmed connections.
PropertyTypeDescription
idstringUnique connection identifier.
connectedUserUserThe other user in this connection.
connectedAtstringISO timestamp when the connection was accepted.

PendingConnection

Returned for requests that have not yet been accepted or declined.
PropertyTypeDescription
idstringUnique connection identifier.
userUserThe other user involved in this pending request.
type"received" | "sent"Whether the current user received or sent this request.
messagestringOptional message included with the request.
createdAtstringISO timestamp when the request was sent.

ConnectionStatusResponse

Returned by the connection status endpoint. The shape varies by status:

Status: none

{ status: "none" }

Status: pending

PropertyTypeDescription
status"pending"
type"sent" | "received"Whether the current user sent or received the request.
connectionIdstringThe connection record’s ID.
createdAtstringWhen the request was sent.

Status: connected

PropertyTypeDescription
status"connected"
connectionIdstringThe connection record’s ID.
connectedAtstringWhen the connection was accepted.
requestedAtstringWhen the request was originally sent.

Status: declined

PropertyTypeDescription
status"declined"
type"sent" | "received"Whether the current user sent or received the declined request.
connectionIdstringThe connection record’s ID.
respondedAtstringWhen the decline occurred.

Pagination

Connection list responses include a pagination object:
PropertyTypeDescription
currentPagenumberThe current page number.
totalPagesnumberTotal number of pages.
totalCountnumberTotal number of connections.
hasNextPagebooleanWhether more pages exist after this one.
hasPreviousPagebooleanWhether pages exist before this one.
limitnumberThe page size used for this response.

See Also