Table of contents• Prerequisites • Behaviour of the product during the migration • Generate the migration token
• Tickets • Bulk create tickets • Endpoint • Method • Description • Request Schema • Response Schema • Bulk update tickets • Endpoint • Method • Description: • Request Schema • Response Schema
• Requesters or Contacts • Bulk create requesters • Endpoint • Method • Description: • Request Schema • Response Schema
• Agents • Bulk create agents • Endpoint • Method • Description • Request Schema • Response Schema
• Notes • Endpoint • Method • Description • Request Schema • Response Schema
• Job Status • Endpoint • Method • Description • Request Schema • Response Schema• Error code 2001 • Error code 2002 • Error code 1000 • Error code 2000
TABLE OF CONTENTS
- Prerequisites
- Behaviour of the product during the migration
- Generate the migration token
- Tickets
- Requesters or Contacts
- Agents
- Notes
- Job Status
- Error codes and handling
- Rate limits
Prerequisites
A Migration Token must be generated and included in the request headers to authenticate calls to the migration APIs.
- Attachments must be publicly accessible via a URL for the migration APIs to process them correctly.
- Bulk Migration APIs can be used to import Tickets, Notes along with their attachments, Agents, and Requesters.
- For all other entities, please use the standard public APIs available at: https://api.freshservice.com/
- Ensure that dependent entities (e.g., workspaces, users) are created before importing entities that rely on them.
- When importing Notes, make sure the corresponding Ticket is created first. The ticket's ID should then be referenced as "ticket_id" in the body of the note request.
Important: All bulk API input payloads are subject to a 10 MB payload size limit.
Behaviour of the product during the migration
Notifications (Email - only ticket assigned, cc_emails and associations) will not be triggered or sent to end users during the migration.
- Slack, Teams, Business Rules, Workflows - Will not be muted. Hence the recommendation is to mute them before initiating migration.
- Search and Analytics functionality will not update in real time during the migration. There may be a delay in indexing and visibility of migrated data.
- A maximum of 50 tickets or notes can be imported in a single request. The account-level rate limit is 10 requests per minute.
- The maximum allowed attachment size per entity is 40 MB.
- For entities with multiple attachments, only those with a cumulative size less than 40 MB will be successfully uploaded. Any additional attachments beyond this limit will fail (partial failure).
- If a single attachment exceeds 40 MB, the entire attachment will be rejected. However, the parent entity (e.g., ticket or note) will still be created successfully.
- Workflows and other configured automations will continue to operate during the migration. Currently, there is no option to disable these automations specifically for migration purposes.
Generate the migration token
Generating the migration token will follow the same steps as below.
https://docs.google.com/document/d/1Ac10DED1iMNTkk-ls2r0lq-wmBdu1eARgIr_0MwF3qE/edit?tab=t.0
Tickets
This section documents the following bulk actions on tickets:
- Bulk create tickets
- Bulk update tickets
Bulk create tickets
Endpoint: /api/v2/tickets/bulk
Method: POST
Description: Perform bulk create of entity type "tickets".
Request Schema
Headers
X-API-Key: {api_key}
X-FW-Partner-Migration: {migration_token}
Content-type: application/json
Request body
This request contains a list of ticket entities. Per request currently 50 ticket entities are allowed for bulk processing.
For the exact payload and fields that are supported refer to the Create ticket payload available in the public api documentation → https://api.freshservice.com/#create_ticket
Note: For attachments alone we need to pass a list of publicly accessible URLs and not the way shown in the documentation mentioned above.
Response Schema
Request queued for processing
API Response code: 202
Bulk update tickets
Endpoint: /api/v2/tickets/bulk
Method: PUT
Description:
Perform bulk update of entity type tickets. Each record in the batch is processed asynchronously by replaying the same validation and business logic as the public Update a ticket API.
Important: Every record must include an id field. For bulk update, id is the ticket display_id shown in the Freshservice UI and in most API responses, not the internal database primary key. If no ticket exists with that display_id, the record fails with an error (for example, Ticket with ID {id} not found).
Before a job is queued, the payload is validated for structure, record count, and update-specific rules:
| Rule | Behavior |
| Records without id | Rejected during pre-processing (missing_id); they are not enqueued. Other rows with valid id can still be processed. |
| Duplicate id in the same payload | All rows sharing that id are rejected (duplicate_id); none of them are enqueued. |
| Every row missing id | Request fails with 400 (missing_id_field); no job is created. |
| Entire payload is duplicate id rows only | Request fails with 400 (all_records_duplicate); no job is created. |
When some rows are rejected but at least one valid row remains, the job is created with status queued_with_partial_data, and the synchronous 202 response includes a rejections array listing dropped rows by original payload index.
Attachments on update use the same rule as bulk create: pass an array of publicly accessible URL strings (not multipart upload). Attachment size limits (40 MB per entity) still apply; attachment failures can result in attachment_creation_failed (2002) while the ticket update itself may still succeed.
Request Schema
Headers
| Header | Value |
| X-API-Key | {api_key} |
| X-FW-Partner-Migration | {migration_token} |
| Content-type | application/json |
Request body
This request contains a list of ticket update objects. Per request, 50 ticket entities are allowed for bulk processing (same limit as bulk create).
For supported fields on each record, refer to the Update Ticket payload in the public API documentation → https://api.freshservice.com/#update_a_ticket
Required on every record
Commonly used optional fields (same semantics as the public Update Ticket API)
| Field | Description |
|---|---|
subject, description | Ticket text fields |
status, priority, type | Ticket metadata |
workspace_id | Workspace display ID (when applicable) |
tags | Tag names |
custom_fields | Object of custom field name → value |
attachments | Array of public attachment URLs to add |
Note: For attachments alone, pass a list of publicly accessible URLs (not multipart), consistent with bulk ticket create.
Sample request body
{ "records": [ { "id": 10432, "status": 4, "priority": 2, "description": "Updated during migration – resolved in source system." }, { "id": 10433, "subject": "Corrected subject from source", "custom_fields": { "legacy_ticket_ref": "SRC-99881" }, "attachments": [ "https://migration-partner.example.com/files/closure-summary.pdf" ] }, { "id": 10434, "tags": ["migrated", "wave-2"] } ] } |
Response Schema
Request queued for processing
202 Accepted
All records accepted for processing (status: queued)
{ "job_id": "4de4adda-4bc8-4127-ba84-c9fc112924bf", "status": "queued", "entity_type": "ticket", "total_records": 3, "created_at": "2025-09-29T13:51:17Z" } |
total_records is the count of records after pre-processing rejections (missing or duplicate id rows are excluded).
Some records rejected at validation; remaining rows queued (status: queued_with_partial_data)
{ "job_id": "7c21b8f0-1e2a-4c91-9d44-0a8f3c2b5e61", "status": "queued_with_partial_data", "entity_type": "ticket", "total_records": 2, "created_at": "2025-09-29T14:10:03Z", "rejections": [ { "index": 1, "code": "missing_id", "message": "Record missing with Id" }, { "index": 2, "code": "duplicate_id", "message": "Records with same id exists in the payload at indexes [2,3]" }, { "index": 3, "code": "duplicate_id", "message": "Records with same id exists in the payload at indexes [2,3]" } ] } |
- index is zero-based position in the submitted records array.
- Rejected rows are never processed, do not appear in failed_records / success_records in job status, and require fixing the payload and resubmitting.
Poll results asynchronously via GET /api/v2/tickets/bulk/{job_id}. On success, success_records[].entity_id becomes the ticket display_id.
Typical record-level failure codes (job status)
Synchronous errors (no job created)
API response code: 400 Bad Request (same envelope as bulk create)
| Code | When |
|---|---|
missing_id_field | Every record in records lacks id |
all_records_duplicate | Every record shares the same duplicated id (nothing left to process) |
too_many_records | More than 50 records in records |
invalid_json, invalid_structure, empty_records, invalid_migration_token, payload_too_large | Same as bulk create |
Requesters or Contacts
Bulk create requesters
Endpoint: /api/v2/requesters/bulk
Method: POST
Description:
Perform bulk create of entity type requesters (end-user contacts). Each record in the batch is processed asynchronously by replaying the same validation and business logic as the public Create a Requester API.
Use PUT on the same path for bulk update when migrating profile or metadata changes; every update record must include a valid id (requester user ID). Job status and error handling follow the same patterns as tickets and notes (see Job Status).
Notes for migration partners:
- Up to 50 requester objects per request (account limit; see Rate Limits).
- Request body must be wrapped as { "records": [ ... ] }.
- Successful per-record responses expose the created user / requester ID in job status (entity_id in success_records).
- The active flag may not be set to true on create even when passed as true, because FreshID profile sync can leave the user inactive until primary email verification completes.
- On multi-workspace (ESM) accounts, include belongs_to_workspace_ids when required by your account configuration (workspace display IDs).
Request Schema
Headers
| Header | Value |
| X-API-Key | {api_key} |
| X-FW-Partner-Migration | {migration_token} |
| Content-type | application/json |
Request body
This request contains a list of requester entities. Per request, 50 requester entities are allowed for bulk processing.
For the exact payload and fields that are supported, refer to the Create Requester payload in the public API documentation → https://api.freshservice.com/#create_a_requester
Each element of records is a single requester create payload (same fields as the public API). Common fields used in migrations:
| Field | Description |
|---|---|
first_name | Requester first name |
last_name | Requester last name |
email | Primary email (required) |
mobile_phone_number, work_phone_number | Optional phone numbers |
department_ids | Array of department IDs |
location_id | Location ID |
language, time_zone | Locale and timezone |
vip_user | VIP flag |
reporting_manager_id | Manager user ID |
custom_fields | Object of custom field key → value |
belongs_to_workspace_ids | Workspace display IDs (ESM) |
Sample request body
{ "records": [ { "first_name": "Alex", "last_name": "Rivera", "email": "alex.rivera@example.com", "mobile_phone_number": "+1-555-0100", "department_ids": [90001], "location_id": 22001, "language": "en", "time_zone": "Eastern Time (US & Canada)", "custom_fields": { "employee_id": "EMP-10042" } }, { "first_name": "Jordan", "last_name": "Lee", "email": "jordan.lee@example.com", "vip_user": true } ] } |
Response Schema
Request queued for processing
202 Accepted
Request queued
{ "job_id": "4de4adda-4bc8-4127-ba84-c9fc112924bf", "status": "queued", "entity_type": "requester", "total_records": 2, "created_at": "2025-09-29T13:51:17Z" } |
Poll with GET /api/v2/requesters/bulk/{job_id}. On success, success_records[].entity_id is the newly imported requester’s user ID.
Typical record-level failure codes (job status)
| Scenario | Wrapped error code | Job error code |
|---|---|---|
Validation / create failure (missing email, duplicate email, invalid department, and so on) | requester_creation_failed | 2001 |
Unexpected processing exception | — | 1000 |
Agents
Bulk create agents
Endpoint: /api/v2/agents/bulk
Method: POST
Description:
Perform bulk create of entity type agents (technicians). Each record in the batch is processed asynchronously using the same rules as the public Create an Agent API.
Use PUT on the same path for bulk update; each record must include a valid id (agent user ID). Job status and error handling follow the same patterns as tickets and notes.
Notes for migration partners:
- Up to 50 agent objects per request (account limit; see Rate Limits).
- Request body must be wrapped as { "records": [ ... ] }.
- Successful per-record responses expose the agent’s user ID in job status (entity_id in success_records), which is the identifier to use in downstream ticket and note payloads when a user_id is required.
- Ensure roles, groups, workspaces, and license constraints in the target account allow the agents you import (for example, role_ids, group_ids, member_of, observer_of, occasional, department_ids).
Request Schema
Headers
| Header | Value |
| X-API-Key | {api_key} |
| X-FW-Partner-Migration | {migration_token} |
| Content-type | application/json |
Request body
This request contains a list of agent entities. Per request, 50 requester entities are allowed for bulk processing.
For the exact payload and fields that are supported, refer to the Create Agent payload in the public API documentation → https://api.freshservice.com/#create_an_agent
Each element of records is a single agent create payload (same fields as the public API). Common fields used in migrations:
| Field | Description |
|---|---|
first_name | Agent first name |
last_name | Agent last name |
email | Primary email (required) |
occasional | Occasional agent flag |
role_ids | Role IDs to assign |
group_ids | Support group IDs |
member_of, observer_of | Group membership arrays |
department_ids | Department IDs |
location_id | Location ID |
language, time_zone | Locale and timezone |
reporting_manager_id | Manager user ID |
custom_fields | Object of custom field key → value |
api_key_enabled | Whether API access is enabled for the agent |
Sample request body
{ "records": [ { "first_name": "Sam", "last_name": "Patel", "email": "sam.patel@example.com", "occasional": false, "role_ids": [14001], "group_ids": [33001, 33002], "department_ids": [90001], "language": "en", "time_zone": "UTC" }, { "first_name": "Casey", "last_name": "Nguyen", "email": "casey.nguyen@example.com", "member_of": [33001], "custom_fields": { "employee_id": "TECH-2048" } } ] } |
Response Schema
Request queued for processing
202 Accepted
{ "job_id": "a91f0c2e-6d88-4f0a-9c2e-8b1e4f6a0d33", "status": "queued", "entity_type": "agent", "total_records": 2, "created_at": "2025-09-29T14:02:08Z" } |
Poll job results with GET /api/v2/agents/bulk/{job_id}. On success, success_records[].entity_id is the imported agent's user ID.
Typical record-level failure codes (job status)
| Scenario | Wrapped error code | Job error code |
|---|---|---|
Validation / create failure (missing email, duplicate email, invalid role or group, and so on) | agent_creation_failed | 2001 |
Unexpected processing exception | — | 1000 |
Notes
Endpoint: /api/v2/notes/bulk
Method: POST
Description: Perform bulk create of entity type "notes".
Request Schema
Headers
X-API-Key: {api_key}
X-FW-Partner-Migration: {migration_token}
Content-type: application/json
Request body
This request contains a list of notes entities. Per request currently 50 notes entities are allowed for bulk processing.
For the exact payload and fields that are supported refer to the Create Note payload available in the public api documentation → https://api.freshservice.com/#create_a_note
Note: For attachments alone we need to pass a list of publicly accessible URLs and not the way shown in the documentation mentioned above.
Response Schema
Request queued for processing
API Response code: 202
Job Status
Endpoint: /api/v2/<entity_type>/bulk/{job_id}
Method: GET
Description: Retrieves the current status and detailed results of a bulk import job.
Request Schema
Headers
X-API-Key: {api_key}
Path Parameters
Path Parameters
Response Schema
Processing
API Response Code: 202
This response is thrown when the job is still in processing state
Success
API Response Code: 202
This response is thrown when all the records are successfully processed
Success_with_failures
API Response Code: 202
This response is thrown when there are both success and failure records
Failure
API Response Code: 202
This response is thrown when no records are processed and all have failed.
Error Response - Job not found
API Response Code: 404
This response is thrown when the corresponding job-id is not found/does not exist in our backend database. This generally happens when no job with this job-id is created.
Error codes and handling
Below are the errors that we can see when the response code is 200 and the job has been submitted, but there was some issue in processing the records.
Error code 2001
Type of error:
- Ticket_Creation_Failed
- Agent_Creation_Failed
- Problem_Update_Failed
Description
- Used when core/primary entities fail to be created.
- Examples:
Ticket_Creation_Failed,Problem_Update_Failed,Agent_Creation_Failed. - These are the main objects being imported. If they fail, dependent objects (such as attachments) cannot be created.
Sample payload
How to resolve
Fix the issue described in message for the relevant field, then create the entity again.
Error code 2002
Type of error:
- Attachment_Creation_Failed
- Note_Creation_Failed
Description
- Used when secondary or dependent entities fail to be created.
- Example:
Attachment_Creation_Failed, Note_Creation_Failed - These failures do not prevent the main entity (ticket and so on) from being created. The job is partially successful: the parent record may be in
success_records, while attachment handling for that record failed.
Scenario: Attachment issue (URL or HTTP error)
This occurs when the URL is wrong, not publicly reachable, or the server returns a non-success status when the platform fetches the file. The message on each item usually reflects the HTTP outcome (for example 403 Forbidden).
Sample payload — attachment issue
How to resolve — attachment issue
- For each failed item, use
identifieras the attachment URL from your bulk payload. - Confirm the URL is correct, publicly accessible (no auth-only or expired links), and returns 200 when fetched with a simple GET (same as bulk create/update attachment rules).
- Fix or replace URLs and retry attachments for that record (new bulk update or your migration retry process).
- The parent ticket (or note) may already exist; you do not need to recreate it unless your workflow requires a full re-import.
Scenario: Attachment file size exceeded
This occurs when an attachment is larger than 40 MB. The main entity is still created successfully. If the record has multiple attachments, attachments before the failing one may already be attached; any that exceed the size limit fail.
Sample payload — file size exceeded
How to resolve — file size exceeded
- Check
identifierfor the file that exceeded the limit. - Reduce file size below 40 MB, host a compliant copy at a public URL, and resubmit only the attachment step (or the record’s
attachmentslist) per your migration flow. - Do not resubmit oversized files expecting partial attach beyond policy; all files over the threshold fail.
- If earlier attachments on the same entity succeeded, leave them in place and add or replace only the failed URLs.
Error code 1000
Type of error: Generic Exception
Description
- Used for unexpected exceptions.
- These are typically programming errors.
- Indicates something went wrong at the code level rather than in business logic.
How to resolve
Raise a ticket with Freshworks Support, as this might require a code fix.
Error code 2000
Type of error: Generic Response Exception Code
Description
- Default fallback for business logic errors that do not fit specific categories.
- Used when the entity creation process returns validation or creation errors.
How to resolve
Raise a ticket with Freshworks Support, as this might require a code fix.
The system examines the error response and:
1. Checks for parent entity errors first - if any core entity creation failed, assigns code 2001
2. Then checks for child entity errors - if only secondary entities failed, assigns code 2002
3. Falls back to generic response error (2000) if the error pattern doesn't match known types
All the above errors cannot be retried automatically. In the event of occurrence either it needs to be handled via code change(bug) or customer should change the payload to pass the validation.
Retrying failed entities
To retry failed entities, please resolve the errors specified in the response, then create and submit a new bulk API request. If the issue requires a code fix, kindly raise a support ticket with Freshservice Support or Engineering.
Rate limits
Following are the account level rate limits for each endpoint.