# stl2step auth.md

How AI agents authenticate with stl2step (https://stl2step.ai), the STL to STEP converter. Short version: converting and
previewing need no credentials at all; accounts and payments belong to the person the agent works for.

## Audience

AI agents and assistants acting for a person who wants an STL, OBJ or PLY mesh turned into a STEP file.

## What needs no credentials

- Preview API: `POST https://boredinigo--stl2step-api.us-east.modal.run/v1/preview` (multipart `file`, or JSON `{"url": "https://..."}`), then
  `GET https://boredinigo--stl2step-api.us-east.modal.run/v1/preview/{code}`, `/png` and `/view`. No account, API key or token.
- MCP server: `https://boredinigo--stl2step-api.us-east.modal.run/v1/mcp` (streamable HTTP). Tools: `preview_mesh`, `get_preview`, `check_mesh`, `get_pricing`.
- Prices and limits: `GET https://boredinigo--stl2step-api.us-east.modal.run/v1/catalog`. Health: `GET https://boredinigo--stl2step-api.us-east.modal.run/health`.

No per-IP conversion quota. Pending work queues for available compute. Cached results return at once.
Large local files use the resumable `/v1/uploads` API; the legacy file POST accepts 50 MB.

## Registration

There is no agent registration, client registration, API key or OAuth authorization server, and none is needed
for the operations above. Accounts are for people: the person signs in at https://stl2step.ai/login with a 6-digit code sent
to their email address. Previews are free and STEP downloads require payment. An agent must not create accounts or read
sign-in codes on a person's behalf. Newsletter consent must be chosen by the person; agents must not subscribe
on their behalf or tick marketing checkboxes.

## Getting the STEP file

Every preview has a `claim_url` (https://stl2step.ai/claim?code=<code>). Give it to the person. They either sign in (the
conversion is added to their account for its normal credit cost, charged once per code) or pay $5 once
without an account on Stripe Checkout, which buys one download of that STEP. `POST https://boredinigo--stl2step-api.us-east.modal.run/v1/preview/{code}/checkout`
returns that checkout link. Payment is always completed by the person in their browser: there is no agent payment
protocol (x402, ACP, AP2).

## Credentials for account operations

`POST https://boredinigo--stl2step-api.us-east.modal.run/v1/claim` and the account endpoints take `Authorization: Bearer <JWT>`: a 15-minute JWT of the
person's account that the stl2step web app creates after sign-in. Agents should not ask people for it; the claim
page does the same thing in their browser.

## Machine-readable descriptions

- OpenAPI: https://stl2step.ai/openapi.json
- API catalog (RFC 9727): https://stl2step.ai/.well-known/api-catalog
- MCP server card: https://stl2step.ai/.well-known/mcp.json
- Agent skill: https://stl2step.ai/.well-known/agent-skills/stl2step/SKILL.md (index: https://stl2step.ai/.well-known/agent-skills/index.json)
- Guide for agents: https://stl2step.ai/agents
