DEVELOPERS

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

GET/api/filaments

Returns 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

POST/api/orders/quote

Upload 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)

FieldRequiredDescription
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

POST/api/orders

Create an order from a previously received quote. Returns a checkoutUrl to complete payment.

Request (application/json)

FieldRequiredDescription
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

FieldRequired
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

StatusMeaning
400Bad request — check required fields
401Missing or invalid API key
403Access denied for this resource
422Model too large for the build plate
429Too many requests — slow down
500Internal 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].