Listings
Listings related to Auction House
Some of these are authenticated endpoints. You can visit authentication to get an access token.
These endpoints allow you to create, read, update, delete listings. Listings are the main content of an auction house. They are created by profiles and can be bid on by other profiles.
These endpoints support pagination and sorting. Read more about these features here.
The Listing model
Prop | Type | Default |
---|---|---|
id | string | - |
title | string | - |
description | string | - |
tags | Array<string> | - |
media | Array<string> | - |
created | string | - |
updated | string | - |
endsAt | string | - |
_count | object | - |
Query parameters
Not all of the properties of a listing are returned by default. You can use the following optional query parameters to include additional properties in the response.
Prop | Type | Default |
---|---|---|
_seller | boolean | false |
_bids | boolean | false |
Filtering
You can filter for active listings by using the _active
query flag.
You can filter based on an entry in the tags array by using the _tag
query flag. You may only filter by one tag at a time.
Prop | Type | Default |
---|---|---|
_tag | string | - |
_active | boolean | - |
An example query filtering for active listings with the my_tag
tag.
All listings
This endpoint does not require authentication.
Retrieve all listings.
If you want to get all listings by a specific profile, you can use the listings by profile endpoint.
Single listing
This endpoint does not require authentication.
Retrieve a single listing by its id.
Use the _seller
, and/or _bids
flags to get more data from this request.
Create listing
Create a new listing. The title
and endsAt
properties are required, but we recommend at least including the description
and media
properties as well.
Please note that listings media
property must be an array of fully formed URLs that links to live and publicly accessible images. The API will check the provided URLs and if any cannot be accessed publicly you will receive a 400 error response.
Update listing
Update a listing.
Please note that listings media
property must be an array of fully formed URLs that links to live and publicly accessible images. The API will check the provided URLs and if any cannot be accessed publicly you will receive a 400 error response.
Delete listing
Delete a listing.
Returns an empty 204 response on success.
Bid on listing
Create new bid on a listing.
When a listing ends, the winning bid amount will be transferred to the seller's credits. All losing bids will be refunded to its original bidder's credits.