Skip to main content

Unmapping (Unmap)

The unmap API is used to detach third-party accounts from self-built accounts.

Request parameters

ParametersTypeDescriptionNote
tokenstringCustom account authorization token
Length: 40 bytes, see Token
Required
openidstringUID of self-managed accountRequired
unmap_channelidnumberChannel ID of unmapped channel
For more information, see Login Channel and Channel ID Relationship.
Required

Request sample

accountApi.unmap({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
unmap_channelid:28
}).then(
(res) => {
console.log(res);
}
);

Response parameters

ParametersTypeDescription
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
seqstringSequence number of the data stream message

Response sample

{
ret: 0,
msg: "success",
seq: "1639105985-1191493130-031434-0000571640",
}