---
title: "Set access"
method: PUT
path: "/agents/{id}/access/{channel}"
tags: ["Access"]
---

# Set access

`PUT /agents/{id}/access/{channel}`

## Request

- Base URL: `https://app.artil.ai/api`
- URL: `https://app.artil.ai/api/agents/{id}/access/{channel}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://mcp.artil.ai/oauth/authorize`
    - Token URL: `https://mcp.artil.ai/oauth/token` scopes: `agent`

Choose who can wake an agent on a channel.

## Path parameters

- `id` string, uuid, required
- `channel` string, required

## Request body

- object
  - `admit` 'anyone' | 'team' | 'list', required
  - `senders` string[], required

## Response `200`

The channel's access

- Access
  - `admit` 'anyone' | 'team' | 'list', required: Whether anyone, the workspace's members and agents besides the listed senders, or only the listed senders wake the agent; a new agent lists only its creator for email and its Message URL and starts with team for texts, and its Message URL is never open to anyone
  - `senders` string[], required: Email addresses, phone numbers, Telegram user ids and usernames, or for the Message URL the ids of agents and members

## Other responses

- `4XX`: The request failed; the error says why
- `5XX`: The request failed; the error says why

---

[API](https://skmtc.dev/artil/apis/artil-api.md) - [All operations](https://skmtc.dev/artil/apis/artil-api/llms.txt) - [OpenAPI document](https://skmtc.dev/artil/apis/artil-api/revisions/55db0efa0cb8?raw)
