Skip to main content
POST
/
clients
/
{id}
/
migrate
/
preview
Preview a cross-environment client migration
curl --request POST \
  --url https://api.artu.ai/clients/{id}/migrate/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Environment: <api-key>' \
  --data '
{
  "precedence": "source",
  "include": {
    "addresses": true,
    "bankAccounts": true,
    "contactMethods": true,
    "documents": true,
    "relationships": true,
    "transactions": true
  }
}
'
{
  "target": {
    "exists": true,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "blockers": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "label": "<string>",
      "reason": "<unknown>"
    }
  ],
  "items": [
    {
      "total": 4503599627370495,
      "creates": 4503599627370495,
      "updates": 4503599627370495
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the dashboard.

X-Environment
string
header
required

Target environment for the request. Must be "test" or "live".

Path Parameters

id
string<uuid>
required

Body

application/json
to
enum<string>
required
Available options:
test,
live
precedence
enum<string>
default:source
Available options:
source,
target
include
object

Response

200 - application/json

OK

target
object
required
blockers
object[]
required
items
object[]
required