# Report a package

Source: https://docs.vlayers.ai/reference/hosting/report-package

`POST /v1/package-abuse-reports` · scope `workspace:write`

Tells VoiceLayer a package or one of its versions is abusive or unsafe. It lands in the operators' queue; the answer is the same whether or not the package exists.

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

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `packageId` | body | string | yes | The package, as `<namespace>/<name>`. |
| `versionId` | body | string | no | One version; leave it out to report the whole package. |
| `reason` | body | string | yes | What is wrong (10 to 1,000 characters). |
| `category` | body | "phishing" \| "malware" \| "other" | no | phishing, malware or other (the default); phishing and malware are answered on the shorter target. |

## Request

cURL:

```bash
curl -X POST https://api.vlayers.ai/v1/package-abuse-reports \
  -H "Authorization: Bearer $VOICELAYER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "packageId": "com.example/orders-panel",
    "reason": "It sends order details somewhere its summary does not name."
  }'
```

TypeScript:

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

const voicelayer = new VoiceLayer();

const { reportId } = await voicelayer.hosting.reportPackage({
  packageId: 'com.example/orders-panel',
  reason: 'It sends order details somewhere its summary does not name.'
});
console.log(reportId);
```

Python:

```python
from voicelayer import VoiceLayer

vl = VoiceLayer()

result = vl.hosting.report_package(
    package_id="com.example/orders-panel",
    reason="It sends order details somewhere its summary does not name.",
)
print(result.report_id)
```

## Response `202`

```json
{
  "reportId": "rep_0123456789abcdef01"
}
```
