# Appeal a switched-off endpoint

Source: https://docs.vlayers.ai/reference/hosting/appeal-endpoint

`POST /v1/endpoints/{endpoint}/appeal` · scope `workspace:write`

When VoiceLayer switched an endpoint off because of an abuse report, this puts your answer on the endpoint's record and in the operators' queue. It answers 202; an operator reviews it and either switches the endpoint back on or tells you why not. Only an endpoint VoiceLayer switched off can be appealed.

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

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `endpoint` | path | string | yes | The endpoint id: the first segment of its `run.vlayers.ai` URL. Example: `"x7k2p4q9m3vd"` |
| `message` | body | string | yes | What happened, and what you changed (10 to 2,000 characters). |

## Request

cURL:

```bash
curl -X POST "https://api.vlayers.ai/v1/endpoints/$ENDPOINT_ID/appeal" \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "The page was a test of ours and has been removed."
  }'
```

TypeScript:

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

const voicelayer = new VoiceLayer();

const { status } = await voicelayer.hosting.appealEndpoint('<endpoint-id>', {
  message: 'The page was a test of ours and has been removed.'
});
console.log(status);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.appeal_endpoint(
    "<endpoint-id>",
    message="The page was a test of ours and has been removed.",
)
print(result.status)
```

## Response `202`

```json
{
  "reportId": "rep_0123456789abcdef01",
  "status": "appealed"
}
```
