Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | ID of the user to send connection request to |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token for authentication. |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
message | string | No | Optional message with connection request |
Example Request
Response
Success Response (201 Created)
Error Responses
Invalid User ID (400 Bad Request)
Self-Request Attempt (400 Bad Request)
User Not Found (404 Not Found)
Connection Already Exists (409 Conflict)
Request already pending:Server Error (500 Internal Server Error)
Notes
- Creates a connection request with “pending” status
- Receiver will be notified of the connection request
- Cannot send requests to yourself
- Only one active connection record between any two users
- If previous request was declined, only the original receiver can create a new request
- Rate limiting: 25 requests per 5 minutes

