Skip to main content
DELETE
/
:projectId
/
connections
/
:connectionId
Remove Connection
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/connections/:connectionId
{
  "message": "<string>"
}
Remove a specific connection by its ID. This can be used to withdraw a pending request (if you’re the requester) or disconnect an established connection (if you’re either party).

Path Parameters

connectionId
string
required
ID of the connection to remove

Response

message
string
Success message confirming the action

Possible Success Messages

Withdraw Request:
{
  "message": "Connection request withdrawn successfully."
}
Disconnect:
{
  "message": "Connection removed successfully."
}

Error Responses

{
  "error": "Invalid connectionId",
  "code": "connection/invalid-connection-id"
}
{
  "error": "Unauthorized (wrong user for action)",
  "code": "connection/unauthorized"
}
{
  "error": "Connection not found",
  "code": "connection/not-found"
}
{
  "error": "Internal server error",
  "code": "connection/server-error"
}

Notes

  • Requires authentication
  • Withdraw: Only the requester can withdraw pending requests they sent
  • Disconnect: Either party can remove established connections
  • Deletes the connection record completely (allows fresh requests later)
  • Use this endpoint when you have the specific connection ID
  • Alternative: Use DELETE /:projectId/users/:userId/connection when you know the user ID
  • Rate limiting: 50 requests per 5 minutes
I