API EndpointsconnectionsGet Current User Connections Count

Get Current User Connections Count

Endpoint

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

Method: GET

Authentication Required: Yes


Description

Get the count of established connections for the current user.


Request

Path Parameters

None

Query Parameters

None

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication.

Body Parameters

None

Example Request

GET api.replyke.com/api/v6/your-project-id/connections/count
Authorization: Bearer <ACCESS_TOKEN>

Response

Success Response (200 OK)

{
  "count": 42
}

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 the total number of established connections for the current user
  • Only counts accepted connections, not pending or declined requests
  • Rate limiting: 100 requests per 5 minutes