Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Hang Tokens API

The Tokens API from Hang — 7 operation(s) for tokens.

Hang Tokens API is one of 18 APIs that Hang publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Tokens. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, and API documentation.

This API exposes 7 operations across 7 paths. It is described by OpenAPI 2.0, at version 2023.09.07.

Requests are made against the base URL https://loyalty.hang.xyz/partner-api.

7 operations 7 paths 0 schemas 3 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
2023.09.07
Base URL
https://loyalty.hang.xyz/partner-api
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Hang Tokens API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-Key (ApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 3 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Tokens 7
GET
/wallets/{wallet_address}/tokens
Retrieve the tokens, if any, owned by a given wallet address.
get_wallets_wallet_address_tokens 1 param → 200
POST
/tokens/{token_id}/add-trait
Endpoint to add a trait to a token
post_tokens_token_id_add-trait 3 params → 200
POST
/tokens/{token_id}/remove-trait
Endpoint to remove a trait from a token
post_tokens_token_id_remove-trait 3 params → 200
POST
/tokens/{token_id}/set-token-image
Endpoint to set a tokens image
post_tokens_token_id_set-token-image 2 params → 200
GET
/tokens/{token_id}/level
Retrieve the current level or tier, as well as earned points (XP) for a token.
get_tokens_token_id_level 1 param → 200404
GET
/tokens/{token_id}/loot-boxes
Endpoint to fetch all loot boxes for a token
get_tokens_token_id_loot-boxes 1 param → 200
POST
/tokens/{token_id}/loot-boxes/{loot_box_id}/open
Endpoint to open a loot box
posttokens_token_id_loot-boxes_loot_box_id_open 2 params → 200

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hang-tokens-api-openapi.yml Raw ↑

Other APIs Hang publishes across the network.

Hang Activities API
Hang Loot Box Reward Choices API
Hang Loot box reward probabilities API
Hang Loot Boxes API
Hang Member Actions API
Hang Memberships API
Hang Program memberships API
Hang Program Tiers API
Hang ProgramMembershipPuzzles API
Hang Programs API
Hang Puzzles API
Hang Quests API