API Documentation
Integrate PrintStack3D into your own workflow via our REST API.
1. Authentication
All API requests require an API key. Generate a key from your dashboard under Settings → API Keys.
Send the key as a Bearer token in the Authorization header:
Authorization: Bearer ps3d_your_api_key_here
API keys always start with ps3d_ and are 52 characters long. Store your key securely — it is shown only once.
2. Base URL
https://printstack3d.nl
All endpoints are relative to this base URL. Requests must be made over HTTPS.
3. List available filaments
/api/filamentsReturns a list of all available filaments. Use the returned id when creating an order.
Request
curl https://printstack3d.nl/api/filaments \ -H "Authorization: Bearer ps3d_your_api_key_here"
Response
{
"filaments": [
{
"id": "clx1abc123",
"type": "PLA Basic",
"colorName": "Galaxy Black",
"hexColor": "#1a1a2e"
}
]
}4. Request a quote
/api/orders/quoteUpload an STL or 3MF file to receive a price quote. The returned quoteId is valid for 24 hours and is used to create an order.
Request (multipart/form-data)
| Field | Required | Description |
|---|---|---|
file | ✓ | STL or 3MF file, max 100 MB |
curl https://printstack3d.nl/api/orders/quote \ -H "Authorization: Bearer ps3d_your_api_key_here" \ -F "[email protected]"
Response
{
"quoteId": "user123--abc456-model.stl",
"originalName": "model.stl",
"fileSize": 204800,
"volumeMm3": 1000.5,
"surfaceAreaMm2": 600.2,
"weightGrams": 1.26,
"basePrice": 4.20,
"bbox": { "x": 10.0, "y": 10.0, "z": 10.0 },
"source": "geometric"
}5. Create an order
/api/ordersCreate an order from a previously received quote. Returns a checkoutUrl to complete payment.
Request (application/json)
| Field | Required | Description |
|---|---|---|
quoteId | ✓ | quoteId from the quote response |
originalName | ✓ | originalName from the quote response |
filamentId | — | ID of desired filament (see /api/filaments) |
infill | ✓ | Infill percentage: 10, 20, 40 or 100 |
quality | ✓ | Layer height: "0.08mm", "0.12mm", "0.16mm" or "0.20mm" |
nozzleSize | — | "0.4" (default) or "0.2" |
shipping | ✓ | Shipping details (see below) |
lang | — | "nl" or "en" — language for emails (default: "nl") |
Shipping object fields
| Field | Required |
|---|---|
name | ✓ |
street | ✓ |
number | ✓ |
numberSuffix | — |
postalCode | ✓ |
city | ✓ |
country | ✓ |
phone | — |
curl https://printstack3d.nl/api/orders \
-H "Authorization: Bearer ps3d_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"quoteId": "user123--abc456-model.stl",
"originalName": "model.stl",
"filamentId": "clx1abc123",
"infill": 20,
"quality": "0.16mm",
"nozzleSize": "0.4",
"lang": "nl",
"shipping": {
"name": "Jan de Vries",
"street": "Hoofdstraat",
"number": "42",
"postalCode": "1234 AB",
"city": "Amsterdam",
"country": "NL"
}
}'Response
{
"orderNumber": "PS-0042",
"orderId": "clx9xyz789",
"checkoutUrl": "https://printstack3d.nl/nl/checkout/..."
}Redirect your user to the checkoutUrl to complete payment via Mollie.
6. Error codes
| Status | Meaning |
|---|---|
400 | Bad request — check required fields |
401 | Missing or invalid API key |
403 | Access denied for this resource |
422 | Model too large for the build plate |
429 | Too many requests — slow down |
500 | Internal error — contact us if this persists |
Error responses always include an error field with a description.
7. Support
Questions about the API? Send an email to [email protected].