Inventory
Each character has 20 slots in their inventory, which can hold a maximum of 100 items. So you can have 20 different items, but a maximum of 100 items in total. At each level, the maximum total items increases by 2.
You can view the contents of your inventory with this request. (opens in a new tab)
....
"inventory": [
{
"slot": 0,
"code": "string",
"quantity": 0
}
]
Bank
At the bank, you can deposit items and gold. The bank is shared with all your characters, it's the best way to trade with your other characters.
The bank is limited to 50 slots, but you can buy expansions at a cost of 4,500 gold, and the price increases (x2) with each expansion purchased.
View bank items
You can view the contents of your bank at any time using the following request:
curl --location --request GET 'https://api.artifactsmmo.com/my/bank/items' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE'
const url = 'https://api.artifactsmmo.com/my/bank/items';
const options = {
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer INSERT_YOUR_TOKEN_HERE'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
Get bank details
You can also view general information about your bank (total gold, slots, expansions, next expansion cost) using:
curl --location --request GET 'https://api.artifactsmmo.com/my/bank' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE'
const url = 'https://api.artifactsmmo.com/my/bank';
const options = {
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer INSERT_YOUR_TOKEN_HERE'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
Deposit/withdraw item
To deposit or withdraw items, you must be on a map containing a bank.
- You can deposit or withdraw up to 20 different items at once per request.
- The cooldown is 3 seconds per different item deposited or withdrawn.
You can use this POST request to withdraw items:
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/bank/withdraw/item \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '[
{ "code": "string", "quantity": 1 },
{ "code": "another_item", "quantity": 2 }
]'
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/withdraw/item';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
},
body: JSON.stringify([
{ code: "string", quantity: 1 },
{ code: "another_item", quantity: 2 }
])
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
You can use this POST request to deposit items:
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/bank/deposit/item \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '[
{ "code": "string", "quantity": 1 },
{ "code": "another_item", "quantity": 2 }
]'
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/deposit/item';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
},
body: JSON.stringify([
{ code: "string", quantity: 1 },
{ code: "another_item", quantity: 2 }
])
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
Deposit/withdraw gold
To deposit or withdraw gold, you must be on a map containing a bank.
- You can deposit or withdraw any amount of gold per request, as long as you have the gold available.
- The cooldown is always 3 seconds per deposit or withdrawal of gold, regardless of the amount.
You can use this POST request to withdraw gold:
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/bank/withdraw/gold \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '{
"quantity": 1
}'
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/withdraw/gold';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
},
body: '{"quantity":1}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
You can use this POST request to deposit gold:
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/bank/deposit/gold \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '{
"quantity": 1
}'
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/deposit/gold';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
},
body: '{"quantity":1}'
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
View the API Reference (opens in a new tab)
Buy expansion
To buy an expansion, you need to be on a map containing a bank. It costs 4,500 gold for 20 slots, and the price increases (x2) with each expansion purchased.
You can use this POST request to buy an expansion:
curl --request POST \
--url https://api.artifactsmmo.com/my/{name}/action/bank/buy_expansion \
--header 'Accept: application/json' \
--header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
--header 'Content-Type: application/json' \
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/buy_expansion';
const options = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}