Authentication

Private beta The v1 contract is implemented; the endpoints are not publicly reachable yet and access is by request. Details may still change during the beta.

Every request carries an organization API key as a bearer token.

Authorization: Bearer outfit_test_...

If a proxy or host in front of the API strips or intercepts the Authorization header, send the same key in X-Api-Key instead. Both are equivalent.

API keys

Test and live keys

PrefixUse
outfit_test_Sandbox: build and test the integration. Fits are generated by a stand-in generator, cost nothing and never reach the AI providers. Their output is a placeholder image, not a real Fit.
outfit_live_Production: real generation, counted against your plan.

Uploads and Fits made with a test key are invisible to a live key, and the other way round. Limits (requests per minute, concurrent Fits, monthly Fits) apply separately to each kind.

The prefixes are provisional and are confirmed before the public launch. The rest of the key is 32 random characters.

Scopes

ScopeAllows
uploads:writeCreate uploads
fits:writeCreate, delete and report Fits
fits:readRead and list Fits
usage:readRead usage

A key is created with the scopes it needs; a key with none of them can do nothing.

Rotation

Create a second key, move your integration to it, then revoke the first. Two live keys can be active at the same time on every plan.

What is not an API credential

Errors

StatusCodeMeaning
401unauthorizedThe key is missing, malformed, unknown or revoked. The message is the same in every case.
403forbiddenThe API is not enabled for the organization yet (private beta), the key lacks a scope, or the organization is on hold

See Errors for the response shape.