# CRM document public URL

`POST /v1/crm-documents/:id/public-url` calls `crm.documentgenerator.document.enablePublicUrl`. Use a writable key with `crm` scope. Supply `enabled: true` or `false`.

```bash
curl -X POST https://vibecode.bitrix24.com/v1/crm-documents/73/public-url -H 'X-Api-Key: YOUR_VIBE_KEY' -H 'Content-Type: application/json' -d '{"enabled":true}'
```

The response contains `data.publicUrl`. **An enabled link is public: anyone with the address can open the document without an API key.** Send `enabled:false` when sharing ends.
