> ## Documentation Index
> Fetch the complete documentation index at: https://replyke-feat-push-rich-payload-fields.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Accept Connection Request

> Accept a pending connection request

Accept a specific pending connection request. Only the receiver of the connection request can accept it.

## Path Parameters

<ParamField path="connectionId" type="string" required>
  ID of the connection to accept
</ParamField>

## Response

<ResponseField name="id" type="string">
  Unique connection identifier
</ResponseField>

<ResponseField name="status" type="string">
  Connection status (will be "accepted")
</ResponseField>

<ResponseField name="respondedAt" type="string">
  Timestamp when the request was accepted in ISO 8601 format
</ResponseField>

## Error Responses

<AccordionGroup>
  <Accordion title="Invalid Connection ID - 400 Bad Request">
    ```json theme={null}
    {
      "error": "Invalid connectionId",
      "code": "connection/invalid-connection-id"
    }
    ```
  </Accordion>

  <Accordion title="Unauthorized - 403 Forbidden">
    ```json theme={null}
    {
      "error": "Only receiver can accept requests",
      "code": "connection/unauthorized"
    }
    ```
  </Accordion>

  <Accordion title="Connection Not Found - 404 Not Found">
    ```json theme={null}
    {
      "error": "Pending connection not found",
      "code": "connection/not-found"
    }
    ```
  </Accordion>

  <Accordion title="Server Error - 500 Internal Server Error">
    ```json theme={null}
    {
      "error": "Internal server error",
      "code": "connection/server-error"
    }
    ```
  </Accordion>
</AccordionGroup>

***

## 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
