Slimlytics MCP OAuth API
Browser login and public client registration for the MCP resource.
Browser login and public client registration for the MCP resource.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/slimlytics-com:slimlytics-com-mcp-oauth-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Slimlytics MCP OAuth API
version: 1.0.0
description: 'Account, personal API token, site configuration, privacy-preserving collection, reporting, goals, export, and real-time APIs for Slimlytics.
Use a short-lived session JWT for creating personal API tokens. Use a `slyt_…` personal API token for durable CLI and agent access. Both use `Authorization: Bearer `. Collection write keys authorize ingestion only.'
license:
name: MIT
identifier: MIT
servers:
- url: https://slimlytics.com
description: Slimlytics Cloud
security:
- bearerAuth: []
tags:
- name: MCP OAuth
description: Browser login and public client registration for the MCP resource.
paths:
/.well-known/oauth-protected-resource:
get:
tags:
- MCP OAuth
summary: Discover MCP OAuth configuration
operationId: oauthResourceMetadata
security: []
responses:
'200':
description: Public OAuth metadata
content:
application/json:
schema:
type: object
/.well-known/oauth-protected-resource/api/mcp:
get:
tags:
- MCP OAuth
summary: Discover MCP OAuth configuration
operationId: oauthMcpResourceMetadata
security: []
responses:
'200':
description: Public OAuth metadata
content:
application/json:
schema:
type: object
/.well-known/oauth-authorization-server:
get:
tags:
- MCP OAuth
summary: Discover MCP OAuth configuration
operationId: oauthServerMetadata
security: []
responses:
'200':
description: Public OAuth metadata
content:
application/json:
schema:
type: object
/api/oauth/register:
post:
tags:
- MCP OAuth
summary: Register a public OAuth client
operationId: registerOauthClient
security: []
responses:
'201':
description: Registered client metadata including client_id
'400':
description: 'RFC 7591 error: invalid_redirect_uri or invalid_client_metadata'
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
'429':
description: Registration rate limit exceeded for this client IP
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- redirect_uris
properties:
client_name:
type: string
maxLength: 100
redirect_uris:
type: array
minItems: 1
maxItems: 10
items:
type: string
format: uri
token_endpoint_auth_method:
type: string
enum:
- none
grant_types:
type: array
items:
type: string
enum:
- authorization_code
- refresh_token
response_types:
type: array
items:
type: string
enum:
- code
/api/oauth/authorize:
get:
tags:
- MCP OAuth
summary: Show browser login and OAuth permission approval
operationId: authorizeOauthClient
security: []
responses:
'200':
description: Login and consent form with CSRF cookie
content:
text/html:
schema:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'303':
description: Redirect to the registered callback with error, error_description, state, and iss once the client and callback are verified
parameters:
- name: client_id
in: query
required: true
schema:
type: string
format: uuid
- name: redirect_uri
in: query
required: true
schema:
type: string
format: uri
- name: response_type
in: query
required: true
schema:
type: string
enum:
- code
- name: code_challenge
in: query
required: true
schema:
type: string
minLength: 43
maxLength: 43
- name: code_challenge_method
in: query
required: true
schema:
type: string
enum:
- S256
- name: resource
in: query
required: true
schema:
type: string
format: uri
- name: scope
in: query
required: false
schema:
type: string
- name: state
in: query
required: false
schema:
type: string
maxLength: 2048
post:
tags:
- MCP OAuth
summary: Log in and approve an MCP connection
operationId: approveOauthClient
security: []
responses:
'303':
description: Redirect to the registered callback with a one-time code (or error=access_denied when cancelled), state, and iss
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
description: Login rate limit exceeded
parameters:
- name: client_id
in: query
required: true
schema:
type: string
format: uuid
- name: redirect_uri
in: query
required: true
schema:
type: string
format: uri
- name: response_type
in: query
required: true
schema:
type: string
enum:
- code
- name: code_challenge
in: query
required: true
schema:
type: string
minLength: 43
maxLength: 43
- name: code_challenge_method
in: query
required: true
schema:
type: string
enum:
- S256
- name: resource
in: query
required: true
schema:
type: string
format: uri
- name: scope
in: query
required: false
schema:
type: string
- name: state
in: query
required: false
schema:
type: string
maxLength: 2048
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- csrf
properties:
email:
type: string
password:
type: string
csrf:
type: string
action:
type: string
enum:
- approve
- deny
description: deny cancels and returns access_denied to the agent; email and password are then not required
description: Requires the slyt_oauth_csrf cookie from the login form and its matching hidden csrf field.
/api/oauth/token:
post:
tags:
- MCP OAuth
summary: Exchange a one-time code or a refresh token for a scoped MCP access token
operationId: exchangeOauthCode
security: []
responses:
'200':
description: Bearer access token valid for one hour, with a rotating refresh token
content:
application/json:
schema:
type: object
required:
- access_token
- token_type
- expires_in
- refresh_token
- scope
properties:
access_token:
type: string
token_type:
type: string
enum:
- Bearer
expires_in:
type: integer
refresh_token:
type: string
description: Single use. Rotates on every refresh; replaying a used one revokes the connection.
scope:
type: string
'400':
description: 'RFC 6749 error: invalid_request, invalid_grant, invalid_scope, invalid_target, or unsupported_grant_type'
content:
application/json:
schema:
$ref: '#/components/schemas/OAuthError'
requestBody:
required: true
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- grant_type
- client_id
properties:
grant_type:
type: string
enum:
- authorization_code
- refresh_token
client_id:
type: string
format: uuid
code:
type: string
description: Required for authorization_code
redirect_uri:
type: string
format: uri
description: Required for authorization_code
code_verifier:
type: string
minLength: 43
maxLength: 128
description: Required for authorization_code
refresh_token:
type: string
description: Required for refresh_token
scope:
type: string
description: 'refresh_token only: keep or narrow the granted scopes'
resource:
type: string
format: uri
description: Optional; must equal the MCP URL when present
/api/mcp:
get:
tags:
- MCP OAuth
summary: SSE streams are not offered
operationId: mcpNoSse
security: []
responses:
'405':
description: Method not allowed
components:
responses:
Forbidden:
description: Insufficient site role
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- unauthorized
- forbidden
- not_found
- bad_request
- rate_limited
- internal_error
message:
type: string
OAuthError:
type: object
required:
- error
properties:
error:
type: string
error_description:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT or slyt_ personal API token
description: Session JWT or personal API token. Token creation specifically requires a session JWT.
sessionQuery:
type: apiKey
in: query
name: token
description: Short-lived session JWT for native EventSource clients. Never put personal API tokens in URLs.
serverWriteKey:
type: apiKey
in: header
name: X-Slimlytics-Server-Key
description: Rotatable site secret accepted only by server request ingestion.
externalDocs:
description: Complete Slimlytics CLI installation and command reference
url: https://slimlytics.com/docs/cli