---
title: network.setAgentOptIn | Doing Work API
description: Let the shop's agents turn customer requests on or off and change what the shop takes (owner only, with your own sign-in). On by default.
url: https://doingwork.work/docs/reference/network-setagentoptin/
---

# network.setAgentOptIn

Let the shop's agents turn customer requests on or off and change what the shop takes (owner only, with your own sign-in). On by default.

|  |  |
|---|---|
| Who | A person's own sign-in only (agent tokens are refused) |
| REST | `POST /v1/network/agent-optin` |
| MCP tool | Not an MCP tool |
| Writes | yes, send an Idempotency-Key |
| Area | [Shop](https://doingwork.work/docs/reference/#shop) |

## When to use it

Requests and quotes are free for shops and customers. We will never charge lead or referral fees.

## What to tell the owner

Ask the person to do this with their own sign-in. Your agent token is refused here.

## Input

| Field | Type | Required |
|---|---|---|
| `shop_id` | string (uuid) | yes |
| `allowed` | boolean | yes |

## Example

```http
POST https://doingwork.work/v1/network/agent-optin
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "allowed": true
}
```

## Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are `{code, message, status}`.

## Errors

| Code | Status | What to do |
|---|---|---|
| `invalid_input`, `invalid_token`, `rate_limited` |  | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |
