Skip to main content
POST
/
api
/
v2
/
account
/
_assert
Upsert an account by domain_name match
curl --request POST \
  --url https://api.example.com/api/v2/account/_assert \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "match": {
    "id": "<account-uuid>"
  },
  "attributes": {
    "name": "Acme Corporation"
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "attributes": {
      "id": {
        "value": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "value_type": "uuid"
      },
      "organization_id": {
        "value": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "value_type": "uuid"
      },
      "created_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "updated_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "display_name": {
        "value": "<string>",
        "value_type": "string"
      },
      "owner_user_id": {
        "value": {
          "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "related_record_type": "<string>"
        },
        "value_type": "record_reference"
      },
      "created_by_user_id": {
        "value": {
          "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "related_record_type": "<string>"
        },
        "value_type": "record_reference"
      },
      "domains": [
        {
          "value": {
            "domain_name": "<string>",
            "is_primary": true
          },
          "value_type": "account_domain"
        }
      ],
      "description": {
        "value": "<string>",
        "value_type": "long_text"
      },
      "official_website": {
        "value": "<string>",
        "value_type": "string"
      },
      "websites": [
        {
          "value": "<string>",
          "value_type": "string"
        }
      ],
      "linkedin_url": {
        "value": "<string>",
        "value_type": "string"
      },
      "x_url": {
        "value": "<string>",
        "value_type": "string"
      },
      "facebook_url": {
        "value": "<string>",
        "value_type": "string"
      },
      "zoominfo_url": {
        "value": "<string>",
        "value_type": "string"
      },
      "address": {
        "value": {
          "street_one": "<string>",
          "street_two": "<string>",
          "city": "<string>",
          "state": "<string>",
          "country": "<string>",
          "zip_code": "<string>"
        },
        "value_type": "address"
      },
      "estimated_annual_revenue": {
        "value": {
          "amount": "<string>"
        },
        "value_type": "currency"
      },
      "funding_raised": {
        "value": {
          "amount": "<string>"
        },
        "value_type": "currency"
      },
      "estimated_employee_count": {
        "value": 123,
        "value_type": "number"
      },
      "current_stage_id": {
        "value": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "display_value": "<string>",
          "api_name": "<string>",
          "color": "<string>"
        },
        "value_type": "account_stage"
      },
      "keyword_list": [
        {
          "value": "<string>",
          "value_type": "string"
        }
      ],
      "category_list": [
        {
          "value": "<string>",
          "value_type": "string"
        }
      ],
      "technology_list": [
        {
          "value": "<string>",
          "value_type": "string"
        }
      ],
      "research_tldr": {
        "value": "<string>",
        "value_type": "rich_text"
      },
      "last_activity_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_voice_call": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_meeting": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_global_thread": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_engaged_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_inbound_meeting_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_inbound_voice_call_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_inbound_global_thread_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_outreached_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_outbound_meeting_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_outbound_voice_call_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "last_outbound_global_thread_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "archived_at": {
        "value": "2023-11-07T05:31:56Z",
        "value_type": "timestamp"
      },
      "created_source": {
        "value": "<string>",
        "value_type": "enum"
      },
      "created_source_form_submission_details": {
        "value": {
          "form_submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "form_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "source_event_occurred_at": "2023-11-07T05:31:56Z",
          "utm_campaign": "<string>",
          "utm_source": "<string>",
          "utm_medium": "<string>",
          "utm_content": "<string>",
          "utm_term": "<string>"
        },
        "value_type": "created_source_form_submission_details"
      },
      "owner_team_id": {
        "value": {
          "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "related_record_type": "<string>"
        },
        "value_type": "record_reference"
      },
      "updated_by_user_id": {
        "value": {
          "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "related_record_type": "<string>"
        },
        "value_type": "record_reference"
      },
      "archived_by_user_id": {
        "value": {
          "related_record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "related_record_type": "<string>"
        },
        "value_type": "record_reference"
      }
    },
    "record_type": "account"
  },
  "meta": {
    "matched_on": {}
  }
}

Authorizations

Authorization
string
header
required

Reevo API key passed as Authorization: Bearer <api-key>.

Body

application/json

Assert (upsert) request — match block + create-shape attributes.

Reuses the shared writable create-shape directly. Per FR-035 the assert body carries no relationships block. The match-key field is immutable on the update branch, so a key present in BOTH match and attributes is a structural conflict rejected here with a generic 422. An empty attributes block (zero set fields) is likewise structural: an assert must carry at least one attribute so the no-match branch can CREATE the record.

attributes
AccountCreateRequestAttributes · object
required

Create standard-field surface.

match
AccountDomainNameMatchKey · object
required

Assert match against the account's domain_name.

Single-member match key (vs contact's two-member email union). The account domain_name is NOT unique, so the write service explicitly counts hits and raises 409 ambiguous_match on more than one.

Response

Successful Response

Response shape for the account _assert (upsert) endpoint.

data
AccountObjectRecord · object
required
meta
AssertMeta · object
required

Metadata describing the outcome of an assert (upsert) call.