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

# Create an account

> Creates an account and returns it with 201. `name` and `domain` are required. `domain` is lowercased, then normalised as the app does it (protocol, `www.` and path removed). `domain`, `alias_domains` and `crm_account_id` can be set only when an account is created. Every other key is an update key, checked the same way: where describe marks `name` read-only (the workspace has not turned on account creation, or a sync such as a CRM or warehouse owns account names), a create is a 422 whose `details` mark `name` as `field_not_writable`. `type` defaults to Customer. A domain another live account holds, as its domain or an alias, is a 409 naming that account in `details[].account_ids`; so is a CRM id any account holds, a deleted one included, since a deleted account keeps its CRM id. The domain check matches exactly, so an older account stored with a domain in another case does not count, and two creates of one domain at the same moment can both succeed: run them one at a time, or match on `crm_account_id`. Send an `Idempotency-Key` header to make a retry safe: the same key replays the first response.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/account/records
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/objects/account/records:
    post:
      tags:
        - accounts
      summary: Create an account
      description: >-
        Creates an account and returns it with 201. `name` and `domain` are
        required. `domain` is lowercased, then normalised as the app does it
        (protocol, `www.` and path removed). `domain`, `alias_domains` and
        `crm_account_id` can be set only when an account is created. Every other
        key is an update key, checked the same way: where describe marks `name`
        read-only (the workspace has not turned on account creation, or a sync
        such as a CRM or warehouse owns account names), a create is a 422 whose
        `details` mark `name` as `field_not_writable`. `type` defaults to
        Customer. A domain another live account holds, as its domain or an
        alias, is a 409 naming that account in `details[].account_ids`; so is a
        CRM id any account holds, a deleted one included, since a deleted
        account keeps its CRM id. The domain check matches exactly, so an older
        account stored with a domain in another case does not count, and two
        creates of one domain at the same moment can both succeed: run them one
        at a time, or match on `crm_account_id`. Send an `Idempotency-Key`
        header to make a retry safe: the same key replays the first response.
      operationId: accounts_create
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: true
              description: >-
                An update body plus the keys only a create sets. ``name`` and
                ``domain`` are required.
              properties:
                alias_domains:
                  default: null
                  description: Further domains of the account
                  items:
                    type: string
                  title: Alias Domains
                  type: array
                arr:
                  default: null
                  description: Annual recurring revenue, whole dollars
                  title: Arr
                  type: integer
                crm_account_id:
                  default: null
                  description: The account's id in your CRM
                  title: Crm Account Id
                  type: string
                domain:
                  default: null
                  description: >-
                    The account's web domain, e.g. acme.com; normalised and
                    lowercased
                  title: Domain
                  type: string
                fields:
                  anyOf:
                    - additionalProperties: true
                      type: object
                    - type: 'null'
                  default: null
                  description: Custom field keys to values
                  title: Fields
                name:
                  default: null
                  description: The account's name
                  title: Name
                  type: string
                renewal_date:
                  default: null
                  description: YYYY-MM-DD
                  format: date
                  title: Renewal Date
                  type: string
                type:
                  default: null
                  description: One of the account types describe lists
                  title: Type
                  type: string
              type: object
        required: false
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Account:
      properties:
        account_summary__s_:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Summary  S
        arr:
          anyOf:
            - type: integer
            - type: 'null'
          title: Arr
        crm_account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Crm Account Id
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Domain
        experience_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Experience Health
        feature_requests_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Feature Requests Health
        fields:
          additionalProperties: true
          title: Fields
          type: object
        health:
          anyOf:
            - type: string
            - type: 'null'
          title: Health
        health_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Health Summary
        hierarchy:
          anyOf:
            - type: string
            - type: 'null'
          title: Hierarchy
        id:
          title: Id
          type: string
        last_activity_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Activity Date
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        outcomes_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Outcomes Health
        owner_names:
          items:
            type: string
          title: Owner Names
          type: array
        owners:
          items:
            $ref: '#/components/schemas/AccountOwner'
          title: Owners
          type: array
        parent:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent
        product_usage_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Usage Health
        relationship_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Relationship Health
        renewal_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Renewal Date
        risks_health:
          anyOf:
            - type: string
            - type: 'null'
          title: Risks Health
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
      required:
        - id
      title: Account
      type: object
    AccountOwner:
      properties:
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
        user_id:
          title: User Id
          type: string
      required:
        - user_id
      title: AccountOwner
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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