Everything you need to integrate your game with the Hoorks API. Follow these examples to start sending purchase notifications.
All API requests must include your API key in the X-API-KEY header. Generate an API key from the admin dashboard.
X-API-KEY: rdb_a1b2c3d4e5f6...Record a new purchase transaction and send a Discord notification.
| Field | Type | Description |
|---|---|---|
| userId | string | User ID of the buyer |
| productId | string | Product or item identifier |
| gamepassId | string | null | Gamepass ID, if applicable |
| isAGift | boolean | Whether the purchase is a gift |
| gifterId | string | null | User ID of the gifter |
| amount | number | Amount in Robux |
| universeId | string | Universe ID |
| placeId | string | Place ID |
| transactionId | string | Unique transaction identifier |
| timestamp | string | ISO timestamp of the purchase |
| itemType | string | Gamepass or DeveloperProduct |
POST /api/make-buy HTTP/1.1
Host: your-app.vercel.app
Content-Type: application/json
X-API-KEY: rdb_a1b2c3d4e5f6...
{
"userId": "123456789",
"productId": "sword-of-fire",
"gamepassId": "GP-001",
"isAGift": false,
"gifterId": null,
"amount": 499,
"universeId": "987654321",
"placeId": "111222333",
"transactionId": "TXN-abc-123-def",
"timestamp": "2025-01-15T14:30:00Z",
"itemType": "Gamepass"
}{
"success": true,
"data": {
"id": "uuid-generated",
"userId": "123456789",
"productId": "sword-of-fire",
"transactionId": "TXN-abc-123-def",
"amount": 499,
"createdAt": "2025-01-15T14:30:01Z"
}
}{
"error": "Invalid or missing API key"
}Retrieve paginated transaction records.
| Param | Default | Description |
|---|---|---|
| limit | 50 | Max 200 |
| offset | 0 | Pagination offset |
| Param | Default | Description |
|---|---|---|
| userId | — | Filter by user |
| gifterId | — | Filter by gifter user ID |
| transactionId | — | Filter by transaction ID (unique) |
| itemType | — | Filter by item type: Gamepass or DeveloperProduct |
Tip: if transactionId is provided, other filters are ignored.
GET /api/items?limit=10&offset=0&userId=123456789&gifterId=987654321&itemType=Gamepass HTTP/1.1
Host: your-app.vercel.app
X-API-KEY: rdb_a1b2c3d4e5f6...{
"success": true,
"data": [ ... ],
"pagination": {
"total": 42,
"limit": 10,
"offset": 0
}
}Ready-to-use Lua snippet for your game. Drop this into a server Script.