Get User Connections Count
Endpoint
URL: api.replyke.com/api/v6/:projectId/users/:userId/connections-count
Method: GET
Authentication Required: No
Description
Get the count of established connections for a specific user. This is a public endpoint that does not require authentication.
Request
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
userId | string | Yes | ID of the user to get connections count for |
Headers
None
Body Parameters
None
Example Request
GET api.replyke.com/api/v6/your-project-id/users/user-uuid-123/connections-count
Response
Success Response (200 OK)
{
"count": 42
}
Error Responses
Server Error (500 Internal Server Error)
{
"error": "Internal server error",
"code": "connection/server-error"
}
Notes
- This endpoint does not require authentication
- Returns the total number of established connections for the specified user
- Only counts accepted connections, not pending or declined requests
- Public endpoint accessible to all users
- Rate limiting: 100 requests per 5 minutes