Brand user migrations move end users between account-level scope and brand-level scope as part of brand user separation. You can use the API to list migrations for a brand, create a migration, or update a migration's status. Brand user migrations are available on accounts with Department Spaces.

JSON format

Brand User Migrations are represented as JSON objects with the following properties:

NameTypeRead-onlyMandatoryDescription
account_idintegerfalsefalseID of the account the migration belongs to
activebooleanfalsefalseWhether the migration is currently active
brand_idintegerfalsefalseID of the brand the migration is scoped to
completed_atstringfalsefalseWhen the migration was completed; null until the migration completes
directionobjectfalsefalse
idstringfalsefalseULID of the brand user migration
jobsarrayfalsefalseThe background jobs associated with the migration
modestringfalsefalseExecution mode of the migration. Allowed values are "manual", or "auto".
statusstringfalsefalseCurrent status of the migration. Allowed values are "in_progress", "reconciling", "aborted", or "completed".
updated_atstringfalsefalseWhen the migration was last updated
urlstringfalsefalseThe API url of this migration

List Brand User Migrations

  • GET /api/v2/brands/{brand_id}/user_migrations

Returns a list of brand user migrations for a specific brand, sorted by creation date in descending order.

The response is not paginated; all migrations for the brand are returned.

Allowed For

  • Admins

Availability

Available on accounts with Department Spaces.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • brands:read

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations"	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations")		.newBuilder();
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "user_migrations": [    {      "account_id": 1234567,      "active": true,      "brand_id": 360002783572,      "completed_at": null,      "direction": {        "from": {          "scope": "account"        },        "to": {          "scope": "brand"        }      },      "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",      "jobs": [        {          "id": "V3-validation",          "type": "validation"        }      ],      "mode": "manual",      "status": "in_progress",      "updated_at": "2025-09-15T10:30:00Z",      "url": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY"    },    {      "account_id": 1234567,      "active": false,      "brand_id": 360002783572,      "completed_at": "2025-09-16T12:00:00Z",      "direction": {        "from": {          "scope": "brand"        },        "to": {          "scope": "account"        }      },      "id": "01J8X4Q7H2F5D8C6B9A4E3R1TY",      "jobs": [        {          "id": "V3-validation",          "type": "validation"        },        {          "id": "V3-reconciliation",          "type": "reconciliation"        }      ],      "mode": "auto",      "status": "completed",      "updated_at": "2025-09-16T12:00:00Z",      "url": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q7H2F5D8C6B9A4E3R1TY"    }  ]}

Create Brand User Migration

  • POST /api/v2/brands/{brand_id}/user_migrations

Creates a brand user migration for the specified brand. Only one active migration may exist per account at a time.

The direction.from.scope must match the brand's current user separation setting, and the from/to scopes must differ.

Allowed For

  • Admins

Availability

Available on accounts with Department Spaces.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • brands:write

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand

Example body

{  "user_migration": {    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "mode": "manual"  }}

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations \  -H "Authorization: Bearer {access_token}" \  -H "Content-Type: application/json" \  -X POST \  -d '{"user_migration":{"direction":{"from":{"scope":"account"},"to":{"scope":"brand"}},"mode":"manual"}}'
Go
import (	"fmt"	"io"	"net/http"	"strings")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations"	method := "POST"	payload := strings.NewReader(`{  "user_migration": {    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "mode": "manual"  }}`)	req, err := http.NewRequest(method, url, payload)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations")		.newBuilder();RequestBody body = RequestBody.create(MediaType.parse("application/json"),		"""{  \"user_migration\": {    \"direction\": {      \"from\": {        \"scope\": \"account\"      },      \"to\": {        \"scope\": \"brand\"      }    },    \"mode\": \"manual\"  }}""");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("POST", body)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');var data = JSON.stringify({  "user_migration": {    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "mode": "manual"  }});
var config = {  method: 'POST',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },  data : data,};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requestsimport json
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations"
payload = json.loads("""{  "user_migration": {    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "mode": "manual"  }}""")headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"POST",	url,	headers=headers,	json=payload)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations")request = Net::HTTP::Post.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")request.body = %q({  "user_migration": {    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "mode": "manual"  }})response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

201 Created
// Status 201 Created
{  "user_migration": {    "account_id": 1234567,    "active": true,    "brand_id": 360002783572,    "completed_at": null,    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",    "jobs": [      {        "id": "V3-validation",        "type": "validation"      }    ],    "mode": "manual",    "status": "in_progress",    "updated_at": "2025-09-15T10:30:00Z",    "url": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY"  }}
409 Conflict
// Status 409 Conflict
{  "description": "an active migration already exists for this account",  "error": "Active migration"}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "description": "Record validation errors",  "details": {    "base": [      {        "description": "Brand migration direction from and to must differ."      },      {        "description": "Brand migration direction from must match brand user separation value."      }    ]  },  "error": "RecordInvalid"}

Show Brand User Migration

  • GET /api/v2/brands/{brand_id}/user_migrations/{migration_id}

Returns a single brand user migration by ID.

Allowed For

  • Admins

Availability

Available on accounts with Department Spaces.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • brands:read

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the brand user migration

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id} \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01ARZ3NDEKTSV4RRFFQ69G5FAV"	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01ARZ3NDEKTSV4RRFFQ69G5FAV")		.newBuilder();
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01ARZ3NDEKTSV4RRFFQ69G5FAV',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01ARZ3NDEKTSV4RRFFQ69G5FAV"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01ARZ3NDEKTSV4RRFFQ69G5FAV")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "user_migration": {    "account_id": 1234567,    "active": true,    "brand_id": 360002783572,    "completed_at": null,    "direction": {      "from": {        "scope": "account"      },      "to": {        "scope": "brand"      }    },    "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",    "jobs": [      {        "id": "V3-validation",        "type": "validation"      }    ],    "mode": "manual",    "status": "in_progress",    "updated_at": "2025-09-15T10:30:00Z",    "url": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY"  }}

List Brand User Migration Users

  • GET /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users

Lists users for an in_progress migration, ordered by user ID. The default not_started filter lists active end users in the source scope without an attempt for this migration. Attempted statuses include users that have since moved scope or become inactive. Users ignored for no brand interaction are not listed, including with status=all.

For account-to-brand migrations, the initial list uses recorded brand interactions, without confirming them in Search. A migration attempt confirms interaction; users without it are recorded as ignored and drop off the list. Brand-to-account migrations list source users assigned to the brand.

Each entry has user_id and status. Attempted entries also include migration_id, and migration_action when recorded. Failed entries include status_info, as do conflicted entries when a reason was recorded; conflicted entries also include matching_users.

Pagination

  • Cursor pagination only; default and maximum page size is 100.
  • Use page[size], and either page[after] or page[before], not both cursors.

Allowed For

  • Admins

Availability

Requires multibrand and brand user migration enabled for the account. Onboarding into an inactive brand is not allowed; offboarding from one is allowed.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:read

  • read

Parameters

NameTypeInRequiredDescription
pageobjectQueryfalseCursor-based pagination parameters (JSON:API style). Supports nested parameters: - page[size] - Number of records per page (default varies by endpoint, typically 100) - page[after] - Cursor token to fetch records after this position - page[before] - Cursor token to fetch records before this position Example: ?page[size]=50&page[after]=eyJvIjoiaWQiLCJ2IjoiYVFFPSJ9
statusstringQueryfalseUser migration status to list; all includes every listed status, not ignored users. Allowed values are "not_started", "in_progress", "failed", "conflicted", "completed", or "all".
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration

Code Samples

curl
curl -g 'https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users?status=all&page[size]=100' \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users?page=&status="	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users")		.newBuilder()		.addQueryParameter("page", "")		.addQueryParameter("status", "");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },  params: {    'page': '',    'status': '',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users?page=&status="headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users")uri.query = URI.encode_www_form("page": "", "status": "")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "links": {    "next": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users?status=all&page%5Bsize%5D=100&page%5Bafter%5D=example-after-cursor",    "prev": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users?status=all&page%5Bsize%5D=100&page%5Bbefore%5D=example-before-cursor"  },  "meta": {    "after_cursor": "example-after-cursor",    "before_cursor": "example-before-cursor",    "has_more": false  },  "remaining_users": [    {      "status": "not_started",      "user_id": 101    },    {      "matching_users": [        {          "id": 201        },        {          "id": 202        }      ],      "migration_id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",      "status": "conflicted",      "status_info": "multiple_target_matches",      "user_id": 102    }  ]}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "error": {    "message": "The migration is not active or the migration ID is invalid.",    "title": "Inactive migration"  }}

List Migration Inconsistencies

  • GET /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/inconsistent

Returns persisted migration validation findings, ordered by finding ID. A reference is a ticket requester, ticket collaborator, or identity. reference_id is the ticket API ID or identity ID, respectively.

User and identity separation scopes are stored with each finding. Ticket brand separation reflects the current brand setting and may be null if the brand cannot be resolved. Ticket references include a nullable stored suggested_user_id; identity references instead include reference_scope and a nullable public identity_type.

This endpoint does not start validation or require an in_progress migration. Results may be partial while detection runs or capped by the detector. An empty page does not prove validation succeeded. Restart pagination after requesting validation again. The same reference ID can occur in multiple findings.

Pagination

  • Cursor pagination only; default and maximum page size is 100.
  • Use page[size], and either page[after] or page[before], not both cursors.

Allowed For

  • Admins

Availability

Requires multibrand and brand user migration enabled for the account. Stored findings remain readable for reconciling, completed, and aborted migrations.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:read

  • read

Parameters

NameTypeInRequiredDescription
pageobjectQueryfalseCursor-based pagination parameters (JSON:API style). Supports nested parameters: - page[size] - Number of records per page (default varies by endpoint, typically 100) - page[after] - Cursor token to fetch records after this position - page[before] - Cursor token to fetch records before this position Example: ?page[size]=50&page[after]=eyJvIjoiaWQiLCJ2IjoiYVFFPSJ9
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration

Code Samples

curl
curl -g 'https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/inconsistent?page[size]=100' \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent?page="	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent")		.newBuilder()		.addQueryParameter("page", "");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },  params: {    'page': '',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent?page="headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent")uri.query = URI.encode_www_form("page": "")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "inconsistencies": [    {      "reference_brand_id": 360002783572,      "reference_brand_user_separation": "brand",      "reference_id": 42,      "reference_type": "ticket_requester",      "suggested_user_id": null,      "user_id": 101,      "user_separation": {        "scope": "account"      }    },    {      "identity_type": "email",      "reference_id": 301,      "reference_scope": {        "scope": "account"      },      "reference_type": "identity",      "user_id": 102,      "user_separation": {        "brand_id": 360002783572,        "scope": "brand"      }    }  ],  "links": {    "next": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent?page%5Bsize%5D=100&page%5Bafter%5D=example-after-cursor",    "prev": "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/inconsistent?page%5Bsize%5D=100&page%5Bbefore%5D=example-before-cursor"  },  "meta": {    "after_cursor": "example-after-cursor",    "before_cursor": "example-before-cursor",    "has_more": false  }}

Migrate Many Brand Users

  • POST /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/migrate_many

Enqueues migration for 1 to 100 source user IDs and returns a job status. The batch waits for any per-user background jobs before recording final outcomes. Poll GET /api/v2/job_statuses/{id} using the returned ID or URL. An accepted batch does not mean every user migrated successfully.

Each entry in the completed job's results array has source user id, success, and status: completed, conflicted, ignored, already_in_flight, or failed. Entries may also have action, brand_user_migration_id, and migrated_user_id when available. Unsuccessful entries have an error object containing a stable code.

Example completed polling response (excerpt, not the initial submission response; other job-status fields are omitted). A completed job can contain an unsuccessful migration outcome:

{  "job_status": {    "status": "completed",    "results": [      {        "id": 102,        "success": false,        "status": "already_in_flight",        "error": { "code": "migration_already_in_progress" }      }    ]  }}

The response uses the standard Job Status API. OAuth polling requires a token with the global read scope in addition to the scope needed to submit this request.

Allowed For

  • Admins

Availability

Requires multibrand, brand user migration enabled, and an in_progress migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. Returns 403 when bulk migration is disabled.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:write

  • write

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration

Example body

{  "user_ids": [    101,    102  ]}

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/migrate_many \  -H "Authorization: Bearer {access_token}" \  -H "Content-Type: application/json" \  -X POST \  -d '{"user_ids":[101,102]}'
Go
import (	"fmt"	"io"	"net/http"	"strings")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/migrate_many"	method := "POST"	payload := strings.NewReader(`{  "user_ids": [    101,    102  ]}`)	req, err := http.NewRequest(method, url, payload)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/migrate_many")		.newBuilder();RequestBody body = RequestBody.create(MediaType.parse("application/json"),		"""{  \"user_ids\": [    101,    102  ]}""");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("POST", body)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');var data = JSON.stringify({  "user_ids": [    101,    102  ]});
var config = {  method: 'POST',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/migrate_many',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },  data : data,};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requestsimport json
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/migrate_many"
payload = json.loads("""{  "user_ids": [    101,    102  ]}""")headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"POST",	url,	headers=headers,	json=payload)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/migrate_many")request = Net::HTTP::Post.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")request.body = %q({  "user_ids": [    101,    102  ]})response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "job_status": {    "id": "V3-batch-example",    "job_type": "Bulk Brand User Migration",    "message": null,    "progress": null,    "results": null,    "status": "queued",    "total": 2,    "url": "https://example.zendesk.com/api/v2/job_statuses/V3-batch-example.json"  }}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "error": {    "message": "The migration is not active or the migration ID is invalid.",    "title": "Inactive migration"  }}
429 Too Many Requests
// Status 429 Too Many Requests
{  "current_job_ids": [    "V3-existing-example"  ],  "description": "Too many BrandUserMigrationBatchJobV3 jobs are currently queued or running. Try again later.",  "error": "TooManyJobs"}

Preview Many Brand User Migrations

  • POST /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/preview_many

Enqueues read-only migration previews for 1 to 100 source user IDs. No users or migration attempt records are changed. Poll GET /api/v2/job_statuses/{id} using the returned ID or URL. Results reflect data when each item is processed. Unlike the single-user preview endpoint, a missing or foreign-account user produces a successful ignore preview with a placeholder source user containing the requested ID, without exposing another account's user data. Source users use the standard User JSON format; the polling example below shows selected fields, not complete user objects.

Each entry in the completed job's results array has source user id and success. Successful entries have user_migration, with the same payload as Preview Brand User Migration. Ignore and conflict are successful preview decisions. Processing failures instead have error containing a stable code. A serialized per-user result larger than 100 KiB returns success: false and error code preview_result_too_large, rather than a partial preview.

Example completed polling response (excerpt, not the initial submission response; other job-status and User fields are omitted). An ignore decision is a successful preview, while a processing failure is not:

{  "job_status": {    "status": "completed",    "results": [      {        "id": 101,        "success": true,        "user_migration": {          "action": "ignore",          "description": "Migrating this user will have no effect.",          "reason": "The user has not interacted with the target brand.",          "source_user": { "id": 101, "name": "Alex Example", "email": "[email protected]" }        }      },      { "id": 102, "success": false, "error": { "code": "preview_result_too_large" } }    ]  }}

OAuth requires the global read scope for both submission and polling; users:read alone is not sufficient. Account agents can retrieve job statuses and preview results through the standard job status API, even though only admins can submit this request.

Allowed For

  • Admins

Availability

Requires multibrand, brand user migration enabled, and an in_progress migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. Returns 403 when bulk preview is disabled.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • read

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration

Example body

{  "user_ids": [    101,    102  ]}

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/preview_many \  -H "Authorization: Bearer {access_token}" \  -H "Content-Type: application/json" \  -X POST \  -d '{"user_ids":[101,102]}'
Go
import (	"fmt"	"io"	"net/http"	"strings")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/preview_many"	method := "POST"	payload := strings.NewReader(`{  "user_ids": [    101,    102  ]}`)	req, err := http.NewRequest(method, url, payload)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/preview_many")		.newBuilder();RequestBody body = RequestBody.create(MediaType.parse("application/json"),		"""{  \"user_ids\": [    101,    102  ]}""");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("POST", body)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');var data = JSON.stringify({  "user_ids": [    101,    102  ]});
var config = {  method: 'POST',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/preview_many',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },  data : data,};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requestsimport json
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/preview_many"
payload = json.loads("""{  "user_ids": [    101,    102  ]}""")headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"POST",	url,	headers=headers,	json=payload)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/preview_many")request = Net::HTTP::Post.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")request.body = %q({  "user_ids": [    101,    102  ]})response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "job_status": {    "id": "V3-preview-example",    "job_type": "Bulk Brand User Migration Preview",    "message": null,    "progress": null,    "results": null,    "status": "queued",    "total": 2,    "url": "https://example.zendesk.com/api/v2/job_statuses/V3-preview-example.json"  }}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "error": {    "message": "The migration is not active or the migration ID is invalid.",    "title": "Inactive migration"  }}
429 Too Many Requests
// Status 429 Too Many Requests
{  "current_job_ids": [    "V3-existing-example"  ],  "description": "Too many BrandUserMigrationPreviewJobV3 jobs are currently queued or running. Try again later.",  "error": "TooManyJobs"}

Show Brand User Migration User

  • GET /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id}

Returns where one user stands in the migration. Read-only; no records are changed.

statusMeaning
not_startedAn active end user in the source scope, with no attempt yet, while the migration is in_progress
in_progressAn attempt is running
completedMigrated
failedThe attempt failed; retryable while the source user is active
conflictedNo single target-scope match could be chosen
ignoredThe attempt found nothing to migrate
not_in_migrationNo attempt, and not a user the migration will attempt

migration_action is present for in_progress, completed, and failed. migrated_user (its id only) is present for completed. status_info is present for failed, and for conflicted and ignored when a reason was recorded; matching_users is present for conflicted.

Attempted users are read from the migration's own records, so a user that has since moved scope, been deactivated, or been merged away still answers; a merged user reports completed with the winner as migrated_user.

Allowed For

  • Admins

Availability

Requires multibrand and brand user migration enabled for the account. Unlike the preview and migrate endpoints, this answers for a migration that is no longer in_progress, and for an inactive brand.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:read

  • read

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration
user_idintegerPathtrueThe id of the user

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id} \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436"	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436")		.newBuilder();
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "user_migration": {    "migrated_user": {      "id": 201    },    "migration_action": "merge",    "status": "completed",    "user_id": 101  }}
404 Not Found
// Status 404 Not Found
{  "description": "Not found",  "error": "RecordNotFound"}

Preview Brand User Migration

  • GET /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id}/migrate

Returns a read-only preview of the migration action for the source user. No request body is required and no records are changed. The decision is ignore, update, clone, merge, move_references, or conflict. Ignore and conflict decisions are successful previews, not HTTP errors. Execution may differ if the underlying data changes after the preview. source_user uses the standard User JSON format. Response examples below show selected user fields, not the complete user object.

Allowed For

  • Admins

Availability

Requires multibrand, brand user migration enabled, and an in_progress migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:read

  • read

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration
user_idintegerPathtrueThe id of the user

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id}/migrate \  -H "Authorization: Bearer {access_token}"
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate"	method := "GET"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate")		.newBuilder();
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("GET", null)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'GET',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"GET",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate")request = Net::HTTP::Get.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "user_migration": {    "action": "update",    "description": "Migrating this user will update their record to the target scope.",    "reason": "No matching user was found in the target scope.",    "source_user": {      "created_at": "2026-11-01T10:00:00Z",      "default_group_id": null,      "email": null,      "id": 101,      "last_login_at": null,      "name": "Alex Example",      "organization_id": null,      "phone": "+12025550101",      "photo": null,      "role": "end-user",      "signature": null,      "updated_at": "2026-11-19T10:00:00Z"    }  }}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "error": {    "message": "The migration is not active or the migration ID is invalid.",    "title": "Inactive migration"  }}
503 Service Unavailable
// Status 503 Service Unavailable
{  "error": {    "message": "The user's interactions could not be checked because a service is temporarily unavailable. Try again in a moment.",    "title": "User interactions unavailable"  }}

Migrate Brand User

  • POST /api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id}/migrate

Migrates the source user using the server-selected action. No request body is required. An update runs synchronously and returns a completed per-user migration with migrated_user. A clone, merge, or move_references runs asynchronously and returns job_status instead of migrated_user, normally with an in_progress row. The row is reloaded after enqueue, so a fast worker can already have advanced its status or changed its action before the response. Provisional brand-run heavy decisions are durably finalized when work starts; retries execute the saved final outcome. A final ignore/conflict, or a failed reselected Update, can leave a null recorded action. Use the completed job result for the final outcome, not the submission snapshot. source_user and, when returned, migrated_user use the standard User JSON format. Response examples below show selected user fields, not complete user objects.

Poll GET /api/v2/job_statuses/{id} using the job ID or URL. The completed job's results is a single object, not an array. It has source user id, success, status, and optional action, brand_user_migration_id, migrated_user_id, or error containing a stable code.

A completed attempt is immutable and returned as-is on retry while the source user is still active. A merged, now inactive source user returns 404. Conflicted, failed, and no-brand-interaction ignored outcomes are persisted and may be retried using the same attempt while the source user is active. In-flight attempts return 409. Ignore and conflict decisions return 422 with the preview response shape. Other rejections return an error response.

Allowed For

  • Admins

Availability

Requires multibrand, brand user migration enabled, and an in_progress migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • users:write

  • write

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration
user_idintegerPathtrueThe id of the user

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/users/{user_id}/migrate \  -H "Authorization: Bearer {access_token}" \  -X POST
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate"	method := "POST"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate")		.newBuilder();RequestBody body = RequestBody.create(MediaType.parse("application/json"),		"""""");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("POST", body)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'POST',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"POST",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/users/35436/migrate")request = Net::HTTP::Post.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "brand_user_migration": {    "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WZ",    "migrated_user": {      "email": "[email protected]",      "id": 101,      "name": "Alex Example",      "role": "end-user"    },    "migration_action": "update",    "migration_id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",    "source_user": {      "email": "[email protected]",      "id": 101,      "name": "Alex Example",      "role": "end-user"    },    "status": "completed"  }}
409 Conflict
// Status 409 Conflict
{  "error": {    "message": "A migration for this user is already in progress. Try again later.",    "title": "Migration in progress"  }}
422 Unprocessable Entity
// Status 422 Unprocessable Entity
{  "description": "Record validation errors",  "details": {    "base": [      {        "description": "The user could not be updated"      }    ]  },  "error": "RecordInvalid"}
429 Too Many Requests
// Status 429 Too Many Requests
{  "current_job_ids": [    "V3-existing-example"  ],  "description": "Too many UserMigratorJob jobs are currently queued or running. Try again later.",  "error": "TooManyJobs"}
503 Service Unavailable
// Status 503 Service Unavailable
{  "error": {    "message": "The user's interactions could not be checked because a service is temporarily unavailable. Try again in a moment.",    "title": "User interactions unavailable"  }}

Validate Brand User Migration

  • POST /api/v2/brands/{brand_id}/user_migrations/{migration_id}/validations

Enqueues user validation for an in_progress migration or user references validation for a reconciling migration. Submission itself does not change the migration status, but the background jobs can advance it. No request body is required. Poll GET /api/v2/job_statuses/{id} using the returned job ID or URL.

Successful user validation moves the migration to reconciling and attempts to queue reference validation. If results.next_job_id is non-null, poll that job too. Scheduling can fail even after user validation succeeds: if no reference-validation job is queued or running, retry this endpoint while the migration is reconciling.

Results contain the parent migration id, success, status, and nullable next_job_id. User validation reports users_migrations_complete, users_migrations_incomplete, or invalid_migration_status. Reference validation reports inconsistencies_detected, no_inconsistencies_detected, job_disabled, or invalid_migration_status, and includes inconsistencies_count when findings were evaluated.

Reference validation completes the migration when no stored findings remain; otherwise it stays reconciling. Validation coverage depends on the checks available for your account: success alone does not guarantee a new or exhaustive scan. job_disabled means the job did not validate or complete the migration. Inspect the result and current migration status, not just whether the job completed. Findings can be read with List Migration Inconsistencies.

For example, polling a completed user-validation job can return the following excerpt. The migration is now reconciling; poll next_job_id for the next phase. Other job-status fields are omitted:

{  "job_status": {    "status": "completed",    "results": {      "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY",      "success": true,      "status": "users_migrations_complete",      "next_job_id": "V3-references-example"    }  }}

Allowed For

  • Admins

Availability

Requires brand user migration enabled for the account. Returns 404 when brand user migration is disabled.

OAuth2 scopes

If using OAuth, requires one of the following OAuth scopes:

  • brands:write

  • write

Parameters

NameTypeInRequiredDescription
brand_idintegerPathtrueThe ID of the brand
migration_idstringPathtrueULID of the parent brand user migration

Code Samples

curl
curl https://{subdomain}.zendesk.com/api/v2/brands/{brand_id}/user_migrations/{migration_id}/validations \  -H "Authorization: Bearer {access_token}" \  -X POST
Go
import (	"fmt"	"io"	"net/http")
func main() {	url := "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/validations"	method := "POST"	req, err := http.NewRequest(method, url, nil)
	if err != nil {		fmt.Println(err)		return	}	req.Header.Add("Authorization", "Bearer ${authToken}")	req.Header.Add("Content-Type", "application/json")
	client := &http.Client {}	res, err := client.Do(req)	if err != nil {		fmt.Println(err)		return	}	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)	if err != nil {		fmt.Println(err)		return	}	fmt.Println(string(body))}
Java
import com.squareup.okhttp.*;OkHttpClient client = new OkHttpClient();HttpUrl.Builder urlBuilder = HttpUrl.parse("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/validations")		.newBuilder();RequestBody body = RequestBody.create(MediaType.parse("application/json"),		"""""");
Request request = new Request.Builder()		.url(urlBuilder.build())		.method("POST", body)		.addHeader("Authorization", "Bearer ${authToken}")		.addHeader("Content-Type", "application/json")		.build();Response response = client.newCall(request).execute();
Nodejs
var axios = require('axios');
var config = {  method: 'POST',  url: 'https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/validations',  headers: {	'Authorization': 'Bearer ${authToken}',	'Content-Type': 'application/json',  },};
axios(config).then(function (response) {  console.log(JSON.stringify(response.data));}).catch(function (error) {  console.log(error);});
Python
import requests
url = "https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/validations"headers = {	"Authorization": "Bearer ${authToken}",	"Content-Type": "application/json",}
response = requests.request(	"POST",	url,	headers=headers)
print(response.text)
Ruby
require "net/http"uri = URI("https://example.zendesk.com/api/v2/brands/360002783572/user_migrations/01J8X4Q3Z9K7M2N5P8R6T0V1WY/validations")request = Net::HTTP::Post.new(uri, "Authorization": "Bearer ${authToken}", "Content-Type": "application/json")response = Net::HTTP.start uri.hostname, uri.port, use_ssl: true do |http|	http.request(request)end

Example response(s)

200 OK
// Status 200 OK
{  "job_status": {    "id": "V3-validation-example",    "job_type": "Brand Migration Users Validation",    "message": null,    "progress": null,    "results": null,    "status": "queued",    "total": null,    "url": "https://example.zendesk.com/api/v2/job_statuses/V3-validation-example.json"  }}
400 Bad Request
// Status 400 Bad Request
{  "description": "Validation is only allowed when the migration status is in_progress or reconciling. Current status: completed.",  "error": "Invalid migration status"}
409 Conflict
// Status 409 Conflict
{  "description": "A validation is already queued or running for this migration. Try again after it finishes.",  "error": "ValidationAlreadyActive"}
429 Too Many Requests
// Status 429 Too Many Requests
{  "current_job_ids": [    "V3-existing-example"  ],  "description": "Too many BrandMigrationUsersValidationJob jobs are currently queued or running. Try again later.",  "error": "TooManyJobs"}