Players

Create a player for the title_id

post

Allows a player to be created without having gone through registration, enabling a frictionless first time user experience including asset ownership.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Header parameters
x-mythical-environment-idstring · uuidRequired

Identifier for the environment that this request should interact with

x-idempotency-keystring · max: 64Required

A unique identifier for the request. If the request is repeated with the same idempotency key, the response will be the same as the first request. Recommend using a UUID or ULID

Responses
post
/v1/players
201

Success

Get a player

get

Retrieve a single player by their id.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
playerIdstringRequired
Header parameters
x-mythical-environment-idstring · uuidRequired

Identifier for the environment that this request should interact with

Responses
200

Player

application/json
get
/v1/players/{playerId}

Link a player to a registered Mythical account

post

Player linking allows a player to be connected to a Mythical account and wallet. This allows players to progress and acquire on-chain assets and then link those to a Mythical account for marketplace trading. Linking a player is a one time operation that cannot be reversed. Only one player (per environment) can be linked to a Mythical account.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
playerIdstringRequired

The identifier of the player to be linked.

Header parameters
x-mythical-environment-idstring · uuidRequired

Identifier for the environment that this request should interact with

x-idempotency-keystring · max: 64Required

A unique identifier for the request. If the request is repeated with the same idempotency key, the response will be the same as the first request. Recommend using a UUID or ULID

Body
registeredAccountJwtstringRequired

bearer token for the registered Mythical account

Responses
post
/v1/players/{playerId}/link

No content

Get player inventory

get

Retrieves a list of items owned by a given player.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
playerIdstringRequired
Header parameters
x-mythical-environment-idstring · uuidRequired

Identifier for the environment that this request should interact with

Responses
200

Success

application/json
get
/v1/players/{playerId}/items
200

Success

Last updated