Asset Layer Docs
Asset LayerAPI Docs
  • 👋Welcome
  • Getting Started
    • Quick Start
      • Quick Start for Developers
      • Quick Start for Creators
      • Quick Start for Unity
    • Core Concepts
      • Users
      • Auth + Permissions
      • Teams
      • Apps
      • Slots
      • Expressions
      • Assets + Collections
      • Currencies
      • Marketplace and Shops
      • Core Concepts in Action
    • SDK Docs
      • Setup
      • Users
        • getUser()
      • Apps
        • info()
        • getApp()
        • getApps()
        • slots()
        • getAppSlots()
        • getAppSlotIds()
      • Slots
        • getSlot()
        • collections()
        • getSlotCollections()
        • getSlotCollectionIds()
        • getSlotExpressions()
        • createExpression()
        • updateExpression()
        • getExpressionTypes()
      • Collections
        • info()
        • getCollection()
        • getCollections()
        • assets()
        • getCollectionAssets()
        • getCollectionAssetIds()
        • createCollection()
        • updateCollection()
        • updateCollectionImage()
        • activateCollection()
        • deactivateCollection()
      • Assets
        • info()
        • getAsset()
        • getAssets()
        • user()
        • getUserAssets()
        • getUserAssetIds()
        • getUserAssetCounts()
        • getUserCollectionAssets()
        • getUserCollectionsAssets()
        • getUserSlotAssets()
        • getUserSlotsAssets()
        • mintAssets()
        • send()
        • sendAsset()
        • sendAssets()
        • sendCollectionAssets()
        • sendLowestAsset()
        • sendRandomAsset()
        • update()
        • updateAsset()
        • updateAssets()
        • updateCollectionAssets()
        • expressionValues()
        • updateAssetExpressionValue()
        • updateAssetsExpressionValue()
        • updateCollectionAssetsExpressionValue()
        • updateBulkExpressionValues()
      • Equips
        • getEquips()
        • setEquip()
        • removeEquip()
      • Currencies
        • info()
        • getCurrency()
        • balance()
        • getCurrencyBalance()
        • getCurrencySummary()
        • increaseCurrencyBalance()
        • decreaseCurrencyBalance()
        • transferCurrency()
      • Listings
        • getListing()
        • user()
        • getUserListings()
        • getUserListingsCounts()
        • getUserCollectionListings()
        • getUserCollectionListingsCounts()
        • getUserSales()
        • getUserSalesCounts()
        • getUserPurchases()
        • getUserPurchasesCounts()
        • collection()
        • getCollectionListings()
        • getCollectionsListings()
        • getCollectionListingsCounts()
        • getCollectionsListingsCounts()
        • getCollectionListingsStats()
        • getCollectionsListingsStats()
        • app()
        • getAppListings()
        • getAppListingsCounts()
        • getAppListingsStats()
        • new()
        • listAsset()
        • listAssets()
        • listCollectionAssets()
        • updateListing()
        • buyListing()
        • removeListing()
      • Shop
        • buyItem()
        • summary()
      • Core Types
        • User
        • App
        • Slot
        • Expression
        • Collection
        • Asset
        • Equip
        • Currency
        • Listing
        • Shop
        • Basic
      • SDK Repo
      • C# SDK for Unity
    • Guides
      • How to Integrate Asset Layer into your Unity Game
    • API Docs
    • Asset Layer GPT
  • Build an app
    • App Setup
      • Creating an App
      • Managing Apps
      • App Info
      • Manage Permissions
      • Manage Slots
      • Manage Collections
      • Manage Currencies
      • App Settings
    • App Development
    • Build With Unity
      • Unity App Setup
      • Advanced Unity Setup
        • WebGL App Setup
      • Asset Layer Unity SDK
        • Login + Authentication
        • Create Assets in Unity
        • Import Assets Into Your Scene
        • Inventory Manager
        • Sync Your Assets
        • Asset Layer Game Server
        • C# SDK
    • Sample App
      • Getting Started With Sample App Locally
      • Environment Variables
      • API Routes
      • Deployment
      • Default Pages
      • Deploying Your Unity WebGL Game Through Sample App
  • Create and Manage Assets
    • Create Assets With Code
    • Create Assets Without Code
      • Create Assets for My App
      • Submit a Collection for a 3rd Party App
      • Create an Independent Collection - Coming Soon!
    • Create Assets in Unity
    • Managing Collections from 3rd Party Creators
  • Manage Assets
    • My Assets
      • Listing Assets for Sale
      • Sending Assets as a Gift
      • My Listings
      • Marketplace History
    • Marketplace
  • Settings
    • Team Settings
    • Account Settings
    • Pricing
  • Details
    • Expression Types
      • Image
      • Audio
      • Video
      • Unity
      • Spine 4.0 (2D Animated Characters)
      • Additional Expression Types
Powered by GitBook
On this page
  • API Docs
  • Check out our API Docs Here
  • Testing with Postman
  1. Getting Started

API Docs

PreviousHow to Integrate Asset Layer into your Unity GameNextAsset Layer GPT

Last updated 1 year ago

API Docs

Testing with Postman

Our API docs are manged with Postman. Postman can be a great way to get familiar with an API and to make API calls outside the regular context of your application. Below is a tutorial on getting started testing the Asset Layer API using Postman.

Open the Docs and Run in Postman

To get started with Postman, first open the API docs in a new tab using the link above. On that webpage, you'll see a button in the top right-hand corner, "Run on Postman". You'll have two choices, Postman for Web, and a desktop application (assuming you are accessing via desktop). Both choices will work, but this guide will be geared towards Postman for Web.

If you don't have a Postman account, you'll need to register with your email. Using Postman to test the Asset Layer API is free, and signing up is fast!

Import to My Workspace

Once you are logged in, you'll be prompted to select a workspace to import the collection. Either choose the default, "My Workspace", or if you prefer to import to an existing or dedicated workspace, then you can do so as well.

Once you've imported the collection. You'll see the API docs as well as a file explorer with all of the endpoints.

Add Your App Secret and DID Token

In order to start making calls, you'll first need to add your App Secret and DID Token to your environment variables. On the left hand side of the page, you'll see a button "Environments". Click on Environments and then Globals. That will take you to a page with a section like this.

You'll create two variables - {{v2appsecret}} and {{v2didtoken}}. You can optionally set them to secret. Then, enter your app's app secret and a valid did token for testing. You can get both from the App Info section of your application dashboard. When you've entered your values, your globals section should look like this. Remember to press save!

Please Note: DID tokens will expire. You can always get a new DID token from your app info page and paste the new value into your globals. Remember to save!

Making API Calls

Now that you've added the Asset Layer collection to your Postman workspace and added your app secret and DID token to your environment globals, you are ready to start making API calls.

The Postman collection is populated with all of the endpoints including the needed parameters for GET requests as well as example bodies for POST requests. To make a call, simply fill in the parameters or add your values into the request body and then press send. The response will be appear below.

Check out our API Docs Here