Accounts

Create or update account

Changed on

Upserts an account by its customer-owned externalId. Attributes merge into the stored attributes (null deletes a key; replaceAttributes replaces them all). Optional members are added in the same call. Account attributes fan out to every member for segments and {{account.*}} merge tags.

post/accounts

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/accounts
  • Auth
    HTTP bearer

Request body

externalIdstring required
namestring nullable
domainstring nullable

Normalized to a hostname such as acme.com.

attributesobject

Up to 100 attributes. Null values delete keys when merging.

replaceAttributesboolean

Example request

{
  "externalId": "org_123"
}

Response

Account updated

successboolean
createdboolean

Example response

{
  "account": {
    "id": "acc_abc123",
    "externalId": "org_123",
    "name": "Acme",
    "domain": "acme.com",
    "attributes": {
      "plan": "pro",
      "seats": 5
    }
  }
}

Changes