Authorization
The API requires that you authenticate with a valid JWT bearer token in order to access the API.
You can create an account and get your token directly on our website.
Once you have a JWT bearer token, you can use it to authenticate with the API by including it in the Authorization header of every request. The following is an example of authenticating with the API:
Endpoint: GET /my/characters
curl --location --request GET 'https://api.artifactsmmo.com/my/characters?page=1&size=50' \--header 'Accept: application/json' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer YOUR_TOKEN'const url = 'https://api.artifactsmmo.com/my/characters?page=1&size=50';const options = {method: 'GET',headers: { Accept: 'application/json', 'Content-Type': 'application/json', Authorization: 'Bearer YOUR_TOKEN'}};
try {const response = await fetch(url, options);const data = await response.json();console.log(data);} catch (error) {console.error(error);}import requests
url = "https://api.artifactsmmo.com/my/characters?page=1&size=50"headers = { "Accept": "application/json", "Content-Type": "application/json", "Authorization": "Bearer YOUR_TOKEN"}
response = requests.get(url, headers=headers)print(response.json())The API will return a 452 error if you attempt to access an endpoint without a valid JWT bearer token.
One common mistake is to forget to include the Bearer prefix in the Authorization header. For example, a proper Authorization header contains the value Bearer .