---
title: "Create a client account"
method: POST
path: "/v1/accounts"
tags: ["Accounts"]
---

# Create a client account

`POST /v1/accounts`

## Request

- Base URL: `https://api.revdoku.com`
- URL: `https://api.revdoku.com/v1/accounts`
- Auth: HTTP bearer

Requires an agency owner credential with client-account access. The credential default does not change; send the new account_id on later requests.

## Request body

- object
  - `name` string, required
  - `client_name` string: Optional client person or business name.
  - `account_id` string: Granted agency account that owns the new client account.
  - `reason` string, nullable: Optional purpose for this action. AI agents should explain intentional reads and changes when known; omit when unknown. Do not include secrets, file contents, or transcripts.

## Response `201`

Created

- object
  - `success` true, required
  - `data` object, required
    - `account` AccountIdentity, required
      - `id` string, required
      - `name` string, required: Account name, separate from the client person or business.
      - `account_kind` 'standard' | 'agency' | 'client', required
      - `client_name` string, nullable, required: Client person or business name, or null when unset.
      - `agency_account` object, nullable, required: Parent agency only when granted to this credential. Null does not make a client independent.
        - `id` string
        - `name` string
      - `region` string, nullable
      - `status` 'active' | 'read_only'
      - `permissions` object
        - `scope` 'mailbox_read' | 'mailbox_write' | 'mailbox_admin'
        - `mailbox_access` 'all' | 'selected'
        - `can_create_mailboxes` boolean

## Other responses

- `default`: Request failed. See error.code. Any 429 or 503 response with Retry-After (for example 503 EMAIL_LABELING_PENDING or 503 EMAIL_INDEX_BUILDING): wait that many seconds, then try the read again. 429 EMAIL_SEND_RATE_LIMITED has no Retry-After. Never retry EMAIL_LOOP_DETECTED.

---

[API](https://skmtc.dev/revdoku/apis/revdoku-api.md) · [All operations](https://skmtc.dev/revdoku/apis/revdoku-api/llms.txt) · [OpenAPI document](https://skmtc.dev/revdoku/apis/revdoku-api/revisions/3ff4e2540a8b?raw)
