Initiate Recovery
Add a new employee to an existing recovery campaign.
POST
/api/v1/recover/campaign/employee/addDescription
This API is used to add a new employee to an existing Recover Campaign, along with return address and assigned item details.
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer <token> | Yes |
| Content-Type | application/json | Yes |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| campaign_number | number | Yes | Unique identifier of the recover campaign |
| string | Yes | Employee email address | |
| firstname | string | Yes | Employee first name |
| lastname | string | Yes | Employee last name |
| phone | string | Yes | Employee phone number |
| address_line_1 | string | Yes | Employee address line 1 |
| address_line_2 | string | No | Secondary address line |
| city | string | Yes | Employee city |
| state | string | Yes | Employee state or region |
| zip | string | Yes | Employee ZIP/postal code |
| country | string | Yes | Employee country code |
| items | array | Yes | 1 to 5 item objects assigned to employee |
| items[].item | string | Yes | Name/label of the asset |
| items[].item_serial_no | string | No | Serial number of the asset |
| items[].item_asset_id | string | No | Internal asset ID |
| items[].item_imei | string | No | IMEI number for mobile devices |
| items[].custom_field_1 | string | No | Custom metadata field 1 |
| items[].custom_field_2 | string | No | Custom metadata field 2 |
| items[].is_legal_hold | number | No | Send 1 to mark device for legal hold |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
| recovery_code | string | Generated recovery code |
| message | string | Success message |
Notes
- Campaign names must be unique within your organization. Attempting to create a campaign with a duplicate name will result in a 409 Conflict error.
- The campaign_number is automatically generated and serves as the primary identifier for all subsequent operations.
- New campaigns are created with an active status by default. You can track their progress through the Campaign List and Campaign Details endpoints.
- Use descriptive campaign names and descriptions to help organize and identify recovery efforts across different time periods or departments.
Related Endpoints
Did this page help you?
Request
curl -X POST https://dev-api.unduit.com/api/v1/recover/campaign/employee/add \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"campaign_number": 17449821332893,
"email": "[email protected]",
"firstname": "John",
"lastname": "Doe",
"phone": "1632960123",
"address_line_1": "123 Business Park",
"address_line_2": "Suite 200",
"city": "London",
"state": "London",
"zip": "10001",
"country": "GB",
"items": [
{
"item": "MacBook Pro 16",
"item_serial_no": "C02XL0XXXXX1",
"item_asset_id": "IT-APPLE-001",
"item_imei": "",
"custom_field_1": "2023-issue",
"custom_field_2": "Finance Dept",
"is_legal_hold": 1
},
{
"item": "iPhone 15 Pro",
"item_serial_no": "DNXXXXXX1JKL",
"item_asset_id": "IT-APPLE-002",
"item_imei": "35693803564XXXX",
"custom_field_1": "Mobile Plan: Corp",
"custom_field_2": "Manager Approval"
}
]
}'Success Response (200)
{
"success": true,
"recovery_code": "175153062352257",
"message": "Employee added successfully"
}