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

---
id: 72ab8268-e26d-409e-b0e2-33043f0b6133
---

# Smart transfer API (BETA)

> Use the smart transfer API to migrate CRM data from an external system into HubSpot.

> [accordion] Scope requirements

> [!WARNING]
>
> This functionality is currently in beta. By participating in this beta, you agree to HubSpot's [Developer Terms](https://legal.hubspot.com/developer-terms) and [Developer Beta Terms](https://legal.hubspot.com/developerbetaterms). Note that the functionality is still under active development and is subject to change based on testing and feedback.

Use the smart transfer API to migrate CRM data from an external system (such as Salesforce, Dynamics 365, Marketo, Pardot, Pipedrive, or Zoho) into HubSpot. The API covers the typical full migration lifecycle and follow up actions, including:

* Auditing a connected source account before the migration
* Starting and managing data transfers
* Configuring transfer settings
* Checking transfer readiness
* Reverting migrated data
* Marking migrated properties for cleanup
* Reviewing past data transfers

## Audit your source account

Before starting a migration, you can run an audit to inspect the source account, understand which records can be migrated, and preview field mappings.

### Start an audit

To start an audit, make a `POST` request to `/crm/smart-transfer/2027-03-beta/audits/async`.

```json theme={null}
{
  "accountId": "48211903"
}
```

| Parameter | Description |
| - | - |
| `accountId` | The identifier of the connected source account to audit. |

On success, the response returns `202 Accepted` with the audit `id` and a URL you can use to poll the audit's status. For example:

```json theme={null}
{
  "id": "9123847",
  "links": {
    "status": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/audits/async/tasks/9123847/status"
  }
}
```

### Track audit status

To poll an audit's status, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}`. You can also retrieve an audit by `accountId` using `/crm/smart-transfer/2027-03-beta/audits?accountId={accountId}`.

The response includes the audit's current `status`, which moves through the following stages: `PENDING`, `IN_PROGRESS`, `COMPLETED`, or `FAILED`. When `status` is `FAILED`, an `errorMessage` field is also returned.

Your response will look similar to:

```json theme={null}
{
  "id": "9123847",
  "crmType": "SALESFORCE",
  "status": "COMPLETED",
  "accountId": "48211903",
  "createdAt": "2026-06-30T14:05:11.482Z",
  "updatedAt": "2026-06-30T14:09:52.117Z",
  "userId": "814477862"
}
```

### Read audit errors

To list which records the audit flagged as unable to migrate and why, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}/errors`.

Your response will look similar to:

```json theme={null}
{
  "total": 2,
  "results": [
    {
      "sourceObject": "Lead",
      "hubSpotObject": "contact",
      "message": "Missing required email; record will be skipped."
    },
    {
      "sourceObject": "Opportunity",
      "hubSpotObject": "deal",
      "message": "Unsupported currency code 'XTS'."
    }
  ]
}
```

### Read record counts

To see how many records of each source object would be migrated, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}/record-counts`.

Your response will look similar to:

```json theme={null}
{
 "results": [
    {
      "sourceObject": "Contact",
      "hubSpotObject": "contact",
      "recordsCount": 18452,
      "detailType": "PROPERTY",
      "objectMappingsCount": 37,
      "transferPhase": "CONFIGURE"
    },
    {
      "sourceObject": "Account",
      "hubSpotObject": "company",
      "recordsCount": 3120,
      "objectMappingsCount": 21
    }
  ]
}
```

### Read object mappings

To retrieve the source object to HubSpot object mappings the audit discovered, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}/mappings`. Use the returned `id` from each mapping to retrieve detailed field-level mappings.

Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "id": "5501",
      "sourceObjectName": "Contact",
      "hubSpotObjectName": "contact",
      "detailType": "PROPERTY"
    },
    {
      "id": "5503",
      "sourceObjectName": "OpportunityStage",
      "hubSpotObjectName": "deal",
      "detailType": "PIPELINE"
    }
  ]
}
```

### Read mapping details

To retrieve individual field mapping entries within a single object mapping, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}/mappings/{mappingId}/details`. The endpoint supports `limit` and `after` query parameters for pagination.

> [!NOTE]
>
> To understand the schema of each `detailType`, prior to retrieving mapping details, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/mapping-details/metadata`.

Your response will look similar to:

```json theme={null}
{
  "total": 23,
  "results": [
    {
      "detailType": "PROPERTY",
      "data": {
        "fieldName": "Close Date",
        "propertyTransferType": "SYNC"
      }
    }
  ],
  "paging": {
    "next": {
      "after": "Mg%3D%3D",
      "link": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/audits/441466/mappings/105241245/details?limit=2&after=Mg%3D%3D"
    }
  }
}
```

For `PROPERTY` detail types, the `propertyTransferType` field indicates how the field is migrated. Valid values are `SYNC`, `POST_SYNC`, and `UNSUPPORTED`.

### Read mapping diffs

To see changes detected for a mapping since the previous audit, make a `GET` request to `/crm/smart-transfer/2027-03-beta/audits/{auditId}/mappings/{mappingId}/diffs`. Filter by `status` (`ADDED`, `REMOVED`, or `UPDATED`) using the `status` query parameter.

Your response will look similar to:

```json theme={null}
{
  "total": 4,
  "results": [
    {
      "detailType": "PIPELINE",
      "status": "ADDED",
      "data": {
        "name": "Sales Pipeline",
        "stageName": "Closed Won"
      }
    }
  ]
}
```

## Configure transfer settings

Transfer settings control which objects are included in a migration and how each type is configured. Settings are stored per connected account and keyed by `dataType`.

### List connected accounts

To retrieve all connected source accounts available for migration, make a `GET` request to `/crm/smart-transfer/2027-03-beta/accounts`.

Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "id": "48211903",
      "name": "Acme Salesforce",
      "crmAccountIdentifier": "acme.my.salesforce.com",
      "crmType": "SALESFORCE"
    }
  ]
}
```

### List transfer settings

To retrieve all configured settings for a connected account, make a `GET` request to `/crm/smart-transfer/2027-03-beta/accounts/{accountId}/settings`. You can filter by data type using the `dataTypes` query parameter. Supported values for your migration can be retrieved using the [read data types endpoint](#read-configured-data-types).

The returned `source` field in each result indicates whether a setting was explicitly saved (`SAVED`) or generated dynamically from the connected source system (`DEFAULT`).

Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "dataType": "DEAL_PIPELINE",
      "source": "SAVED",
      "configuration": {
        "type": "PIPELINE",
        "pipelines": [
          {
            "name": "Sales Pipeline",
            "enabled": true,
            "stages": [
              { "name": "Prospecting", "enabled": true },
              { "name": "Closed Won", "enabled": true }
            ]
          }
        ],
        "allowOverrideDefaultPipeline": false
      }
    }
  ]
}
```

### Upsert transfer settings

To create or update settings for a specific data type, make a `PUT` request to `/crm/smart-transfer/2027-03-beta/accounts/{accountId}/settings/{dataType}`. Existing entries for the specified data type are updated and new entries are created. Returns `204 No Content` on success.

> [!NOTE]
>
> To retrieve the schema for each supported setting type before updating, make a `GET` request to `/crm/smart-transfer/2027-03-beta/accounts/settings/metadata`.

For example, your request may look similar to the following:

```json theme={null}
{
  "type": "USER",
  "users": [
    {
      "firstName": "Jane",
      "lastName": "Smith",
      "email": "jane.smith@example.com",
      "alreadyExists": true,
      "enabled": false
    }
  ]
}
```

> [!WARNING]
>
> Fields where `writable` is `false` in the setting type schema are generated dynamically from the connected source system and cannot be modified. Any values you submit for non-writable fields are ignored.

### Delete transfer settings

To remove settings for a specific data type, make a `DELETE` request to `/crm/smart-transfer/2027-03-beta/accounts/{accountId}/settings/{dataType}`. A `204 No Content` response is returned on success.

### Read configured data types

To retrieve the data types available for configuration, make a `GET` request to `/crm/smart-transfer/2027-03-beta/accounts/{accountId}/settings/data-types`.

```json theme={null}
{
  "results": ["CONTACT_PROPERTY", "DEAL_PIPELINE", "USER"]
}
```

The values in this response are the valid `dataType` values you can use in the `PUT` and `DELETE` settings endpoints.

## Check stage readiness

Stages are the migration units for a given CRM type (for example, `contact-property-zendesk` or `deal-property-dynamics365`). Check stage readiness before starting a transfer to confirm each stage is configured correctly.

### List stages with validation status

To retrieve all active stages for a connected account and see whether each is ready to run, make a `GET` request to `/crm/smart-transfer/2027-03-beta/stages?accountId={accountId}`.

> [!NOTE]
>
> To understand the schema of each `configurationRule` type in validation results, make a `GET` request to `/crm/smart-transfer/2027-03-beta/stages/validation-rules/metadata`.

Each stage includes a `validationResults` array with `OK`, `WARNING`, `DISABLED`, or `VALIDATION_ERROR` status indicators. Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "id": "email-engagement-salesforce",
      "crmType": "SALESFORCE",
      "phase": "CONFIGURE",
      "dependsOn": [],
      "validationResults": [
        {
          "status": "OK",
          "title": "Property mapping complete",
          "message": "All required fields are mapped."
        }
      ]
    }
  ]
}
```

## Start and manage a transfer

Once your source account is audited and settings are configured, you can start a transfer to migrate records into HubSpot.

### Start a transfer

To start a transfer, make a `POST` request to `/crm/smart-transfer/2027-03-beta/transfers/async`. The transfer runs asynchronously and returns an `id`.

```json theme={null}
{
  "accountId": "48211903",
  "stages": ["contact-property-salesforce"],
  "phase": "CONFIGURE"
}
```

| Parameter | Description |
| - | - |
| `accountId` | The identifier of the connected source account to migrate. |
| `stages` | The set of stage names to include. |
| `phase` | Optional. `CONFIGURE` (default) or `POST_SYNC`. |

The response returns `202 Accepted` with a transfer `id`:

```json theme={null}
{
  "id": "7012345",
  "links": {
    "status": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/transfers/async/tasks/7012345/status"
  }
}
```

Once the transfer is running, use `GET /crm/smart-transfer/2027-03-beta/transfers/{transferId}/tasks` to [retrieve individual task IDs](#list-transfer-tasks).

> [!WARNING]
>
> Specific objects and tools require their own additional OAuth scopes, beyond the standard `crm.smart_transfer.transfer.write` scope. For example, migrating `CUSTOM_OBJECT` records also requires `crm.schemas.custom.write`.

### Track transfer status

To poll the transfer status, make a `GET` request to `/crm/smart-transfer/2027-03-beta/transfers/{transferId}`. You can also retrieve a transfer by `accountId` using `/crm/smart-transfer/2027-03-beta/transfers?accountId={accountId}`.

The `status` field moves through the following stages: `PENDING`, `IN_PROGRESS`, `RESUMING`, `COMPLETED`, `FAILED`, `CANCELLED`, or `PAUSED`. `RESUMING` is returned after a resume is requested, but can be treated as in-progress.

```json theme={null}
{
  "id": "7012345",
  "crmType": "SALESFORCE",
  "status": "COMPLETED",
  "accountId": "48211903",
  "phase": "CONFIGURE",
  "userId": "112233",
  "createdAt": "2026-06-30T15:00:00.000Z",
  "updatedAt": "2026-06-30T17:42:11.000Z",
  "completedAt": "2026-06-30T17:42:11.000Z"
}
```

### List transfer tasks

To retrieve a summary for every task in a transfer, make a `GET` request to `/crm/smart-transfer/2027-03-beta/transfers/{transferId}/tasks`. Each result maps to a specific migration stage.

```json theme={null}
{
  "results": [
    {
      "id": "9001",
      "stage": "contact-property-salesforce",
      "dataType": "CONTACT_PROPERTY",
      "phase": "CONFIGURE",
      "createdAt": "2026-06-30T15:01:00.000Z",
      "createdObjectsCount": 18452,
      "taskErrorsCount": 0,
      "skippedErrorsCount": 3,
      "status": "COMPLETED"
    }
  ]
}
```

### Cancel, pause, or resume transfer tasks

To control individual tasks within a running transfer, make a `POST` request to the following endpoints:

* `/crm/smart-transfer/2027-03-beta/transfers/cancel`
* `/crm/smart-transfer/2027-03-beta/transfers/pause`
* `/crm/smart-transfer/2027-03-beta/transfers/resume`

Include the  following required fields in your request body:

| Parameter | Description |
| - | - |
| `transferId` | The transfer whose tasks you want to act on. |
| `taskIds` | The list of [task IDs](#list-transfer-tasks) to cancel, pause, or resume. |

For example, your request will look similar to:

```json theme={null}
{
  "transferId": "3252525",
  "taskIds": ["9001", "9002"]
}
```

A `204 No Content` response is returned on success.

## Review transfer results

After a transfer completes, review the per-task results, any errors, and the record ID mappings from source to HubSpot.

### Search transfer mappings

To retrieve source object to HubSpot object record ID mappings created by a transfer, make a `GET` request to `/crm/smart-transfer/2027-03-beta/transfers/{transferId}/mappings/search`. Filter by task IDs using `taskIds` and narrow by a search term using `q`.

Your response will look similar to:

```json theme={null}
{
  "total": 18452,
  "results": [
    {
      "id": "55001",
      "sourceId": "003Xx000001gErI",
      "targetId": "701",
      "record": "Acme Corp",
      "taskId": "9001",
      "thirdPartyLink": "https://salesforce.com/003Xx000001gErI",
      "hubSpotLink": "https://app.hubspot.com/contacts/12345/contact/701"
    }
  ],
  "paging": {
    "next": {
      "after": "NTUwMDE=",
      "link": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/transfers/7012345/mappings/search?taskIds=9001&limit=1&after=NTUwMDE="
    }
  }
}
```

### List completed transfer tasks

Use the [task tracking endpoint](#list-transfer-tasks) to review the tasks completed in a past transfer.

### List transfer task errors

To retrieve hard task-level errors for a transfer, make a `GET` request to `/crm/smart-transfer/2027-03-beta/transfers/{transferId}/tasks/errors`. Supports `limit` and `after` for pagination.

Your response will look similar to:

```json theme={null}
{
  "total": 1,
  "results": [
    {
      "taskId": "9002",
      "stage": "contact-property-salesforce",
      "message": "Export timed out after 30 minutes.",
      "dataType": "CONTACT_PROPERTY"
    }
  ]
}
```

To retrieve soft errors (i.e. records that were skipped during the transfer), make a `GET` request to `/crm/smart-transfer/2027-03-beta/transfers/{transferId}/errors/search`. Filter by `taskIds` and `q`.

Your response will look similar to:

```json theme={null}
{
  "total": 3,
  "results": [
    {
      "id": "77001",
      "taskId": "9001",
      "sourceId": "003Xx000001zZzZ",
      "error": "Missing required email field; record skipped.",
      "severity": "LOW",
      "createdAt": "2026-08-27T08:38:13.750Z",
      "thirdPartyLink": "https://salesforce.com/003Xx000001zZzZ"
    }
  ]
}
```

## Revert a transfer

A revert removes HubSpot objects imported by specific transfer tasks, restoring your account to its pre-migration state for those records. Reverts cannot be undone.

> [!WARNING]
>
> Reverting transfer tasks for certain objects requires additional OAuth scopes beyond `crm.smart_transfer.revert.write`. For example, reverting contacts also requires `crm.objects.contacts.write`. Ensure all necessary scopes are granted before starting a revert.

### Start a revert

To start a revert, make a `POST` request to `/crm/smart-transfer/2027-03-beta/reverts/async`.

Include the following in your request body:

| Parameter | Description |
| - | - |
| `accountId` | The connected source account identifier. |
| `taskIds` | The list of transfer [task IDs](#list-transfer-tasks) whose imported data should be reverted. |

```json theme={null}
{
  "accountId": "48211903",
  "taskIds": ["9001", "9002"]
}
```

The response returns `202 Accepted` with a task `id`:

```json theme={null}
{
  "id": "8811",
  "links": {
    "status": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/reverts/async/tasks/8811/status"
  }
}
```

### Track revert status

Poll the revert status by making a `GET` request to `/crm/smart-transfer/2027-03-beta/reverts/{revertId}`. You can also retrieve a revert by `accountId` using `/crm/smart-transfer/2027-03-beta/reverts?accountId={accountId}`.

Your response will look similar to:

```json theme={null}
{
  "id": "8811",
  "status": "COMPLETED",
  "phase": "CONFIGURE",
  "accountId": "48211903",
  "crmType": "SALESFORCE",
  "createdAt": "2026-07-01T09:14:00.000Z",
  "updatedAt": "2026-07-01T09:15:00.000Z"
}
```

### List revert tasks

To retrieve the individual cleanup tasks within a revert, make a `GET` request to `/crm/smart-transfer/2027-03-beta/reverts/{revertId}/tasks`. Filter by `dataTypes` and paginate with `limit` and `after`.

Your response will look similar to:

```json theme={null}
{
  "total": 2,
  "results": [
    {
      "id": "30001",
      "status": "COMPLETED",
      "dataType": "CONTACT_PROPERTY",
      "stage": "contact-property-salesforce",
      "deletedObjectsCount": 18452,
      "userId": "23452632",
      "createdAt": "2026-07-01T09:00:00.000Z",
      "updatedAt": "2026-07-01T09:15:00.000Z"
    }
  ]
}
```

### Search revert errors

To retrieve errors encountered during revert tasks, make a `GET` request to `/crm/smart-transfer/2027-03-beta/reverts/{revertId}/errors/search`. Filter by `taskIds`, `dataTypes`, and `q`.

Your response will look similar to:

```json theme={null}
{
  "total": 1,
  "results": [
    {
      "id": "99501",
      "taskId": "30001",
      "objectId": "701",
      "message": "Contact 701 could not be deleted: associated deal is locked.",
      "dataType": "CONTACT_PROPERTY",
      "createdAt": "2026-07-01T09:05:00.000Z"
    }
  ]
}
```

## Label migrated records

Post-migration markup flags the properties created by a transfer by moving them into a "Migration Cleanup" property group and adding suffixes to their labels, so they can be identified and cleaned up after the transfer. Before you can start a markup job, the transfer `status` must be `COMPLETED`, otherwise it returns a `400` error. Learn how to [poll transfer status](#track-transfer-status).

### Start a markup

To start a markup job, make a `POST` request to `/crm/smart-transfer/2027-03-beta/markups/async`. In the request body, include the source account ID.

```json theme={null}
{
  "accountId": "48211903"
}
```

The response returns `202 Accepted` with a task `id`:

```json theme={null}
{
  "id": "6601",
  "links": {
    "status": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/markups/async/tasks/6601/status"
  }
}
```

> [!WARNING]
>
> A re-run is allowed only when the existing markup's `status` is `FAILED`, in either the `MARKUP` or `CLEANUP` phase.

### Track markup status

Poll the markup status by making a `GET` request to `/crm/smart-transfer/2027-03-beta/markups/{markupId}`. You can also retrieve a markup by `accountId` using `/crm/smart-transfer/2027-03-beta/markups?accountId={accountId}`.

The returned `status` field reflects the current state within each phase: `PENDING`, `IN_PROGRESS`, `COMPLETED`, or `FAILED`. The `phase` field distinguishes between the two phases: `MARKUP` (the property labeling) and `CLEANUP` (removal of markup labels).

Your response will look similar to:

```json theme={null}
{
  "id": "6601",
  "crmType": "SALESFORCE",
  "status": "COMPLETED",
  "phase": "MARKUP",
  "accountId": "48211903",
  "createdAt": "2026-07-02T10:00:00.000Z",
  "updatedAt": "2026-07-02T10:08:00.000Z",
  "userId": "112233"
}
```

### List markup properties

To retrieve the HubSpot properties that a markup job set, or will set, on migrated records, make a `GET` request to `/crm/smart-transfer/2027-03-beta/markups/{markupId}/properties`. This endpoint is paginated and supports `limit` and `after` query parameters.

The returned `markupLabel` field indicates the category assigned to the property. Valid values are `QA`, `NONE`, `USED`, `UNUSED`, `ENUMERATION`, and `TEXT_PLACEHOLDER`.

Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "objectType": "CONTACT",
      "propertyName": "firstname",
      "propertyLabel": "First name",
      "markupLabel": "USED"
    },
    {
      "objectType": "CONTACT",
      "propertyName": "legacy_score",
      "propertyLabel": "Legacy score (No data)",
      "markupLabel": "UNUSED"
    }
  ]
}
```

### List markup errors

To retrieve records the markup job failed to label, make a `GET` request to `/crm/smart-transfer/2027-03-beta/markups/{markupId}/errors`. Supports `limit` and `after` for pagination.

Your response will look similar to:

```json theme={null}
{
  "results": [
    {
      "objectType": "CONTACT",
      "objectId": "701",
      "message": "Property update failed: property is read-only."
    }
  ]
}
```

### Trigger markup cleanup

To remove the markup labels from migrated records, make a `POST` request to `/crm/smart-transfer/2027-03-beta/markups/cleanup/async`. Include the `markupId` in your request body.

```json theme={null}
{
  "markupId": "6601"
}
```

The response returns `202 Accepted` with the markup `id` and a status URL:

```json theme={null}
{
  "id": "6601",
  "links": {
    "status": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/markups/cleanup/async/tasks/6601/status"
  }
}
```

You can poll the cleanup status using the [tracking endpoint](#track-markup-status).

> [!WARNING]
>
> If cleanup has already been completed for the markup, the endpoint returns `409 OBJECT_ALREADY_EXISTS`. If the markup is still running when cleanup is requested, the endpoint returns `422 UNPROCESSABLE_ENTITY`.

## View past transfers

To retrieve a paged history of all transfer task runs across previous transfers for your account, make a `GET` request to `/crm/smart-transfer/2027-03-beta/past-transfers`. Supports `limit` and `after` for pagination.

The `status` field for each past transfer entry can be `TRANSFERRED`, `TRANSFER_FAILED`, `REVERTED`, or `REVERT_FAILED`.

Your response will look similar to:

```json theme={null}
{
  "total": 1690,
  "results": [
    {
      "id": "775380",
      "crmType": "SALESFORCE",
      "crmAccountIdentifier": "acme.my.salesforce.com",
      "status": "REVERTED",
      "objectName": "Contact property",
      "objectsCount": 287,
      "errorsCount": 0,
      "createdAt": "2026-09-10T11:23:26.566Z",
      "userId": "814477862"
    }
  ],
  "paging": {
    "next": {
      "after": "Mg%3D%3D",
      "link": "https://api.hubapi.com/crm/smart-transfer/2027-03-beta/past-transfers?limit=2&after=Mg%3D%3D"
    }
  }
}
```

***

## Scope reference

The smart transfer API uses the following scopes, which give permissions for specific endpoints.

| Scope | Covers |
| - | - |
| `crm.smart_transfer.audit.read` | All `GET` endpoints under `/audits` |
| `crm.smart_transfer.audit.write` | `POST /audits/async` |
| `crm.smart_transfer.transfer.read` | All `GET` endpoints under `/transfers`, `/accounts`, `/stages`, `/markups`, and `/past-transfers` |
| `crm.smart_transfer.transfer.write` | `POST /transfers/async`, `/transfers/cancel`, `/transfers/pause`, `/transfers/resume`; `PUT` and `DELETE` `/accounts/{accountId}/settings`; `POST /markups/async`; `POST /markups/cleanup/async` |
| `crm.smart_transfer.revert.read` | All `GET` endpoints under `/reverts` |
| `crm.smart_transfer.revert.write` | `POST /reverts/async` |

Some operations require additional object scopes beyond the smart transfer scopes:

* **Transfers:** migrating objects requires the corresponding write scopes for each object being transferred.
* **Reverts:** reverting transferred records requires the corresponding scope for deleting the objects being reverted.

Based on the data type you're using, you'll need the corresponding scope listed in the table below:

| Data type | App Permission |
| - | - |
| `CUSTOM_OBJECT` | `crm.schemas.custom.write` |
| `NOTE`, `NOTE_ENGAGEMENT` | `crm.schema.notes.write` |
| `TASK`, `TASK_ENGAGEMENT` | `crm.schema.tasks.write` |
| `CALL_ENGAGEMENT` | `crm.schema.calls.write` |
| `MEETING_ENGAGEMENT` | `crm.schema.meetings.write` |
| `EMAIL_ENGAGEMENT` | `crm.schema.emails.write` |
| `CONTACT_PROPERTY` | `crm.schema.contacts.write` |
| `COMPANY_PROPERTY` | `crm.schema.companies.write` |
| `DEAL_PROPERTY` | `crm.schemas.deals.write` |
| `TICKET_PROPERTY` | `crm.schemas.tickets.write` |
| `INVOICE_PROPERTY` | `crm.schemas.invoices.write` |
| `PRODUCT_PROPERTY` | `e-commerce` |
| `ORDER_PROPERTY` | `crm.schemas.orders.write` |
| `CALL_PROPERTY` | `crm.schemas.calls.write` |
| `MEETING_PROPERTY` | `crm.schemas.meetings.write` |
| `DEAL_PIPELINE` | `crm.schemas.deals.write` |
| `TICKET_PIPELINE` | `crm.schemas.tickets.write` |
| `ORDER_PIPELINE` | `crm.schemas.orders.write` |
| `WORKFLOW`, `CONTACT_WORKFLOW`, `COMPANY_WORKFLOW`, `DEAL_WORKFLOW`, `WORKFLOW_AI` | `workflows.delete` |
| `ASSOCIATION_LABEL` | `crm.schemas.companies.write` |
| `LINE_ITEM` | `crm.objects.line_items.write` |
| `LIST`, `SEGMENT` | `crm.lists.write` |
| `ATTACHMENT` | `filemanager.write` |
| `USER` | `crm.objects.users.write` |
| `TEAM` | `settings.users.teams.write` |
| `TICKET_COMMENT` | `crm.schema.notes.write`, `crm.schemas.emails.write` |
| `CONVERSATION` | `conversations.write` |
| `EMAIL_TEMPLATE` | `content` |
| `FORM` | `crm.objects.forms.write` |
| `CURRENCY` | `settings.currencies.write` |
| `DEAL_PARTICIPANT_ASSOCIATION`, DEAL\_PERSON\_ASSOCIATION, DEAL\_CONTACT\_ASSOCIATION | `crm.schema.contacts.write`, `crm.schemas.deals.write` |
| `ORGANIZATION_RELATIONSHIP_ASSOCIATION` | `crm.schemas.companies.write` |
| `CONTACT_TAG` | `crm.schema.contacts.write` |
| `ACTIVITY` | `crm.schema.calls.write`, `crm.schemas.emails.write`, `crm.schema.meetings.write`, crm.schema.tasks.write |

For example, to transfer or revert contacts, the `crm.objects.contacts.write` scope is required.

Learn more about the [available scopes](https://developers.hubspot.com/docs/apps/developer-platform/build-apps/authentication/scopes.md#list-of-available-scopes).

## Error responses

All error responses use a standard body:

```json theme={null}
{
  "status": "error",
  "message": "accountId must be numeric",
  "category": "VALIDATION_ERROR",
  "correlationId": "a4e3f1b2-5c6d-7e8f-9a0b-1c2d3e4f5a6b",
  "links": {
    "docs": "https://developers.hubspot.com/docs"
  }
}
```

Common error cases include:

* `400 VALIDATION_ERROR`: a required parameter is missing or invalid. For example, a non-numeric ID, an empty `taskIds` list, an unknown enumeration value, a `limit` out of range  (up to 1,000), or a duplicate markup start for the same account.
* `403`: the request is missing a required [scope](#scope-reference).
* `404 OBJECT_NOT_FOUND`: the ID does not belong to the authenticated account. Cross-account access returns `404` to prevent leaks.
* `409 OBJECT_ALREADY_EXISTS`: the operation is not allowed given the current state. Returned by `POST /markups/cleanup/async` if cleanup has already been requested, and by `GET /markups/{markupId}/properties` if called after cleanup has completed.
* `422 UNPROCESSABLE_ENTITY`: returned by `POST /markups/cleanup/async` if a cleanup is requested while the markup is still running.
* `429`: the rate limit was exceeded. Check the `Retry-After` header for how long to wait before retrying.
* `500 INTERNAL_ERROR`: an unexpected server error. Retry the request shortly or contact support if the problem persists.
