Listings
Retrieve a list of marketplace listings. Supports filtering, sorting, and pagination.
Identifier for the environment that this request should interact with
Cursor controls the starting point within the dataset.
Limit controls the number of results returned.
100id of the player to find listings for.
123e4567-e89b-12d3-a456-426614174000Listings and other data
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /v1/listings/search HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 198
{
"cursor": "",
"filter": {
"background": [
"Green",
"turquoise"
],
"team": [
"Connecticut pigs",
"Polissya"
]
},
"limit": 100,
"playerId": "123e4567-e89b-12d3-a456-426614174000",
"sort": [
{
"asc": true,
"field": "price"
}
]
}{
"MYTHtoUSD": {
"expiresAt": 1738728868,
"rate": "0.33",
"token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImJhc2UiOiJNWVRIIiwicmF0ZXMiOnsiVVNEIjoxLjU2fX0.WLo4h7JoJcJyXJZceOBlr84DJ_k1cGWBJhqbzKcPbcWHzMgrXcsnEFNr_hrDKUVeI-x_qQn1XfcUSLsWh1qDZg"
},
"cursor": "U3dhZ2dlciByb2Nrcw==",
"listings": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"item": {
"id": "text",
"itemTypeId": "text",
"ownerPlayerId": "text",
"tokenId": 1,
"state": "pending",
"metadataUrl": "http://url.com/1",
"metadata": {
"name": "text",
"description": "text",
"image": "text",
"attributes": [
{
"type": "attributeName",
"value": "attrValue",
"displayType": "number, boolean, string",
"maxValue": 255
}
]
},
"tags": [
"text"
]
},
"price": {
"myth": "4.2",
"usd": "42.5"
},
"purchase": {
"expiresAt": 1738728868,
"fee": {
"amount": {
"myth": "4.2",
"usd": "42.5"
}
},
"token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImxpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMCIsInVpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMSIsImZlZSI6MC40Mn0.Vi7A31IZbNhoW72d5oimpTU1M7puaFV4AkdP-ljCKBclk8ntvOR60bV7KifsLQOW1VZqpxMzqEiB7w6mi59gLg"
},
"trade": {
"expiresAt": 1738728868,
"fee": {
"amount": {
"myth": "4.2",
"usd": "42.5"
}
},
"token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImxpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMCIsInVpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMSIsImZlZSI6MC40Mn0.Vi7A31IZbNhoW72d5oimpTU1M7puaFV4AkdP-ljCKBclk8ntvOR60bV7KifsLQOW1VZqpxMzqEiB7w6mi59gLg"
},
"version": 5
}
]
}Purchase the specified listing from the Mythical Marketplace on behalf of the given player. Will only succeed if the provided mythToUsd rate has not deviated too far from when the price was quoted, and the version of the listing has not changed.
Identifier for the environment that this request should interact with
User on whose behalf the purchase is being executed.
123e4567-e89b-12d3-a456-426614174000A token that identifies and confirms the authenticity of the exchange rate at which the terms of the purchase were displayed.
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImJhc2UiOiJNWVRIIiwicmF0ZXMiOnsiVVNEIjoxLjU2fX0.WLo4h7JoJcJyXJZceOBlr84DJ_k1cGWBJhqbzKcPbcWHzMgrXcsnEFNr_hrDKUVeI-x_qQn1XfcUSLsWh1qDZgA token that identifies and confirms the authenticity of the purchase terms.
eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImxpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMCIsInVpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMSIsImZlZSI6MC40Mn0.Vi7A31IZbNhoW72d5oimpTU1M7puaFV4AkdP-ljCKBclk8ntvOR60bV7KifsLQOW1VZqpxMzqEiB7w6mi59gLgUUID of the listing to purchase.
123e4567-e89b-12d3-a456-426614174000A unique identifier for the idempotent execution and tracing the request.
123e4567-e89b-12d3-a456-426614174000Success
Bad Request
Unauthorized
Not Found
Internal Server Error
POST /v1/listings/purchase HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 680
{
"buyerPlayerId": "123e4567-e89b-12d3-a456-426614174000",
"exchangeRateToken": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImJhc2UiOiJNWVRIIiwicmF0ZXMiOnsiVVNEIjoxLjU2fX0.WLo4h7JoJcJyXJZceOBlr84DJ_k1cGWBJhqbzKcPbcWHzMgrXcsnEFNr_hrDKUVeI-x_qQn1XfcUSLsWh1qDZg",
"purchaseToken": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3Mzg3Mjg4NjgsImxpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMCIsInVpZCI6IjEyM2U0NTY3LWU4OWItMTJkMy1hNDU2LTQyNjYxNDE3NDAwMSIsImZlZSI6MC40Mn0.Vi7A31IZbNhoW72d5oimpTU1M7puaFV4AkdP-ljCKBclk8ntvOR60bV7KifsLQOW1VZqpxMzqEiB7w6mi59gLg",
"listingId": "123e4567-e89b-12d3-a456-426614174000",
"operationId": "123e4567-e89b-12d3-a456-426614174000"
}{}Check the status of a given purchase operation.
A unique identifier for the idempotent execution and tracing the request (UUID)
Identifier for the environment that this request should interact with
Offers and other data
Bad Request
Unauthorized
Not Found
Internal Server Error
GET /v1/listings/purchase/{operationId}/status HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
x-mythical-environment-id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"status": "Running"
}Last updated