Skip to main content

API Overview

The Hoard Agent communicates with the Hoard server via a REST API. All endpoints use Bearer token authentication with your API key.

Base URL

https://www.tryhoard.com/api/v1

Authentication

Every request must include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Get your API key from Settings > Account.

Endpoints

MethodPathPurpose
POST/heartbeatAgent keep-alive signal
GET/sync/pendingCheck if a sync should run
POST/syncUpload inventory CSV (gzipped)
POST/sync/cancelRelease sync lock on failure
GET/export/price-updatesDownload repricing CSV
POST/ordersUpload order data
POST/sales_reportUpload sales report
GET/sales_report/gapsGet months missing data
POST/repricing_eventsRecord a price import event

Response format

All endpoints return JSON. Successful responses include the relevant data. Error responses follow this format:
{"error": "description of what went wrong"}

Status codes

CodeMeaning
200Success
401Invalid or missing API key
413Payload too large
422Validation error
500Server error
This API is designed for the Hoard Agent, not for general-purpose use. The agent handles all API communication automatically. You don’t need to call these endpoints directly unless you’re building a custom integration.