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

Path Parameters

connectionId
string
required
ID of the connection to decline

Response

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

Error Responses

{
  "error": "Invalid connectionId",
  "code": "connection/invalid-connection-id"
}
{
  "error": "Only receiver can decline 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 decline it
  • Updates connection status from “pending” to “declined”
  • Sets the respondedAt timestamp
  • Prevents the original requester from sending new requests (only receiver can re-initiate)
  • No notification is sent to the requester
  • Rate limiting: 50 requests per 5 minutes
I