CLaim Mailbox
Used to claim rewards in the mailbox sent to the user
Claim Sys-Mail
Request
POST /v1/sys-mailbox/claim HTTP/1.1
Host: mailbox-dev.api.mimiland.io
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 650ad419d995b4f348455ce2
Content-Type: application/json
Content-Length: 123
{
"id":"66f6281d5303bdc293983bc1",
"claimAll":true,
"uids":[""],
"clientId":"mml",
"version":2
} const myHeaders = new Headers();
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("mm-user-id", "650ad419d995b4f348455ce2");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"id": "66f6281d5303bdc293983bc1",
"claimAll": true,
"uids": [
""
],
"clientId": "mml",
"version": 2
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://mailbox-dev.api.mimiland.io/v1/sys-mailbox/claim", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
id *required
String
Id of the mail
claimAll *required
Boolean
Claim in part or claim all at once
uids *required
String
Id of a reward in an email
clientId *required
String
Id of the game
Claim Mailbox
Request
POST /v1/mailbox/claim HTTP/1.1
Host: mailbox-dev.api.mimiland.io
mm-client-id: skd
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
mm-user-id: 650ad419d995b4f348455ce2
Content-Type: application/json
Content-Length: 147
{
"id":"660a6d65e2994b350198af16",
"claimAll":false,
"uids":["660a6d1ae2994b350198af13"],
"clientId":"skd",
"version":2
}const myHeaders = new Headers();
myHeaders.append("mm-client-id", "skd");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("mm-user-id", "650ad419d995b4f348455ce2");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"id": "660a6d65e2994b350198af16",
"claimAll": false,
"uids": [
"660a6d1ae2994b350198af13"
],
"clientId": "skd",
"version": 2
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://mailbox-dev.api.mimiland.io/v1/mailbox/claim", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Last updated