Remote Asset Recovery - Bulk Upload
Add multiple employees to a recovery campaign in one request.
POST
/api/v1/recover/campaign/employee/bulk-addDescription
The Bulk Upload API enables customers to add multiple employees (up to 100) to a recovery campaign in one request. This simplifies large-scale data entry by accepting employee objects under a single campaign. A successful upload returns unique recovery codes for each entry.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <token> | Yes |
| Content-Type | application/json | Yes |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaign_number | number | Yes | Unique identifier of the recovery campaign |
| users | array | Yes | Array of employee objects (1-100 employees recommended) |
Employee Object Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| users[].campaign_number | number | Yes | Unique identifier of the recovery campaign |
| users[].email | string | Yes | Employee email address |
| users[].firstname | string | Yes | First name of the employee |
| users[].lastname | string | Yes | Last name of the employee |
| users[].phone | string | Yes | Primary phone number |
| users[].address_line_1 | string | Yes | Primary address line |
| users[].address_line_2 | string | No | Secondary address line |
| users[].city | string | Yes | City of the employee address |
| users[].state | string | Yes | State name |
| users[].zip | string | Yes | ZIP or postal code |
| users[].country | string | Yes | ISO 2-letter country code |
Item Object Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| users[].items[].item | string | Yes | Device/item name |
| users[].items[].item_serial_no | string | No | Serial number |
| users[].items[].item_asset_id | string | No | Asset ID |
| users[].items[].item_imei | string | No | IMEI number |
| users[].items[].custom_field_1 | string | No | Custom field 1 |
| users[].items[].custom_field_2 | string | No | Custom field 2 |
| users[].items[].is_legal_hold | number | No | Send 1 to mark device for legal hold |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| recovery_codes | array | Generated recovery codes for each uploaded user |
Notes
- The maximum recommended batch size is 100 employees per request to ensure optimal performance and reliability.
- Each employee receives a unique recovery code that can be used to track their individual recovery status.
- All employee fields (email, firstname, lastname, phone, city, state, zip, country) are required for successful processing.
- If any employee in the batch has validation errors, the entire request may fail. Ensure all data is properly formatted before submission.
- Recovery codes are generated automatically and returned in the response for record-keeping and tracking purposes.
Related Endpoints
Did this page help you?
Request
curl -X POST https://dev-api.unduit.com/api/v1/recover/campaign/employee/bulk-add \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"campaign_number": 6720250912001,
"users": [
{
"email": "[email protected]",
"firstname": "Jane",
"lastname": "Doe",
"phone": 4155550123,
"address_line_1": "123 Market Street",
"address_line_2": "Apt 4B",
"city": "San Francisco",
"state": "California",
"zip": "94103",
"country": "US",
"items": [
{
"item": "iPhone 14 Pro",
"item_serial_no": "SN12345XYZ",
"item_asset_id": "AST-00981",
"item_imei": "356789123456789",
"custom_field_1": "AppleCare+ Active",
"custom_field_2": "Delivered on 2025-09-01",
"is_legal_hold": 1
},
{
"item": "MacBook Pro 16-inch",
"item_serial_no": "SN98765ABC",
"item_asset_id": "AST-00982",
"item_imei": "",
"custom_field_1": "3-Year Warranty",
"custom_field_2": "Configured with M3 Max"
}
]
},
{
"email": "[email protected]",
"firstname": "John",
"lastname": "Smith",
"phone": 442079460958,
"address_line_1": "221B Baker Street",
"address_line_2": "",
"city": "San Francisco",
"state": "California",
"zip": "94103",
"country": "US",
"items": [
{
"item": "Samsung Galaxy S23 Ultra",
"item_serial_no": "SN54321LMN",
"item_asset_id": "AST-01011",
"item_imei": "359876543210123",
"custom_field_1": "Enterprise Account",
"custom_field_2": "5G Enabled"
}
]
}
]
}'Success Response (200)
{
"recovery_codes": [
"175731749252477",
"175731749252478"
]
}