Guides / Tools
Use the API
Create an API key in Workspace settings, Keys, and read your accounts, contracts, orders, listings, purchases and sales from https://api.goldmine.to/v1.
The API lets your own tools read your workspace: a spreadsheet of profit, a dashboard, an alert when something sells. Every endpoint is described in one OpenAPI document, so you can load it into Postman, generate a client, or hand it to an AI assistant.
Create a key
Open Workspace settings, Keys and choose Create key. Give the key a name that says what uses it, such as "Profit sheet", and choose its Policies: what the key may read. You confirm with your second sign-in step, and the key appears in the list ready to copy. Copy it then and keep it somewhere safe.
A key belongs to its workspace and can read only that workspace. If your role does not include API keys, the page says so, and the workspace owner can give you access.
Send it with each request
Send the key in the
Authorizationheader of every request:List your contractscurl https://api.goldmine.to/v1/contracts \ -H "Authorization: Bearer <your key>"Read the OpenAPI document
The whole API is described at https://api.goldmine.to/v1/openapi.json, with every endpoint, parameter and field. It needs no key.
What you can read
GET /v1/steam-accounts: your Steam accountsGET /v1/contractsandGET /v1/contracts/{id}: your contractsGET /v1/contracts/{id}/targets: the items and max prices a contract is buyingGET /v1/orders: your buy orders on the marketsGET /v1/listings: what you have listed for saleGET /v1/purchases: what you have boughtGET /v1/sales: what you have sold
How answers look
- Money is an exact decimal string with its currency:
{"amount": "12.34", "currency": "USD"}. - Ids start with what they are, such as
ctr_for a contract orpur_for a purchase. - Lists return
data,has_moreandnext_cursor. Ask for up to 100 at a time withlimit(25 when you leave it out), and passnext_cursorback ascursorfor the next page. - Times are RFC 3339 in UTC.
- Errors return an
errorobject with atype, acodethat never changes meaning, a plainmessageand therequest_id. Every answer also carries anX-Request-Idheader. Quote it if you ask us about a request.
Limits
Each key can make 100 calls a minute. Over that, the API answers 429 with a Retry-After header saying how many seconds to wait.
Look after your keys
- Rotate gives a key a new value. Choose whether the old value stops now, in 1 hour or in 24 hours, so you have time to update what uses it.
- Revoke stops a key for good.
- Changes to a key's policies apply from its next request.
Common questions
Will my code break when the API changes?
No. /v1 only grows: new fields, parameters and endpoints are added, and nothing is renamed or removed.
Can I use one key for two workspaces?
No. Each key reads only the workspace it was created in. Create a key in each workspace you want to read.
Can the API buy or sell for me?
No. The API only reads. Buying and selling are set up with contracts in the app, and the API shows what they do.