> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentcdn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Control AI access

> Allow or block AI apps for citation, playback and training, per account or per video. Set what answers may say.

You decide what AI apps may do with your videos. Set it once for the account, then change single videos where they differ. Every AgentTV surface follows the same setting. See [Rights and access](https://docs.agentcdn.com/concepts/rights.md) for how it is enforced.

## Allow or block

| Use | Options | Default | Notes |
| - | - | - | - |
| Citation | Allow, Block | Allow | Block removes the video from answers and from the page block. |
| Playback | Allow, Block | Allow | Block can keep a free preview of 30, 60 or 120 seconds. |
| Training | Allow, Block | Block | |

### In the console

Open **Agent access**. Set the account default, then give single videos their own setting.

### With the API

`PUT /v1/agent-access` with a key that can make changes. Leave out `video_ids` to change the account default. Send `video_ids` to change up to 500 videos at once.

```bash theme={null}
curl -s -X PUT https://api.agentcdn.com/v1/agent-access \
  -H "Authorization: Bearer $AGENTCDN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_ids": ["vid_123"],
    "changes": {
      "playback": { "mode": "block", "preview_seconds": 60 },
      "training": "block"
    }
  }'
```

The first call changes nothing. It returns a preview of the change and a `confirm_token`. Send the same request with `confirm_token` to apply it. See [API keys](https://docs.agentcdn.com/api-keys.md#changes-run-in-two-calls).

## Set what answers may say

`PATCH /v1/answer-settings`, or ask the account MCP to change them:

* **`answer_mode`**: `written` (the default) or `quote_only`, which answers only with the cited sentences, word for word.
* **`answer_note`**: one line shown with every answer, for example "General information, not medical advice."
* **`blocked_topics`**: topics your library does not answer, up to 50. A question on one gets your `blocked_topic_reply` and no clip.

## Where your videos appear

**Discovery** in the console, or `POST /v1/discovery`, turns AgentTV watch pages, the AgentTV apps in AI assistants, and search engine indexing on or off. See [Choose where your videos appear](https://docs.agentcdn.com/guides/discovery.md).

If your own pages carry the page block, you can leave `search_engines` off so search engines index your pages, not ours. For no AgentTV pages at all, ask for an [unlisted account](https://docs.agentcdn.com/concepts/accounts.md).

## Remove a video

`POST /v1/videos/{video_id}/actions` with `remove` takes a video out of your library without deleting it. It leaves new answers and search at once. `restore` brings it back. Answers an AI app already gave elsewhere cannot be recalled.

## Crawlers on your own site

AgentTV does not block or admit crawlers on your domain. Use your `robots.txt`, your CDN's bot rules and your firewall for that. To count which AI crawlers fetch your video pages, send your CDN logs. See [Measure usage](https://docs.agentcdn.com/guides/measure.md#ai-crawler-visits).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.