Slimlytics Authentication API
Password and passkey sign-in, rotating refresh tokens, and passkey step-up (MFA).
Password and passkey sign-in, rotating refresh tokens, and passkey step-up (MFA).
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-authentication-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 Authentication 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: Authentication
description: Password and passkey sign-in, rotating refresh tokens, and passkey step-up (MFA).
paths:
/api/auth/refresh:
post:
tags:
- Authentication
summary: Exchange a refresh token for new tokens
operationId: refreshSession
responses:
'200':
description: New access token and rotated refresh token
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RefreshInput'
/api/auth/logout:
post:
tags:
- Authentication
summary: Sign out a session
operationId: logout
responses:
'204':
description: Session ended
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
security:
- {}
- bearerAuth: []
description: Revokes the session of the Bearer access token and/or the session whose current refresh token is supplied, so a client whose access token already expired can still end its session. Always returns 204.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
refreshToken:
type: string
/api/auth/passkey/start:
post:
tags:
- Authentication
summary: Begin usernameless passkey sign-in
operationId: startPasskeyLogin
responses:
'200':
description: WebAuthn request options
content:
application/json:
schema:
$ref: '#/components/schemas/WebAuthnChallenge'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
'429':
description: Too many sign-in attempts from this address
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security: []
/api/auth/passkey/finish:
post:
tags:
- Authentication
summary: Complete passkey sign-in
operationId: finishPasskeyLogin
responses:
'200':
description: Signed in; the session counts as MFA-verified
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PasskeyAssertion'
/api/auth/mfa/start:
post:
tags:
- Authentication
summary: Begin passkey verification for this session
operationId: startStepUp
responses:
'200':
description: WebAuthn request options for this account's passkeys
content:
application/json:
schema:
$ref: '#/components/schemas/WebAuthnChallenge'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
'403':
$ref: '#/components/responses/AccountForbidden'
security:
- bearerAuth: []
/api/auth/mfa/finish:
post:
tags:
- Authentication
summary: Complete passkey verification for this session
operationId: finishStepUp
responses:
'204':
description: Session marked MFA-verified for 12 hours
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'500':
$ref: '#/components/responses/InternalError'
'403':
$ref: '#/components/responses/AccountForbidden'
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/PasskeyAssertion'
/api/auth/register:
post:
tags:
- Authentication
summary: Register an account
operationId: registerAccount
responses:
'201':
description: Account created; returns a short-lived access JWT and a rotating refresh token
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal service error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Request Content-Type is not application/json
content:
text/plain:
schema:
type: string
'422':
description: JSON body could not be deserialized
content:
text/plain:
schema:
type: string
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Credentials'
/api/auth/login:
post:
tags:
- Authentication
summary: Create a session
operationId: login
responses:
'200':
description: Authenticated; returns a short-lived access JWT and a rotating refresh token
content:
application/json:
schema:
$ref: '#/components/schemas/TokenResponse'
'400':
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Authentication required or invalid/expired credential
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Internal service error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'415':
description: Request Content-Type is not application/json
content:
text/plain:
schema:
type: string
'422':
description: JSON body could not be deserialized
content:
text/plain:
schema:
type: string
security: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Credentials'
components:
responses:
BadRequest:
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
AccountForbidden:
description: Not allowed for this credential (API tokens, non-admins), or error code `mfa_required` when a session that verified a passkey within 12 hours is needed
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalError:
description: Internal service error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Credentials:
type: object
required:
- email
- password
properties:
email:
type: string
format: email
password:
type: string
format: password
minLength: 12
additionalProperties: false
RefreshInput:
type: object
required:
- refreshToken
properties:
refreshToken:
type: string
PasskeyAssertion:
type: object
required:
- challengeId
- credential
properties:
challengeId:
type: string
format: uuid
credential:
type: object
description: Serialized PublicKeyCredential from navigator.credentials.get()
WebAuthnChallenge:
type: object
required:
- challengeId
- options
properties:
challengeId:
type: string
format: uuid
description: Single-use ceremony ID; expires after 5 minutes
options:
type: object
description: WebAuthn `publicKey` creation or request options (binary fields are base64url)
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
TokenResponse:
type: object
required:
- token
- refreshToken
- expiresIn
properties:
token:
type: string
description: Short-lived session JWT (Bearer access token)
refreshToken:
type: string
description: 'Opaque `slrt_` refresh token. Single use: every refresh returns a new one. Sessions stay signed in for 30 idle days (365 days at most).'
expiresIn:
type: integer
description: Access token lifetime in seconds
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