Skip to main content
PUT
/
:projectId
/
connections
/
:connectionId
/
accept
Accept Connection Request
curl --request PUT \
  --url https://api.replyke.com/api/v6/:projectId/connections/:connectionId/accept
{
  "id": "<string>",
  "status": "<string>",
  "respondedAt": "<string>"
}
Accept a specific pending connection request. Only the receiver of the connection request can accept it.

Path Parameters

connectionId
string
required
ID of the connection to accept

Response

id
string
Unique connection identifier
status
string
Connection status (will be “accepted”)
respondedAt
string
Timestamp when the request was accepted in ISO 8601 format

Error Responses

{
  "error": "Invalid connectionId",
  "code": "connection/invalid-connection-id"
}
{
  "error": "Only receiver can accept requests",
  "code": "connection/unauthorized"
}
{
  "error": "Pending connection not found",
  "code": "connection/not-found"
}
{
  "error": "Internal server error",
  "code": "connection/server-error"
}

Notes

  • Requires authentication
  • Only the receiver of the connection request can accept it
  • Updates connection status from “pending” to “accepted”
  • Sets the respondedAt timestamp
  • Creates a bidirectional relationship between the users
  • Triggers a notification to the original requester
  • Rate limiting: 50 requests per 5 minutes
I