Skip to main content

Restore a user

Re-enable a soft-deleted user ID in the Nexconn messaging service. Supports batch operations.

To receive individual operation results, enable the User soft deletion/restoration status callback in the console beforehand.

tip
  • After soft deletion, personal data associated with the ID is permanently removed. Restoring a user does not recover deleted personal data.
  • A user ID cannot be restored within one hour of the soft deletion request.

Request method

POST: https://Base URL/v4/user/restore

Signature required: All server API requests require signature verification. See API request signature.

Rate limit: 100 users per second

Request body

The request body is in application/json format and supports the following parameters:

ParameterTypeRequiredDescription
userIdsString[]YesUser IDs to restore. Maximum 100 per request.

Request example

HTTP
POST /v4/user/restore HTTP/1.1
Host: api.sg-light-api.com
App-Key: uwd1c0sxdlx2
Nonce: 14314
Timestamp: 1408710653491
Signature: 45beb7cc7307889a8e711219a47b7cf6a5b000e8
Content-Type: application/json

{
"userIds": ["uid1", "uid2"]
}

Response

FieldTypeDescription
codeNumberStatus code. 0 indicates success. Individual results are delivered via the User soft deletion/restoration status callback.
result.operationIdStringOperation ID. Unique identifier for this operation. Included in the callback request body when the callback is enabled.

Response example

HTTP
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{"code":0,"result":{"operationId":"C70B-B1D6-82E8-5SBO"}}