Flex API
Bounce Flex RESTful Web API documentation
Last updated
Was this helpful?
Bounce Flex RESTful Web API documentation
Last updated
Was this helpful?
The Flex API provides methods for interacting with , allowing you to easily share secure access to dynamic assets, content and experiences in a range of connected spaces and platforms.
The Flex API supports programmatically claiming digital assets to user accounts, generating platform-specific activation links, and interacting with our Web Portal and in-game SDK to power seamless fan experiences from your site or app and into any supported environment.
The Flex API is also tightly integrates with Link phygital collectibles, allowing you to manage Flex digital assets and experiences without worrying about user authentication, and based on Link Tag tap codes.
For details on API authentication, limits and environments see
Bounce Flex is a cross-world digital content and experience platforms that powers the expansion of products, assets and IP across the metaverse. Flex works by linking "core assets", whether Link phygitals, connected NFTs or other types of digital collectibles, to platform-specific assets that can be attached to digital collectibles.
There are three types of assets that describe a Flex integration with a platform for a specific project:
Connection
A connection
represents the link between Flex and a platform for a given project, and its related IP, digital media assets, and in-platform assets.
By enabling a connection you make a certain platform asset class (such as a Sandbox avatar, Snap lens, of in-game asset) available for claim and use.
In programming terms, you can think of a connection as a class
.
Asset
An asset
represents an instance of the connection
for a particular digital collectible (and particular owners).
An asset
can have specific traits, be owned by a user, or attached ("bound") to a digital collectible across trades (depending on the platform).
Assets can be automatically claimed when a digital collectible is claimed, claimed in a secondary step, or even sold separately.
In programming terms, you can think of an asset
as an instance of a class
.
Activation
An activation
is a short-lived token, URL, deep-link or claim code that facilitates the activation of a Flex asset inside a metaverse platform, app or game.
Activation links are short-lived to ensure security of exclusive assets & experiences.
Here is a typical flow of how a Flex asset is claimed and activated:
Flex API interaction flow to unlock exclusive access to an avatar on a metaverse platform for an owner of a Link Tag-enabled collectible or any compatible digital asset.
GET
Flex connections available for projectGET
https://api.letsbounce.gg/v1/flex/{project_id}/connections
This endpoint returns a list of available Flex platform connections for a given project.
Connections are available when they have been enabled and correctly configured.
Note: currently connections cannot be enabled or disabled via the API
project_id*
String
Flex project ID
Available Flex connections response:
GET
Flex connection statusGET
https://api.letsbounce.gg/v1/flex/{project_id}/connections/{connection_id}
This endpoint returns the status of a connection for a given project.
project_id*
String
Flex project ID
connection_id
String
Flex platform connection ID
(platform enum)
Flex connection status response:
GET
Flex asset statusGET
https://api.letsbounce.gg/v1/flex/{project_id}/assets/{asset_id}
This endpoint returns the status of a Flex asset
project_id*
String
Flex project ID
asset_id*
String
Flex asset ID
Flex asset status response:
GET
Flex assets status by connectionGET
https://api.letsbounce.gg/v1/flex/{project_id}/connections/{connection_id}/assets
This endpoint returns the status of a batch of Flex assets by connection
project_id*
String
Flex project ID
asset_id*
String
Flex connection ID
offset
String
query offset
count
String
batch query size
Flex assets status by connection response:
POST
Issue a Flex assetPOST
https://api.letsbounce.gg/v1/flex/{project_id}/assets/{asset_id}/issue
This endpoint can be used to issue a new asset instance for a connection. If traits are configured for the asset, they can be set in the body of the request, or randomized as set.
Assets can be issued to Bounce users by user token or by user delegation, allowing you to link asset ownership to your own user accounts.
Flex asset issue response:
GET
Flex activation statusGET
https://api.letsbounce.gg/v1/flex/{project_id}/activations/{activation_id}
This endpoint returns the status of a Flex activation, a short-lived link or token used to securely share Flex-enabled experiences in connected platforms.
Activations may have the status of: invalid
, active
, expired
, opened
and claimed
.
project_id*
String
Flex project ID
activation_id*
String
Flex asset activation ID
Flex asset activation status response:
POST
Generate Flex activationPOST
https://api.letsbounce.gg/v1/flex/{project_id}/activations/issue
This endpoint can be used to generate a short-lived activation link or token that can be used to securely share a Flex experience with a user. Activation links & tokens are accepted by platforms and platform SDKs to guarantee an authorized unlocking of assets and experiences in platform.