API Documentation
Integrate with LastAccs using our REST API.
Authentication
All API requests require an API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEY
You can generate an API key from your dashboard settings.
Base URL
https://your-domain.com/api/v1
Endpoints
Products
GET
/products
List all available products with pagination.
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
| page | integer | Page number (default: 1) |
| limit | integer | Items per page (default: 20, max: 100) |
| category | string | Filter by category slug |
| search | string | Search by title or description |
GET
/products/:slug
Get a single product by slug.
Categories
GET
/categories
List all active categories.
Orders
POST
/orders
Create a new order.
Request Body:
{
"productId": "product_id_here",
"quantity": 1
}
GET
/orders
List your orders.
GET
/orders/:id
Get order details including delivered accounts.
Wallet
GET
/wallet/balance
Get your current wallet balance.
Response Format
All responses follow this standard format:
{
"success": true,
"data": { ... },
"pagination": {
"page": 1,
"limit": 20,
"total": 100,
"totalPages": 5
}
}
Rate Limiting
API requests are rate-limited to 100 requests per minute per API key.
If you exceed the limit, you will receive a 429 Too Many Requests response.