API EndpointsconnectionsGet Current User Connections

Get Current User Connections

Endpoint

URL: api.replyke.com/api/v6/:projectId/connections

Method: GET

Authentication Required: Yes


Description

Get list of established connections for the current user.


Request

Path Parameters

None

Query Parameters

ParameterTypeRequiredDescription
pagenumberNoPage number (default: 1)
limitnumberNoItems per page (default: 20, max: 100)

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication.

Body Parameters

None

Example Request

GET api.replyke.com/api/v6/your-project-id/connections?page=1&limit=20
Authorization: Bearer <ACCESS_TOKEN>

Response

Success Response (200 OK)

{
  "connections": [
    {
      "id": "connection-uuid",
      "connectedUser": {
        "id": "user-uuid",
        "name": "John Doe",
        "username": "johndoe",
        "avatar": "https://example.com/avatar.jpg",
        "bio": "Software Engineer",
        "reputation": 150
      },
      "connectedAt": "2024-01-01T12:05:00.000Z",
      "requestedAt": "2024-01-01T12:00:00.000Z",
      "message": "Original connection message"
    }
  ],
  "pagination": {
    "currentPage": 1,
    "totalPages": 3,
    "totalCount": 45,
    "hasNextPage": true,
    "hasPreviousPage": false,
    "limit": 20
  }
}

Error Responses

Unauthorized (401 Unauthorized)

{
  "error": "Authentication required",
  "code": "auth/unauthorized"
}

Server Error (500 Internal Server Error)

{
  "error": "Internal server error",
  "code": "connection/server-error"
}

Notes

  • Requires authentication
  • Returns paginated list of established connections for the current user
  • Each connection includes the connected user’s details
  • Includes timestamps for when connection was accepted
  • Default pagination: 20 items per page, maximum 100 items per page
  • Rate limiting: 100 requests per 5 minutes