API Documentation

Explore the documentation and get started with Skinify
Real-time updates

Receive real-time updates for skin purchases and balance changes. You need to use WebSocket to connect.

WebSocket URL

wss://skinify.io/ws/?project_id={projectId}&signature={signature}

Signature Generation

Project ID and Token you can find in project settings. The signature is constructed as follows:

signature = md5(projectId + token)
Example on JavaScript
var projectId = 1; // from project settings var token = '123'; // from project settings var signature = md5(projectId + token); var ws = new WebSocket("wss://skinify.io/ws/?project_id=" + projectId + "&signature=" + signature); ws.onmessage = function(evt) { var jsonData = JSON.parse(evt.data); console.log(jsonData.event); // event console.log(jsonData.data); // data };
List of possible events
Event Name: auth_success
Description: Authorization was successful
Event Name: auth_failed
Description: Authorization failed
Event Name: skin_purchase
Description: Skin has been purchased
{ "event": "skin_purchase", "data": { "skin": { "id": "2516", "name": "AK-47 | Safari Mesh (Minimal Wear)", "price": "0.4", "properties": { "classid": "3940562910" } }, "purchase_id": "65", "purchase_status": "processing", "date": "1643713700", "balance_debited_sum": "29.93", "custom_id": "12345" } }
Event Name: skin_purchase_status_change
Description: Purchased skin status changed
{ "event":"skin_purchase_status_change", "data": { "skin": { "id":"2516" }, "purchase_id":"65", "purchase_status":"waiting_accept", "trade_offer_id":"4176876858" } }
Event Name: balance_change
Description: The amount on the balance has changed
{ "event":"balance_change", "data":{ "balance_value":"758.93" } }