Authentication
Last updated
All API requests require authentication via the Authorization header.
API keys are the recommended authentication method for server-to-server integrations.
Log in to app.promptshuttle.com
Navigate to your Tenant Settings
Under API Keys, click Create API Key
Copy the key — it is only shown once
Pass your API key as a Bearer token:
curl https://app.promptshuttle.com/api/v1/chat/completions \
-H "Authorization: Bearer ps_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{ ... }'API keys are scoped to your tenant. All requests made with a key are billed to that tenant and inherit its model routing rules, cost limits, and environment configurations.
The web UI uses JWT bearer tokens obtained via the login endpoint. These are primarily for interactive sessions and are not recommended for programmatic access — use API keys instead.
401
Missing or invalid API key / token
429
Rate limit exceeded (login endpoint)
When making requests on behalf of your own users, pass a customer identifier to attribute usage:
PromptShuttle auto-creates customer records on first use. You can manage customers via the Customers API and view per-customer usage in the dashboard.
Last updated
# Via header (works on all endpoints)
curl ... -H "X-Shuttle-Customer-Id: customer_123"
# Via request body (flow execution only)
curl ... -d '{ "customerId": "customer_123", ... }'