Introduction
Steep is where your organization defines its metrics. Everything you build on top of it gets the same definitions, the same numbers and the same access rules as the Steep app. Define a metric once, and use it everywhere.
Most teams build with the tools they already use, such as a notebook, a script or a small internal web app, and connect them to Steep through the Steep API.
What teams build
A few examples of what customers build on Steep:
- A live-ops tool for a game team. Combines player, revenue and retention metrics with game-specific data, to help the team decide on in-game events and offers.
- A store map. Shows each store's performance on a shopping centre's floor plan, using a metric broken down by store.
- A merchandising tool. Flags products with low sell-through, so merchandisers know what to reorder, mark down or move between stores.
- A metric watcher. A daily job queries key metrics and alerts the right team in Slack when something moves more than expected.
- A team portal. A small internal web app shows one team the handful of metrics they care about, with their own layout and terminology.
- An internal AI assistant. A company chatbot or agent answers metric questions with Steep as its source of truth.
What all of these share is the first decision you make: who is the app acting for?
Choose your path
There are two ways to connect your own app. The right one depends on whether a person is behind each request, and whether that person should only see what they can see in Steep.
Using Steep in an AI tool?
To use Steep in Claude, ChatGPT or another AI tool, connect it to the MCP server.
1. An app used by several people
Use OAuth with your own client.
This fits when you build an internal app, portal or bot that several people use, and each of them should only see what they have access to in Steep.
- Your app sends each user to Steep to sign in and approve access. Steep then sends them back to your app, which calls the Steep API on that user's behalf.
- Steep applies the same permissions as in the app, so access rules stay in one place.
- An admin creates a client for your app under Settings → OAuth clients, or your app can register itself automatically.
Steep uses the standard OAuth 2.1 authorization code flow with PKCE, so most OAuth libraries work out of the box. See Get started with OAuth below.
2. A background job with no person behind it
Use an API key.
This fits scheduled scripts, data pipelines, CI jobs and other automations where nobody signs in.
- An admin creates the key under Settings → API and picks its scopes and expiry.
- The key acts for the whole workspace, not for a person. Within its scopes it reads like a workspace admin: every metric, every row, regardless of access policies.
Don't share one API key across an app with many users
If a single API key sits behind an internal app, everyone using that app sees everything the key can see. If the people using your app shouldn't all see the same data, use OAuth (path 1) instead.
Compare the paths
| Your own app (OAuth) | Background job (API key) | |
|---|---|---|
| Who signs in | Each person, on Steep's sign-in page | Nobody |
| What it can see | What that person can see in Steep | Everything in the workspace, within scope |
| Who sets it up | An admin creates a client, or your app registers itself | An admin |
| Credentials | Short-lived access token and refresh token | API key, with optional expiry |
| Typical use | Portals, internal tools, chatbots | Scheduled jobs, pipelines, CI |
Get started with OAuth
These steps use a confidential client, which suits an internal web app with a backend. An OAuth library for your language or framework handles most of them for you, including the PKCE challenge, the state check, the code exchange and refreshing tokens. The steps show what happens underneath, and which values to give it.
1. Create a client. An admin goes to Settings → OAuth clients, clicks Create client and adds your app's redirect URI, such as https://your-app.example.com/oauth/callback. You get a client ID and a client secret. The secret is shown only once, so store it securely on your backend.
2. Send the user to Steep. When a user signs in to your app, redirect them to the authorization endpoint with your client ID, redirect URI, the scopes your app needs, a random state value and a PKCE code challenge:
https://oauth.steep.app/oauth/authorize
?response_type=code
&client_id=<client ID>
&redirect_uri=https://your-app.example.com/oauth/callback
&scope=metrics:read+metric-queries:read
&state=<random value>
&code_challenge=<PKCE code challenge>
&code_challenge_method=S256
3. The user approves access. Steep asks the user to sign in, if they aren't already, and shows a consent screen with your app's name and the access it's asking for.
4. Steep sends the user back. Steep redirects to your redirect URI with a one-time code and the state you sent. Check that state matches before you continue.
5. Exchange the code for tokens. From your backend, send the code to the token endpoint:
curl https://oauth.steep.app/oauth/token \
-u "<client ID>:<client secret>" \
-d grant_type=authorization_code \
-d code=<code> \
-d redirect_uri=https://your-app.example.com/oauth/callback \
-d code_verifier=<PKCE code verifier>
The response contains an access token and a refresh token for that user.
6. Call the Steep API. Send the access token on each request:
curl https://api.steep.app/v1/metrics \
-H "Authorization: Bearer <access token>"
7. Refresh when the token expires. Access tokens are short-lived. When one expires, send the refresh token to the token endpoint with grant_type=refresh_token to get a new pair. Refresh tokens are replaced each time you use them, so always store the newest one.
Endpoints
| Setting | Value |
|---|---|
| Discovery | https://oauth.steep.app/.well-known/oauth-authorization-server |
| Authorization endpoint | https://oauth.steep.app/oauth/authorize |
| Token endpoint | https://oauth.steep.app/oauth/token |
Apps without a backend
Desktop apps, command-line tools and single-page apps can't keep a secret. They can register themselves at https://oauth.steep.app/oauth/register the first time they run, with no admin involved, and must use PKCE. This is also how AI tools connect to the MCP server.
OAuth always needs a person
Every OAuth flow in Steep starts with a person signing in and approving access, including flows with a confidential client. For jobs that run with no one present, use an API key.
Other things to consider
Scopes. Give each key or client only the scopes it needs. Some scopes are only available to admins through OAuth, such as usage metrics. The discovery document lists the scopes you can request.
Offboarding. API keys aren't tied to the person who created them, so they keep working after that person leaves. Set an expiry and review keys under Settings → API regularly. OAuth access stops when the person loses access to Steep, and an admin can revoke a confidential client at any time.
Definitions travel with the data. Metric query results include the SQL Steep generated, and agents connected through MCP also receive the AI context you add to your semantic model. Keep descriptions and synonyms up to date, and every app and agent benefits.
Generate a client. The API is described by an OpenAPI spec, so you can generate a typed client for your language with an OpenAPI code generator, or give the spec to an AI coding tool and have it write the client for you.
Next steps
- Create an API key and browse the API reference.
- Set up the MCP server to use Steep in your AI tools.
- Define your semantic model in code to validate and sync changes from CI.