API tokens and webhooks
In brief: how to issue an access token, set up notifications to external systems, and where to find developer documentation.
Tokens and webhooks let you connect 3D Print Pricing to Home Assistant, Discord, Slack, n8n or your own scripts. Full documentation with a sandbox is on the developers page.
How it works
Access token.
- Open "Settings → Integrations → Developers → Access tokens".
- Create a token and choose its lifetime: 30 days, 90 days, 1 year (default) or no expiry. You can have up to 10 active tokens.
- Copy the token right away. You will get an email about the token being created — if it was not you, delete the token.
- Create a separate token for each integration so you can revoke one without affecting the others.
A token gives access to orders, printers, filaments, calculation and webhooks. It does not manage the account: it cannot issue tokens, make a backup, change the password or email, delete the account, invite people, end sessions, send documents by email, or send pause or stop commands to a printer.
Webhooks. In "Integrations → Developers", add a channel: your own URL, Home Assistant, Discord or Slack. The URL must be a public https address. For each channel you select events with checkboxes: new order, order status change, print finished, print error, filament running low, new request from the makers catalog, invoice paid by the client. Older channels keep two order events; new ones are enabled manually. The request body is signed; data examples are on the developers page.
Read-only token: your website and Excel
When you create a token, choose its access:
- Read only (default) — tick the sections: model catalog, orders, clients, stock, requests. Such a token changes nothing: any request that modifies data gets a 403 error, and so does a section you did not tick. Client personal data (name, phone, email) appears in responses only if you tick the matching checkbox.
- Full access — like the earlier tokens (slicer plugin, Home Assistant, n8n). All tokens created before stay with full access; each token in the list shows its access badge.
For spreadsheets there are ready lists with paging, a “changed since” filter and CSV export: /read-api/orders, /read-api/clients, /read-api/stock, /read-api/models, /read-api/leads. The limit is 120 requests per minute per token.
Excel. “Data → Get Data → From Other Sources → Blank Query → Advanced Editor”. Paste the query from the “Read-only API” section of the developers page and put in your token. With the regular “From Web” dialog, choose Advanced and add the Authorization header with the value Bearer pat_…. Refresh with “Refresh All”.
Google Sheets. A token inside a link (the IMPORTDATA formula) is not supported: links stay in browser history and logs, and IMPORTDATA cannot send headers. Use “Extensions → Apps Script” — a short UrlFetchApp script is on the developers page.
Your own website. A public storefront needs no token: the master profile, the badge and the estimate widget are open. If you pull data on your own server, keep the token there, never in page code.
FAQ
My integration suddenly stopped working. The token may have expired — create a new one.
Are deliveries retried if the receiver is unavailable? No, delivery is without retries.
If something goes wrong
The token returns a 401 error — it has expired or been deleted. A webhook does not arrive — check that the URL is a public https address and the right events are ticked.
İlgili konular
Cevabınızı bulamadınız mı?
Desteğe yazın — önce yapay zekâ asistanımız yanıtlar, gerekirse bir kişi devreye girer.