📄 API Documentation
Use your API key to integrate with BuyAccount from scripts or external tools. Pass the key in the X-API-Key header.
Authentication
X-API-Key: your_api_key_here
Endpoints
GET
/api/listings/
List all listings with filters
?game=league-of-legends&server=EUW&tier=Gold&min_price=10&max_price=100&page=1&per_page=20
GET
/api/listings/{id}
Get listing detail
POST
/api/listings/
Create a new listing
Body: { title, game, server, price, ign, description, account_data, image_urls }
PUT
/api/listings/{id}
Update listing
DELETE
/api/listings/{id}
Delete listing
GET
/api/users/me
Get current user info
PUT
/api/users/me
Update profile