Game concepts
Inventory and Bank

Inventory

Each character has 20 slots in his 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)

JSON
....
"inventory": [
  {
    "slot": 0,
    "code": "string",
    "quantity": 0
    }
]

Bank

At the bank, you can deposit items and golds. The bank is shared with all your characters, it's the best way to trade with your other characters.

The bank is limited to 30 slots, but you can buy expansions at a cost of 2,500 golds, and the price increases (x2) with each expansion purchased.

Deposit/withdraw item

To deposit or withdraw an item, you must be on a map containing a bank.

You can use this POST request to withdraw an item:

cURL
curl --request POST \
  --url https://api.artifactsmmo.com/my/{name}/action/bank/withdraw \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "string",
  "quantity": 1
}'
Javascript
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/withdraw';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Accept: 'application/json',
    Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
  },
  body: '{"code":"string","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 an item:

cURL
curl --request POST \
  --url https://api.artifactsmmo.com/my/{name}/action/bank/deposit \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer INSERT_YOUR_TOKEN_HERE' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "string",
  "quantity": 1
}'
Javascript
const url = 'https://api.artifactsmmo.com/my/{name}/action/bank/deposit';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Accept: 'application/json',
    Authorization: 'Bearer INSERT_YOUR_TOKEN_HERE'
  },
  body: '{"code":"string","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)

Deposit/withdraw golds

To deposit or withdraw golds, you must be on a map containing a bank.

You can use this POST request to withdraw golds:

cURL
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
}'
Javascript
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 golds:

cURL
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
}'
Javascript
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 12,500 golds for 20 slots, and the price increases (x1.75) with each expansion purchased.

You can use this POST request to buy an expansion:

cURL
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' \
Javascript
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);
}

View the API Reference (opens in a new tab)