--- title: members.invite | Doing Work API description: Invite a person by email as office, lead or field. Owners and office can invite. A lead cannot. The invite link works once. url: https://doingwork.work/docs/reference/members-invite/ --- # members.invite Invite a person by email as office, lead or field. Owners and office can invite. A lead cannot. The invite link works once. Shop roles are owner, office, lead and field. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/members/invite` | | MCP tool | `members_invite` | | Writes | yes, send an Idempotency-Key | | Area | [Team (unlimited workers)](https://doingwork.work/docs/reference/#team-unlimited-workers) | ## When to use it The owner wants to add a worker. Ask the worker's email and whether they're office or field. ## What to tell the owner I invited them by email. They join when they accept. Workers are unlimited on every plan. ## Input | Field | Type | Required | |---|---|---| | `shop_id` | string | yes | | `email` | string | yes | | `role` | string (one of office, lead, field) | yes | ## Example ```http POST https://doingwork.work/v1/members/invite content-type: application/json Idempotency-Key: 3f1c... { "shop_id": "00000000-0000-4000-8000-000000000000", "email": "owner@example.com", "role": "office" } ``` ## 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 | |---|---|---| | `forbidden` | 403 | This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can. | | `conflict` | 409 | The record is in the wrong state for this, for example sending a quote that's already signed. Read it again and pick the next step. | | `invalid_input`, `invalid_token`, `rate_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |