Initiate Recovery

Add a new employee to an existing recovery campaign.

POST
/api/v1/recover/campaign/employee/add

Description

This API is used to add a new employee to an existing Recover Campaign, along with return address and assigned item details.

Request

Headers

HeaderValueRequired
AuthorizationBearer <token>Yes
Content-Typeapplication/jsonYes

Body Parameters

ParameterTypeRequiredDescription
campaign_numbernumberYesUnique identifier of the recover campaign
work_emailstringConditionalEmployee work email address. Required unless recovery_reason is 3 (Offboarding)
personal_emailstringConditionalEmployee personal email address. Required when recovery_reason is 3 (Offboarding); optional otherwise
notification_email_preferencestringNoWhere recovery email and SMS updates are sent: work or personal. Defaults to work. Falls back to the other contact when the preferred field is empty.
firstnamestringYesEmployee first name
lastnamestringYesEmployee last name
work_phonestringConditionalEmployee work phone number. Required unless recovery_reason is 3 (Offboarding)
personal_phonestringConditionalEmployee personal phone number (digits; without country code). Required when recovery_reason is 3 (Offboarding); optional otherwise. Dial country is taken from address country
address_line_1stringYesEmployee address line 1
address_line_2stringNoSecondary address line
citystringYesEmployee city
statestringConditionalEmployee state or region. Required when is_state_required is true for the selected country. See GET /api/v1/countries.
zipstringYesEmployee ZIP/postal code
countrystringYesEmployee country code
recovery_reasonnumberNoRecovery Reason for the user. 1 = Refresh, 2 = Break-Fix, 3 = Offboarding, 4 = Other
recovery_reason_notestringNoRecovery reason note is required only if recovery_reason is 4 (Other)
departmentstringNoDepartment name (not ID). Matched case-insensitively for the company; created if missing (minimum 2 characters when creating). Stored as department_id on the recovery employee
itemsarrayYes1 to 5 item objects assigned to employee
items[].itemstringYesName/label of the asset
items[].item_serial_nostringNoSerial number of the asset
items[].item_asset_idstringNoInternal asset ID
items[].item_imeistringNoIMEI number for mobile devices
items[].custom_field_1stringNoCustom metadata field 1
items[].custom_field_2stringNoCustom metadata field 2
items[].is_legal_holdnumberNoSend 1 to mark device for legal hold

Response

Response Fields

FieldTypeDescription
successbooleanIndicates if the request was successful
recovery_codestringGenerated recovery code
messagestringSuccess message

Notes

  • Use work_email for the employee work email. Legacy email is still accepted for backward compatibility with existing integrations. Required unless recovery_reason is 3 (Offboarding).
  • Use work_phone for the employee work phone. Legacy phone is still accepted for backward compatibility with existing integrations. Required unless Offboarding.
  • When recovery_reason is 3 (Offboarding), personal_email and personal_phone are required and work email/phone are optional. For all other reasons, work contacts are required and personal contacts are optional.
  • notification_email_preference controls both email and SMS destinations. Personal phone country is stored from address country (same as work phone country).
  • Optional department is a department name (not ID). The API finds an active department for the company by case-insensitive name, or creates one (name must be at least 2 characters), then stores department_id on the recovery employee.
  • The state field is required only for countries where GET /api/v1/countries returns is_state_required: true. When required, the value must match a valid state or region for that country.
  • zip is required for all countries, including GB.
  • 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?