> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sublay.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Decline Connection

> Decline a pending connection request

Declines a pending connection request. Only the receiver of the original request can decline it. The connection record status is updated to `"declined"` rather than being deleted.

## Path Parameters

**connectionId** `string` *required*

The ID (UUID) of the pending connection record to decline.

## Response

On success, returns HTTP `200`:

**id** `string`

Connection record ID.

**status** `string`

`"declined"`.

**respondedAt** `string`

ISO timestamp of when the request was declined.

## Error Responses

> [accordion] Not Found — 404
>
> ```json theme={null}
> {
>   "error": "Pending connection request not found.",
>   "code": "connection/not-found"
> }
> ```

> [accordion] Unauthorized — 403
>
> ```json theme={null}
> {
>   "error": "Only the receiver can decline a connection request.",
>   "code": "connection/unauthorized"
> }
> ```

## See Also

* [`useDeclineConnection` hook](https://docs.sublay.io/v7/hooks/connections/use-decline-connection)
* [Accept Connection](https://docs.sublay.io/v7/api-reference/connections/accept-connection.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.