OAuth
Use OAuth to let other Tape users connect your app to their Tape account without copying a secret.
Tape is an OAuth 2.1 authorization server. An access token calls the Developer API and the Tape MCP server as the user who approved your app.
When to use OAuth
OAuth is mainly for MCP clients and for integrations and partners registered by Tape.
| You are building | Use |
|---|---|
| A script, internal tool or integration that calls the API directly, including on a user's behalf | A personal access token |
| An MCP client or AI platform | OAuth, with a client that registers itself |
| An integration or partner product with a "Connect to Tape" or "Sign in with Tape" button | OAuth, with a client registered by Tape. See the integration guide |
A personal access token can do everything an OAuth token can do, and more. It needs no client registration, no redirect, no consent screen and no refreshing. You can limit it to selected workspaces and apps. See Which credential to use.
How it works
- Your app sends the user's browser to Tape's authorization endpoint and names the scopes it needs.
- The user signs in to Tape if needed and chooses the organization to connect. The consent screen shows your app's name and what your app can do.
- The user approves. Tape redirects the browser back to your app with a short-lived authorization code.
- Your app exchanges the code at the token endpoint for an access token and a refresh token.
- Your app calls the API with the access token. The access token lasts one hour. Use the refresh token to get a new one.
Each approval creates a connection between the user and your app. A connection keeps working until one of these happens:
- The user, an organization admin, or your app disconnects it.
- The user loses access to the organization.
- 90 days pass without a refresh.
- 365 days pass since the user approved it. This doesn't apply when Tape registered your client as a confidential one.
The authorization flow walks through every step.
In Tape, users select their profile picture, then select Preferences → Connections. MCP clients appear under Tape MCP instead. Organization owners and admins manage connections for everyone on the Manage tab of the same pages.

Supported flows
| Grant type | Supported |
|---|---|
Authorization code with PKCE (authorization_code) | Yes, the only way to get a token |
Refresh token (refresh_token) | Yes |
| Client credentials | No |
| Device authorization | No |
| Implicit, resource owner password | No, OAuth 2.1 removes both |
- PKCE is required, with the
S256method. Tape refusesplain. - The response type is
code, and the response mode isquery. - Tape is not an OpenID Connect provider. There is no
id_tokenand no OpenID userinfo endpoint. The token response names the user (tape_user_id), andGET /v1/userreturns the rest. - Tokens are opaque. They are not JWTs. Don't try to decode them.
Endpoints
The issuer is https://api.tapeapp.com.
| Endpoint | URL |
|---|---|
| Authorization server metadata (RFC 8414) | GET https://api.tapeapp.com/.well-known/oauth-authorization-server |
| Authorization | GET https://api.tapeapp.com/oauth/authorize |
| Token | POST https://api.tapeapp.com/oauth/token |
| Revocation (RFC 7009) | POST https://api.tapeapp.com/oauth/revoke |
| Dynamic client registration (RFC 7591) | POST https://api.tapeapp.com/oauth/register |
| Protected resource metadata, Developer API | GET https://api.tapeapp.com/.well-known/oauth-protected-resource/v1 |
| Protected resource metadata, Tape MCP | GET https://mcp.tapeapp.com/.well-known/oauth-protected-resource/mcp |
The authorization server metadata also lists an introspection endpoint. Tape reserves it for its own services, and it refuses every other client.
Discover the endpoints from the metadata instead of hard-coding them:
{
"issuer": "https://api.tapeapp.com",
"authorization_endpoint": "https://api.tapeapp.com/oauth/authorize",
"token_endpoint": "https://api.tapeapp.com/oauth/token",
"revocation_endpoint": "https://api.tapeapp.com/oauth/revoke",
"introspection_endpoint": "https://api.tapeapp.com/oauth/introspect",
"registration_endpoint": "https://api.tapeapp.com/oauth/register",
"scopes_supported": ["apps:read", "records:read"],
"response_types_supported": ["code"],
"response_modes_supported": ["query"],
"grant_types_supported": ["authorization_code", "refresh_token"],
"token_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post", "none"],
"revocation_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post", "none"],
"introspection_endpoint_auth_methods_supported": ["client_secret_basic", "client_secret_post"],
"code_challenge_methods_supported": ["S256"],
"client_id_metadata_document_supported": true,
"authorization_response_iss_parameter_supported": true,
"service_documentation": "https://developers.tapeapp.com/oauth"
}
scopes_supported lists only the default read scopes. You can request every scope in Capabilities.
General behavior
- The token and revocation endpoints take
application/x-www-form-urlencodedbodies. Registration takesapplication/json. - Send each parameter at most once. Only
resourcemay repeat. - The token, revocation, and registration endpoints and all three metadata documents allow cross-origin requests. An app that runs in a browser can call them.
What an access token can do
- It acts as the user. Its access is the user's own permissions, narrowed by the scopes the user approved. Records it creates or changes show the user as the author.
- It reaches everything the user can. Unlike a personal access token, you can't limit an OAuth access token to selected workspaces and apps.
- It works at the Developer API and the MCP server alike. One token is valid at
https://api.tapeapp.com/v1and athttps://mcp.tapeapp.com/mcp. - It shares the user's rate limit. Every connected app draws from the same per-user budget as the user's personal access tokens. See Request limits.
Send it as a bearer token, the same way as a personal access token:
curl https://api.tapeapp.com/v1/user \
-H "Authorization: Bearer tape_oat_0a1b2c3d..."
Credential formats
Every OAuth credential has a recognizable prefix. The prefix is part of the value. Store and send each credential exactly as you received it.
| Credential | Prefix | Lifetime |
|---|---|---|
| Access token | tape_oat_ | 1 hour |
| Refresh token | tape_ort_ | Public client: single use, each refresh returns a new one. Confidential client: as long as its connection. See Refreshing |
| Authorization code | tape_oac_ | 60 seconds, single use |
| Client ID | tape_oc_ | None. A metadata document client uses its URL instead |
| Client secret | tape_ocs_ | Until Tape rotates it |
Next steps
- Register a client: get a
client_id, and a secret if your app has a backend. - Authorization flow: send each request step by step, then refresh, ask for more scopes, and disconnect.
- Integration guide: connect your product's users to Tape from your backend.
- Capabilities: every scope you can request.
- Personal access tokens: call the API directly without a client.
- Request limits: the per-user budget connected apps share.
- In the Help Center: Connect apps with OAuth 2.1