# Retry what a connection missed

Source: https://docs.vlayers.ai/reference/hosting/retry-connection-inbound

`POST /v1/connector-connections/{id}/inbound/retry` · scope `workspace:write`

Puts the connection's waiting events back for another try, and clears what it said about them. Events that were too large are gone and are not retried; the count is cleared with it.

Requires an API key with the `workspace:write` scope.

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | The connection id. Example: `"0192f5c3-7a8b-7cad-9e2f-3a4b5c6d7e89"` |

## Request

cURL:

```bash
curl -X POST "https://api.vlayers.ai/v1/connector-connections/$CONNECTION_ID/inbound/retry" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY"
```

TypeScript:

```ts
import { VoiceLayer } from '@voicelayer/api';

const voicelayer = new VoiceLayer();

const { requeued } = await voicelayer.hosting.retryConnectionInbound('<connection-id>');
console.log(requeued);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.retry_connection_inbound("<connection-id>")
print(result.requeued)
```

## Response `200`

```json
{
  "connectionId": "0192f5c3-7a8b-7cad-9e2f-3a4b5c6d7e89",
  "requeued": 2
}
```
