Skip to main content
DELETE
/
:projectId
/
api
/
v7
/
users
/
:userId
/
connection
Remove Connection
curl --request DELETE \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/users/:userId/connection
{
  "message": "<string>",
  "action": "<string>",
  "id": "<string>",
  "status": "<string>",
  "respondedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.replyke.com/llms.txt

Use this file to discover all available pages before exploring further.

Removes the connection relationship between the authenticated user and the specified user. The behavior depends on the current connection state:
  • Pending (sent by current user) — withdraws the request (record is deleted).
  • Pending (sent by other user) — declines the request (status updated to "declined").
  • Accepted — disconnects both users (record is deleted).

Path Parameters

userId
string
required
The Replyke user ID (UUID) of the other user.

Response

On success, returns HTTP 200. When withdrawn or disconnected:
message
string
Human-readable description of the action taken.
action
string
"withdraw" or "disconnect".
When declined:
id
string
Connection record ID.
status
string
"declined".
respondedAt
string
ISO timestamp of when the request was declined.

Error Responses

{
  "error": "Cannot disconnect from yourself",
  "code": "connection/self-disconnect"
}
{
  "error": "No connection found between these users that can be removed.",
  "code": "connection/not-found"
}

See Also