Generate an OAuth access token for the Lulu Print API
domain: api.lulu.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Generate a client_key and client_secret from the Lulu developer dashboard's API Keys page (use the sandbox dashboard for a sandbox key pair).
Base64-encode "client_key:client_secret" and send it as an HTTP Basic Authorization header.
POST to https://api.lulu.com/auth/realms/glasstree/protocol/openid-connect/token with body grant_type=client_credentials and Content-Type application/x-www-form-urlencoded.
Read the access_token field from the JSON response; note expires_in is typically 3600 seconds.
Include the token on all subsequent API calls as an Authorization: Bearer {access_token} header, and re-request a new token before it expires.
Known gotchas
Sandbox and production use different client_key/client_secret pairs and different base URLs (api.sandbox.lulu.com vs api.lulu.com) — credentials are not interchangeable.
Tokens expire quickly (about an hour); build automatic refresh rather than caching indefinitely.
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?