SkinRelay
Workspace API.
Read inventory from a linked Steam account, manage listings and follow each order in your private seller workspace.
Browse endpointsconst response = await fetch("/api/workspace");
const desk = await response.json();
if (!response.ok) throw new Error(desk.error);
console.table(desk.listings);
Seller applications
Apply using your business or trader name and contact email. If approved, open the invitation in your email to set your password. Use the email from your application to sign in.
- POST
/api/applications - Apply for access. Submit
nameandemail. Optionaltelegram,siteandnotedescribe your trading profile. The public form returns a receipt. - POST
/api/activate - Activate an invitation. Send the private invitation
tokenwith a newpasswordof 12–256 characters. The invitation can be used once. For an expired, unused invitation, contact the administrator who issued it.
Authentication
Sign in with your approved seller account. The browser sends its session cookie with requests to the same SkinRelay origin. Send a JSON object with Content-Type: application/json for POST requests. Requests that change state must originate from the workspace.
- GET
/api/session - Check the current browser session. Returns
authenticated,user,accountLinkingandsellingReady. WhenemailCodeLoginis true, sign-in also requires an email code. The signed-in user includes their role and access status. - POST
/api/session - Sign in to your workspace. Send your
emailandpassword. SetrememberMetotrueto keep this browser signed in for up to 30 days. When email verification is enabled, valid credentials trigger a six-digit code and a response withrequiresEmailCode: true. Keep the pending browser cookie and complete verification in the same browser. A completed sign-in sets the HTTP-onlysr_sessioncookie. - POST
/api/auth/code/verify - Verify the email code. Send
codeas a six-digit string, including any leading zero. It expires after ten minutes. If your account uses an authenticator, continue with the authenticator challenge. If the challenge expires, start again with your password. - POST
/api/auth/code/request - Resend the code. From the browser waiting for verification, send an empty JSON object. Wait at least 60 seconds between sends and use the most recent code.
- DELETE
/api/session - Sign out. Ends the current session or cancels a pending email verification. Send this request from the workspace origin with an empty body.
Password recovery and authenticators
Choose Forgot password on the sign-in screen. A reset link goes to your registered address and expires after 15 minutes. Open it on your device and choose your new password. If you enrolled an authenticator, enter a current code. A successful reset signs you out on every device.
- POST
/api/auth/password/request - Send
email. The same acknowledgement protects the privacy of registered accounts. - POST
/api/auth/password/reset - Send the single-use
token, your newpassword, andtotpif enrolled. - POST
/api/auth/totp/verify - When sign-in returns
requiresTotp, send the six-digitcodefrom your authenticator using the same browser.
Personal read keys
Open Your account and select Create key. Copy the key when it appears. Store it in your server’s secret settings. Replacing or revoking a key disconnects clients that use it. Resetting your password also invalidates your key.
Send Authorization: Bearer YOUR_READ_KEY with a GET request to one of these endpoints on your SkinRelay host. Each response is scoped to the account that issued the key.
- GET
/api/v1/workspace - Read your linked accounts, listings, orders and ledger entries.
- GET
/api/v1/inventory?steamId={steamId} - Read the CS2 inventory for one of your linked Steam accounts. Check
fetchedAtandstaleto see when Steam last supplied it. - GET
/api/v1/wallet - Read your balance, withdrawals and balance movements.
Listing, delivery, account changes and withdrawal requests use the signed-in browser workspace.
Account approval
Administrators review applications in Accounts. Approved sellers receive an email to activate their workspace.
- GET
/api/admin/applications - Review applications. The authenticated administrator receives pending and reviewed seller records, their access status and activation status.
- POST
/api/admin/applications/{id} - Manage a seller account. Set
statustoapproved,rejectedordisabled. Approving a new seller emails an activation link to their registered address. Thedeliveryfield reportssentwhen the email service accepts the message orfailedif acceptance could not be confirmed. Send{"invite":true}to email a new invitation to an approved seller who has yet to activate.
Workspace & ledger
- GET
/api/workspace - Read the desk in one request. Returns
accounts,listings,ordersandledger, alongside the pricingcurrencyandsellingReadyflag. The ledger lists events newest first. Each event carries the available account, product and order references.
Workspaces contain only the signed-in seller’s accounts, listings, orders and ledger entries. The price on each listing or sale is the seller’s proceeds. For example, asking for 12.50 means 12.50 will be credited once the sale settles and its receipt is confirmed.
The desk displays amounts to two decimal places. The listing price field shows the currency when a three-letter currency code is configured. Keep Steam IDs, asset IDs and trade offer IDs as strings so their values stay exact.
Accounts & inventory
When renaming or unlinking, send the account’s linkVersion from the workspace as expectedVersion. If the link changed while the form was open, refresh before making the change.
- POST
/api/accounts/link - Link a Steam account. Send the 17-digit
steamIdand fulltradeUrl. The optionallabelsets a nickname of up to 80 characters. The workspace form can fill the ID from the URL. SkinRelay checks that the two match and encrypts the saved link. New accounts use public inventory. You can enable trade-link inventory separately in Steam accounts. - POST
/api/accounts/{steamId}/rename - Rename a linked account. Send the new
labelto change how the account appears in SkinRelay. Steam manages the public profile name separately. - POST
/api/accounts/{steamId}/unlink - Unlink a Steam account. Send
{"confirmed":true}. Resolve open listings and sale activity first. Previous listings, sales and balances stay with their original seller. - POST
/api/accounts/{steamId}/trade-link - Update your Steam trade URL. Send
tradeUrland the currentexpectedVersion. SkinRelay checks the account ID and stores the link encrypted. SendtradeLinkInventoryas a boolean to save your inventory choice, along withexpectedAccessVersionfrom the account’sinventoryAccessVersion. Saving a URL without a sharing choice selects public Steam inventory. - POST
/api/accounts/{steamId}/inventory-source - Choose how to read inventory. SkinRelay uses public Steam inventory by default. Send
enabled,confirmed: trueand the currentexpectedVersionto change the account’s selection. Enabling trade-link inventory allows SkinRelay to share the saved trade URL with its inventory provider to read tradable items. Turning it off restores public Steam inventory. Unlinking clears the saved URL and sharing choice. - POST
/api/accounts/{steamId}/auto-publish - Turn automatic listing on or off. Set up a pricing pool or item rule first. Send
enabled, your account’sexpectedVersionand explicit confirmation to enable. Eligible items with a pricing rule can be published from this inventory. Switching it off stops new automatic submissions. Manage existing listings in Listings. - GET
/api/accounts/{steamId}/market-status - Read the last marketplace check for your linked account. The response contains the Steam ID and
checkStatus. The values are 0 for checking, 1 for normal and 2 for flagged. An item’s current tradability is checked separately when you submit a listing. - GET
/api/inventory?steamId={steamId} - Read one linked account’s CS2 inventory. Returns
steamId,itemsand the last successful read time infetchedAt. Each item includes its asset ID, market name, image, tradability and inspect link. If Steam is temporarily unavailable, a saved result can havestale: true. UseretryAtwhen present to time the next refresh. Submitting a listing requires a fresh eligibility check.
Listings
In Inventory, each skin’s row shows market quotes for that item and wear. Select an item and choose Adaptive pricing to follow a market such as BUFF. A 100% target matches its ask, and a 95% target follows it at a 5% discount. You can also choose a percentage range or several sources. Active listings are checked about every ten minutes. Your last ask holds when fresh, independent quotes are unavailable.
In Listing desk → Market prices, search by weapon or finish and select the matching skin and wear. Choose a percentage to preview your ask at each source. At 102%, a 100.00 quote gives an asking price of 102.00. To sell, save your account’s Steam trade URL, select a tradable item and set a fixed ask or pricing rule. The skin stays in your Steam inventory until delivery.
If publishing is paused, an administrator can use Check connection in the Listing desk to check marketplace access from the hosted service. Your Steam account stays linked. The buyer’s trade link arrives with a matched order.
A new listing shows Submitting until the marketplace confirms it. SkinRelay checks the same listing automatically. You can also choose Check status in Listings.
- GET
/api/listings/reference?marketHashName={name} - Check a skin’s reference price. Use the exact Steam market name, including wear. Choose a
sourcefrom the workspace’spricingSourcesto see its asking price, currency and observation time. When available,comparablePricegives the equivalent in the listing currency. A missing or stale observation cannot set a listing price. - POST
/api/listings - List an item. Send the linked
steamId, the selectedassetIdand one pricing choice. Usepricefor a fixed ask,pricingRulefor an item rule, or{"usePool":true}to follow the account’s pricing settings. Rules support a minimum and maximum ask or percentages of selected reference prices. A successful submission returns HTTP 201 with the listing ID and current status. - POST
/api/listings/{productId}/price - Change an active listing’s price. Use the same pricing choices as for a new listing. For example,
{"pricingRule":{"sources":["buff"],"minPercent":"100","maxPercent":"100"}}tracks the BUFF ask. A new range starts at its ceiling. The service checks enrolled listings every ten minutes while running. With multiple sources it uses the lowest usable quote. If it can identify a competing marketplace ask, it adjusts within your bounds. Sync the listing to check the confirmed price. - POST
/api/listings/{productId}/cost - Record the purchase cost. Send
buyPriceas a decimal amount ornullto clear it. Accepted and settled sales can display the difference between seller proceeds and purchase cost. - GET
/api/pricing/pools - Read your pricing pools. Group Steam accounts by color to share a rule. You can exclude an item or give it its own rule. Selecting a pool for an individual listing makes later pool changes apply to it.
- POST
/api/pricing/pools/apply - Apply saved pricing pools. Send
{}to request an early check of eligible listings and accounts enrolled in automatic listing. The response gives the number of listings and accounts queued. A paused marketplace or an active cooldown can defer the check. - POST
/api/listings/{productId}/cancel - Remove a listing from sale. When the workspace listing has
canCancel: true, send{}. This includes a listing under review for a confirmed price mismatch. The response includes the listing ID and current status. Check its status to confirm removal. - POST
/api/listings/{productId}/sync - Reconcile listing status. Send
{}to check an existing listing. After an uncertain submission, find the item in the workspace and sync its existingproductIdbefore taking further action.
{
"steamId": "76561198000000019",
"assetId": "2000000042",
"price": "12.50"
}
The IDs above are illustrative. Use the IDs returned for the selected inventory item.
Order status
- GET
/api/orders/{requestId}/reported-status - Check a sale’s status. Returns
localStatusfrom SkinRelay andreportedStatusfrom the marketplace. A matching marketplace acceptance moves a sent order to On hold. A successful lookup without a matching order givesnullfor the reported state. - POST
/api/orders/{requestId}/status - Report a change you checked in Steam. Send the new
orderStatusandconfirmed: true. Use the purchase request ID fromorders. The response includes the current status andsyncPending, which remains true while the marketplace update awaits delivery.
In Sales, check the selling account, item asset ID and buyer’s Steam ID. Use the buyer’s trade link to send the item. Open that offer in Steam Sent Offers and paste its full address into Report sent offer. SkinRelay then checks the marketplace for acceptance, even after you close the desk.
| Status | When to use it |
|---|---|
| 1 · Awaiting delivery | A purchase has reserved the listing. SkinRelay records this state when the order arrives. |
| 2 · Delivering | Begin delivery of an order in state 1. |
| 3 · Offer sent | After state 2, tradeOfferId accepts the individual Steam offer URL or its numeric ID as a string. In Sales, choose Report sent offer, open Steam Sent Offers, and paste the address of the offer you sent. SkinRelay records the ID from that address. |
| 10 · On hold | When the marketplace confirms acceptance of the sent order, SkinRelay records the time it first saw that confirmation and shows the proceeds on hold during Steam trade protection. |
| 11 · Cancelled | Cancel before sending an offer. An order already in state 3 also requires a verified Steam tradeOfferStatus of 5, 6, 7 or 8 for an expired, cancelled, declined or invalid offer respectively. |
| 200 · Protection ended | At least seven days after recorded acceptance, confirm that protection ended and the trade stands to request settlement. |
| 220 · Reversed | After state 10 or 200, record a reversal with reversedType set to 1 for the seller or 2 for the buyer. |
Buying on the Market
Anyone can browse Market. Search a skin and choose View offers to see individual SkinRelay listings. BUFF, Youpin, CSFloat and Skinport supply reference prices. C5Game and EcoSteam appear when their feeds are connected. To purchase, sign in, choose a linked receiving Steam account with a saved trade URL, and confirm the maximum USD price. Open My purchases to track delivery.
Choose Best priced for Youpin, CSFloat or BUFF to rank offers by their discount from that venue’s latest comparable ask. For example, an $80 SkinRelay ask against a fresh $100 reference has a 20% discount. Set Minimum discount to keep offers at or above your threshold. The result count and scan status show how many prices have been checked. Use Wear to filter by condition. Each individual offer with a reported float shows its position on a 0–1 wear scale.
- GET
/api/public/skins - Pass
qand optionalwearto find illustrated item names for autocomplete. - GET
/api/public/market - Browse active CS2 items with lowest asks, pictures and external quotes. Filters include
q,min,maxandwear(fn, mw, ft, ww, bs). Sort byrecent,low,high,deal-youpin,deal-csfloatordeal-buff. Deal sorts acceptminDiscount. Pass the returnedsnapshotwithpageto keep the same ranking during pagination. - GET
/api/public/market-offers - Pass the exact
marketHashNameand optionalpageto read individual offers. - POST
/api/purchases - Submit the chosen
offerId, exactmarketHashName, receivingsteamId, decimalmaxPrice,confirmed: trueand a unique UUIDclientKey. Track the original confirmation after a timeout. Confirmed USD funds cover the purchase.
Deposits & withdrawals
In Balance → Deposit, choose a method configured by the administrator. Use the displayed token, network and receiving address, or the manual transfer instructions and payment memo. After sending the funds, report the transfer reference. The administrator verifies the receipt and credits the confirmed USD amount. Administrators manage receiving destinations and review reports under Admin → Deposits.
If the receiving details change after you send a transfer, open Balance in the same browser and sign in to the account that viewed the original instructions. Choose Already sent to an earlier destination?, select the method and date, and match the original receiving account or wallet against your receipt before reporting it.
Accepted trades stay under protection. Once protection ends, SkinRelay collects the sale proceeds into its own wallet. An administrator matches the incoming funds to your sale and credits your balance. Request a payout to your USDT or USDC wallet from Balance. Your request reserves that amount until an administrator sends and records the payment or releases the reservation.
- GET
/api/wallet - Read your balance. Returns the ledger currency,
available,underProtection,awaitingReceipt,reserved, balancehistory,withdrawalsand supportedmethods. Each withdrawal identifies the selected token (USDT or USDC) and its network. - POST
/api/wallet/withdrawals - Request a manual payout. Send the decimal
amountas a string,method, destinationaddress,confirmed: trueand a uniqueidempotencyKey. Includetotpwhen an authenticator is enrolled. Reuse the same key and fields when retrying the same request. - GET
/api/admin/wallet - Review wallet operations. Returns the administrator’s
overview, orders awaiting receipt confirmation and withdrawal requests. - POST
/api/admin/wallet/receipts/{requestId} - Confirm externally received sale proceeds. An administrator sends the receipt
referenceandconfirmed: trueafter verifying payment. This credits the proceeds agreed for the sale. - POST
/api/admin/wallet/withdrawals/{id}/paid - Record an external payout. After paying the request manually, submit its payment
reference, the actualtokenAmountsent andconfirmed: true. Native balance and transferred token amounts are recorded separately. - POST
/api/admin/wallet/withdrawals/{id}/rejected - Release an unpaid reservation. Send a
reasonandconfirmed: true. The reserved amount returns to the seller’s available balance.
Errors & retries
Failed requests return JSON with an error message. Check the HTTP status before reading a success payload.
- 400 / 415
- Check the request fields and send JSON for a POST body.
- 401 / 403
- Verify the seller session, approval and permissions. Send the request from the SkinRelay origin.
- 404 / 409
- Check the account or resource ID. Refresh the workspace to see which actions are available in its current state.
- 429
- Pause further requests. For Steam inventory, wait until the supplied
retryAttime or the delay in theRetry-Afterheader. - 502
- Read the latest workspace state after a listing operation. If the outcome is uncertain, sync the existing listing before submitting another change.
