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

# Set Account State

> Set one account's tier, owner, CS owner, discard flag or note

Creates the account's state or updates it. Only provided fields change.

Tags are shared by accounts, people and opportunities, and have their own
endpoint: [Set An Account's Tags](https://docs.clustr-ai.com/api-reference/set-account-record-tags.md).

> [!WARNING]
>
> **An empty string on `tier_id`, `owner_id` or `cs_owner_id` clears that reference.** Omitting
> the field leaves it alone, so send an explicit `""` to clear it.

```bash cURL theme={null}
curl -X PUT "https://api.clustr-ai.com/api/public/account-states/acc_rvvwwmsy2037szdrzy7gjt390z" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tier_id": "tier_6pjxvkfn50v0qet6w9pbe5ys0r", "is_discarded": false}'
```

```bash cURL (owner, and push it to the CRM) theme={null}
curl -X PUT "https://api.clustr-ai.com/api/public/account-states/acc_rvvwwmsy2037szdrzy7gjt390z" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"owner_id": "own_3gp4h4j95n3atvhqh02y941x4t", "push_to_crm": true}'
```

```bash cURL (CS owner) theme={null}
curl -X PUT "https://api.clustr-ai.com/api/public/account-states/acc_rvvwwmsy2037szdrzy7gjt390z" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cs_owner_id": "own_80mh0ydctrfasd4ptgfh6w2fpa"}'
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "account_state": {
      "clustr_account_id": "acc_rvvwwmsy2037szdrzy7gjt390z",
      "clustr_tier_id": "tier_6pjxvkfn50v0qet6w9pbe5ys0r",
      "clustr_owner_id": "own_3gp4h4j95n3atvhqh02y941x4t",
      "clustr_cs_owner_id": null,
      "clustr_updated_by_user_id": null,
      "clustr_notes_updated_by_user_id": null,
      "company_id": "9c4d5e6f-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
      "tier_id": "1a2b3c4d-5e6f-4071-8a92-b3c4d5e6f708",
      "owner_id": "3f2b1c40-8a11-4f2e-9d61-0f5a8c7a2b13",
      "cs_owner_id": null,
      "is_discarded": false,
      "notes": "",
      "updated_at": "2026-09-16T10:00:00Z",
      "updated_by": null,
      "notes_updated_at": null,
      "notes_updated_by": null,
      "notes_updated_by_name": null,
      "dismiss_reason": null
    },
    "intros_moved": 0,
    "crmPush": {
      "status": "pushed",
      "provider": "hubspot",
      "pushed": 1,
      "notPushed": 0
    }
  }
}
```

```json 200 (the CRM refused) theme={null}
{
  "success": true,
  "data": {
    "account_state": {
      "clustr_account_id": "acc_rvvwwmsy2037szdrzy7gjt390z",
      "clustr_owner_id": "own_3gp4h4j95n3atvhqh02y941x4t",
      "clustr_cs_owner_id": null,
      "company_id": "9c4d5e6f-1a2b-4c3d-8e9f-0a1b2c3d4e5f",
      "owner_id": "3f2b1c40-8a11-4f2e-9d61-0f5a8c7a2b13"
    },
    "intros_moved": 0,
    "crmPush": {
      "status": "refused",
      "reason": "owner_not_in_crm",
      "message": "Anna has no HubSpot user",
      "provider": "hubspot",
      "pushed": 0,
      "notPushed": 1
    }
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "tier_id does not reference a tier in this workspace", "code": "BAD_REQUEST" }
}
```


## OpenAPI

````yaml PUT /account-states/{companyId}
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /account-states/{companyId}:
    parameters:
      - name: companyId
        description: >-
          The account's Clustr ID (`acc_…`), from [List
          Accounts](/api-reference/list-accounts). The

          `company_id` from earlier responses also works.
        in: path
        required: true
        schema:
          type: string
        example: acc_br230dypj5bczxdwpea99806d0
    put:
      tags:
        - Account States
      summary: Set Account State
      description: >-
        Sets one account's tier, owner, discard flag or notes, creating its
        state when it has

        none. Only the fields you send change; an empty string on a reference
        field clears it. A

        tier or owner id from another workspace is rejected.


        Set tags with PUT /record-tags/account/{companyId}. `push_to_crm` (or
        `pushToCrm`) also

        writes the owner to the matching CRM company; `crmPush` in the response
        says what happened

        there, and the owner is saved in Clustr either way.
      operationId: setAccountState
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetAccountStateRequest'
      responses:
        '200':
          description: The stored account state
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      account_state:
                        $ref: '#/components/schemas/AccountState'
                      intros_moved:
                        type: integer
                        description: >-
                          How many warm intros followed an `is_discarded` change
                          at this account. `0`

                          when the write did not touch the flag.
                      crmPush:
                        allOf:
                          - $ref: '#/components/schemas/CRMPushOutcome'
                        description: >-
                          Present only when an owner was written and the CRM was
                          involved.


                          - `status`: `pushed`, `refused`, `failed` or `skipped`

                          - `reason`: a machine code, for example
                          `direction_crm_owns`, `owner_not_in_crm`,
                          `owner_deactivated`, `record_not_matched`,
                          `clear_not_pushed`, `writes_disabled` or
                          `crm_not_connected`

                          - `message`: one sentence written for a person

                          - `provider`: the CRM written to

                          - `pushed` / `notPushed`: record counts, for a write
                          that covered several


                          The owner is saved in Clustr whatever this says.
                      csCrmPush:
                        allOf:
                          - $ref: '#/components/schemas/CRMPushOutcome'
                        description: >-
                          The same as `crmPush`, for the CS owner: present only
                          when `cs_owner_id`

                          was written and the CRM was involved.
                      fit:
                        allOf:
                          - $ref: '#/components/schemas/AccountFit'
                        description: >-
                          The account's grade after this write, recomputed
                          before the response. Omitted when the account has no
                          grade.
        '400':
          description: A referenced tier or owner does not exist in this workspace
        '401':
          description: Invalid or missing API key
components:
  schemas:
    SetAccountStateRequest:
      type: object
      description: >-
        Every field is optional, and only the fields you send change. An empty
        string for `tier_id` or `owner_id` clears that value. To set tags, use
        the endpoints under /record-tags, which serve accounts, people and
        opportunities alike.
      properties:
        intros:
          type: string
          enum:
            - follow
            - keep
          description: >-
            What an `is_discarded` change does to the warm intros at the
            account: `follow` (the default) carries it onto them, `keep` leaves
            them as they are.
        tier_id:
          type: string
          nullable: true
          description: >-
            A tier's Clustr ID (`tier_…`) from [List Account
            Tiers](/api-reference/list-tiers), or `""` to

            clear. The id from earlier responses also works.
        owner_id:
          type: string
          nullable: true
          description: >-
            An owner's Clustr ID (`own_…`) from [List
            Owners](/api-reference/list-owners), or `""` to clear.

            The id from earlier responses also works.
        cs_owner_id:
          type: string
          nullable: true
          description: >-
            The account's CS owner: an owner's Clustr ID (`own_…`) from

            [List Owners](/api-reference/list-owners), or `""` to clear. The id
            from earlier responses

            also works.
        is_discarded:
          type: boolean
          description: >-
            `true` dismisses the account and every path into it; `false`
            restores it. Dismissing

            hides the account, while tags only label it. See [Account
            States](/account-states).
        notes:
          type: string
          description: >-
            The account's [note](/notes). It replaces the current note; an empty
            or

            whitespace-only string clears it. To add a line, read the note first
            and send the

            combined text.
        dismiss_reason:
          type: string
          description: >-
            Why the account is dismissed, sent with `is_discarded: true`. It is
            stored as the

            account's `dismiss_reason`, apart from `notes`. A dismissal sent
            without a reason

            stores none, and a restore keeps the last reason.
        push_to_crm:
          type: boolean
          default: false
          description: >-
            Also write the owner to the matched CRM company. It applies when
            `owner_id` sets an

            owner; clearing an owner stays in Clustr. When the owner mapping is
            set to "Clustr

            sets the value", the owner is pushed whatever this flag says; when
            it is set to

            "Your CRM sets the value" or paused, the owner stays in Clustr.
            `pushToCrm` is

            accepted as the same flag.
        pushToCrm:
          type: boolean
          description: The same flag as `push_to_crm`.
        status_id:
          type: string
          nullable: true
          description: >-
            The Clustr ID (`tag_…`) of the account tag that holds this status.
            It writes that tag, and an

            empty string clears the account's tags. PUT
            /record-tags/account/{companyId} sets any account tag.

            The id from earlier responses also works.
    AccountState:
      type: object
      required:
        - company_id
      properties:
        clustr_account_id:
          type: string
          description: >-
            The account's Clustr ID, for example
            `acc_2xrcpz731r8ara24nscrwfp70s`.
          example: acc_2xrcpz731r8ara24nscrwfp70s
        clustr_tier_id:
          type: string
          description: The tier's Clustr ID, for example `tier_2qh47jkzx6h196yj9g9nsgmsym`.
          example: tier_2qh47jkzx6h196yj9g9nsgmsym
        clustr_owner_id:
          type: string
          description: The owner's Clustr ID, for example `own_80mh0ydctrfasd4ptgfh6w2fpa`.
          example: own_80mh0ydctrfasd4ptgfh6w2fpa
        clustr_cs_owner_id:
          type: string
          description: >-
            The CS owner's Clustr ID, for example
            `own_3gp4h4j95n3atvhqh02y941x4t`.
          example: own_3gp4h4j95n3atvhqh02y941x4t
        clustr_updated_by_user_id:
          type: string
          description: >-
            The Clustr ID of the member who last changed it, for example
            `usr_qrmhx879b93qqf4cm2emzfbx5k`.
          example: usr_qrmhx879b93qqf4cm2emzfbx5k
        clustr_notes_updated_by_user_id:
          type: string
          description: >-
            The Clustr ID of the member who last changed the note, for example

            `usr_58xjabtnm10gr9j2eth3ka4ygx`. Null for a write made with an API
            key.
          example: usr_58xjabtnm10gr9j2eth3ka4ygx
        company_id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_account_id`.
        tier_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_tier_id`.
        owner_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_owner_id`.
        cs_owner_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_cs_owner_id`.
        is_discarded:
          type: boolean
        notes:
          type: string
          description: The account's note. Empty when there is none.
        updated_at:
          type: string
          format: date-time
        updated_by:
          type: string
          format: uuid
          nullable: true
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_updated_by_user_id`.
        notes_updated_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the note last changed. Unlike `updated_at`, it changes only
            with the note. Null when no note has been written.
        notes_updated_by:
          type: string
          format: uuid
          nullable: true
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_notes_updated_by_user_id`.
        notes_updated_by_name:
          type: string
          nullable: true
          description: That member's name, for "edited by". Null when unknown.
        dismiss_reason:
          type: string
          nullable: true
          description: >-
            Why the account was last dismissed, stored apart from the note. It
            applies while `is_discarded` is true, and a restore keeps it.
    CRMPushOutcome:
      type: object
      description: >-
        What an owner write did in the connected CRM. The owner is saved in
        Clustr whatever this says.
      properties:
        status:
          type: string
          enum:
            - pushed
            - refused
            - failed
            - skipped
        reason:
          type: string
          description: >-
            A machine code when the push did not land: direction_crm_owns,
            direction_off, no_owner_field, writes_disabled, owner_not_in_crm,
            owner_deactivated, record_not_found, record_not_matched,
            clear_not_pushed, crm_not_connected, invalid_request,
            provider_error, owner_lookup_failed.
        message:
          type: string
          description: One sentence written for a person.
        provider:
          type: string
          description: The CRM written to.
        pushed:
          type: integer
          description: How many records were written in the CRM.
        notPushed:
          type: integer
          description: How many records the push did not cover.
    AccountFit:
      type: object
      description: >-
        An account's grade and what produced it, in the same four fields a row
        of GET /accounts

        carries. Tier and dismissal both feed the grade, so a write that sets
        either answers

        with the recomputed grade, ready to use without reading the account
        again.


        Omitted when the account has no grade, which means the workspace has
        configured no

        targeting yet.
      properties:
        fit_grade:
          type: string
          enum:
            - A+
            - A
            - B
            - C
            - D
        fit_score:
          type: number
          description: >-
            The share of the configured criterion weight this account meets,
            from 0 to 1. It reflects this workspace's own criteria, so compare
            scores within one workspace.
        fit_reasons:
          type: array
          items:
            type: string
          description: >-
            What produced the grade: the matched ICP's title, then each
            criterion met.
        fit_breakdown:
          type: object
          description: Every configured criterion behind the grade, met or not.
          properties:
            icp_id:
              type: string
              description: The Company ICP the dimensions were scored against.
            icp_title:
              type: string
            discarded:
              type: boolean
              description: >-
                True when the account is dismissed, which sets the score to
                zero.
            parts:
              type: array
              items:
                type: object
                properties:
                  key:
                    type: string
                    enum:
                      - target
                      - tier
                      - industry
                      - headcount
                      - revenue
                      - country
                  label:
                    type: string
                  weight:
                    type: number
                    description: Points this criterion is worth.
                  earned:
                    type: number
                    description: Points the account earned on it, from 0 to `weight`.
                  status:
                    type: string
                    enum:
                      - met
                      - partial
                      - missed
                      - unknown
                      - unset
                    description: >-
                      How the account did on this criterion. `unknown` means
                      Clustr holds no value for this company, and `unset` means
                      nobody has set a curated criterion (the target list or the
                      tier) on this account. Both are left out of the score;
                      only `missed` counts against it.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

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