---
title: "Account removed relation"
method: POST
path: "accountEvents_webhook-account-removed-relation"
---

# Account removed relation

`POST accountEvents_webhook-account-removed-relation` (webhook)

Webhook for the `account.removed-relation` event. Fires when a relationship is removed between this Account and another object (an Account or a Transaction). The related object is identified by the `context`. For more info see [Webhooks Overview](https://docs.withpersona.com/webhooks).

## Headers

- `Persona-Signature` string
- `Persona-Webhook-Attempts-Made` integer
- `Persona-Webhook-Attempts-Left` integer
- `Persona-Webhook-First-Attempted-At` integer

## Payload

- object
  - `data` WebhooksWebhookAccountRemovedRelationPayloadContentApplicationJsonSchemaData
    - `type` 'event'
    - `id` string: Unique identifier for this Event. Starts with `evt_`.
    - `attributes` WebhooksWebhookAccountRemovedRelationPayloadContentApplicationJsonSchemaDataAttributes
      - `created-at` string, date-time: Datetime when the event was created.
      - `name` 'account.removed-relation'
      - `payload` WebhooksWebhookAccountRemovedRelationPayloadContentApplicationJsonSchemaDataAttributesPayload
        - `data` Account: An Account object. Note that `fields` is **not** key inflected.
          - `id` string
          - `attributes` VerificationIncludedObjectsItemsDiscriminatorMappingAccountAttributes
            - `reference-id` string, nullable
            - `account-type-name` string
            - `created-at` string, date-time
            - `updated-at` string, date-time
            - `redacted-at` string, date-time, nullable
            - `fields` VerificationIncludedObjectsItemsDiscriminatorMappingAccountAttributesFields: JSON key-value pairs of field name to field value. Exact schema depends on the configuration of the Account Type for this Account. Keys in `fields` are **not** key inflected.
              - …
            - `tags` string[]
            - `account-status` string
          - `relationships` VerificationIncludedObjectsItemsDiscriminatorMappingAccountRelationships
            - `account-type` VerificationIncludedObjectsItemsDiscriminatorMappingAccountRelationshipsAccountType
              - …
        - `included` AccountsIncludedObjectsItems[]
          - `type` 'account-type', required: Discriminator value: account-type
          - `id` string
          - `attributes` AccountsIncludedObjectsItemsDiscriminatorMappingAccountTypeAttributes
            - `name` string
            - `created-at` string, date-time
            - `updated-at` string, date-time, nullable
            - `field-schemas` FieldSchema[]
              - …
          - `relationships` AccountsIncludedObjectsItemsDiscriminatorMappingAccountTypeRelationships
            - `account-statuses` AccountsIncludedObjectsItemsDiscriminatorMappingAccountTypeRelationshipsAccountStatuses
              - …
            - `default-account-status` AccountsIncludedObjectsItemsDiscriminatorMappingAccountTypeRelationshipsDefaultAccountStatus
              - …
      - `context` WebhooksWebhookAccountRemovedRelationPayloadContentApplicationJsonSchemaDataAttributesContext: Identifies the relationship that was removed and the related object.
        - `relation-schema-key` string: The key of the relationship schema that connected this Account to the related object.
        - `target-account-id` string, nullable: Token of the related Account when the related object is an Account, otherwise `null`. Starts with `act_`.
        - `target-txn-id` string, nullable: Token of the related Transaction when the related object is a Transaction, otherwise `null`. Starts with `txn_`.

## Acknowledgement `200`

Webhook received successfully

---

[API](https://skmtc.dev/withpersona/apis/withpersona-5.md) - [All operations](https://skmtc.dev/withpersona/apis/withpersona-5/llms.txt) - [OpenAPI document](https://skmtc.dev/withpersona/apis/withpersona-5/revisions/0281de74819e?raw)
