Slimlytics Admin API

Platform administration. Requires an admin account and a session that verified a passkey within 12 hours; API tokens are refused.

GitHub OpenAPI

Operations 8

GET /api/admin/overview Platform totals #
GET /api/admin/users Search accounts #
GET /api/admin/users/{userId} Account detail #
DELETE /api/admin/users/{userId} Delete an account and the sites it alone owns #
POST /api/admin/users/{userId}/disable Disable an account and end all its sessions and tokens #
POST /api/admin/users/{userId}/enable Re-enable a disabled account #
POST /api/admin/users/{userId}/revoke-sessions End all of an account's sessions and tokens #
GET /api/admin/audit Admin audit log #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/slimlytics-com:slimlytics-com-admin-api"
All apis
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.

Get an API 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 Specification

slimlytics-com-admin-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slimlytics Admin 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: Admin
  description: Platform administration. Requires an admin account and a session that verified a passkey within 12 hours; API tokens are refused.
paths:
  /api/admin/overview:
    get:
      tags:
      - Admin
      summary: Platform totals
      operationId: adminOverview
      responses:
        '200':
          description: Counts of users, admins, disabled users, recent signups, sites, and recently active users
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
      security:
      - bearerAuth: []
  /api/admin/users:
    get:
      tags:
      - Admin
      summary: Search accounts
      operationId: adminListUsers
      responses:
        '200':
          description: Matching accounts, newest first
          content:
            application/json:
              schema:
                type: object
                required:
                - users
                - total
                properties:
                  users:
                    type: array
                    items:
                      $ref: '#/components/schemas/AdminUser'
                  total:
                    type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
      security:
      - bearerAuth: []
      parameters:
      - name: q
        in: query
        description: Email substring
        schema:
          type: string
          maxLength: 200
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
          default: 0
  /api/admin/users/{userId}:
    get:
      tags:
      - Admin
      summary: Account detail
      operationId: adminGetUser
      responses:
        '200':
          description: Account, sites, active sessions, passkeys, and token counts
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - bearerAuth: []
      parameters:
      - name: userId
        in: path
        required: true
        description: User UUID
        schema:
          type: string
          format: uuid
    delete:
      tags:
      - Admin
      summary: Delete an account and the sites it alone owns
      operationId: adminDeleteUser
      responses:
        '204':
          description: Account deleted
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - confirmEmail
              properties:
                confirmEmail:
                  type: string
                  description: The account's email, typed to confirm
      parameters:
      - name: userId
        in: path
        required: true
        description: User UUID
        schema:
          type: string
          format: uuid
  /api/admin/users/{userId}/disable:
    post:
      tags:
      - Admin
      summary: Disable an account and end all its sessions and tokens
      operationId: adminDisableUser
      responses:
        '204':
          description: Done
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - bearerAuth: []
      parameters:
      - name: userId
        in: path
        required: true
        description: User UUID
        schema:
          type: string
          format: uuid
  /api/admin/users/{userId}/enable:
    post:
      tags:
      - Admin
      summary: Re-enable a disabled account
      operationId: adminEnableUser
      responses:
        '204':
          description: Done
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - bearerAuth: []
      parameters:
      - name: userId
        in: path
        required: true
        description: User UUID
        schema:
          type: string
          format: uuid
  /api/admin/users/{userId}/revoke-sessions:
    post:
      tags:
      - Admin
      summary: End all of an account's sessions and tokens
      operationId: adminRevokeUserSessions
      responses:
        '204':
          description: Done
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
      - bearerAuth: []
      parameters:
      - name: userId
        in: path
        required: true
        description: User UUID
        schema:
          type: string
          format: uuid
  /api/admin/audit:
    get:
      tags:
      - Admin
      summary: Admin audit log
      operationId: adminAuditLog
      responses:
        '200':
          description: Most recent admin actions first
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AdminAuditEntry'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
      security:
      - bearerAuth: []
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 500
          default: 100
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'
    NotFound:
      description: Site or resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal service error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    AdminAuditEntry:
      type: object
      properties:
        id:
          type: integer
        actorEmail:
          type: string
        action:
          type: string
        targetUserId:
          type:
          - string
          - 'null'
          format: uuid
        targetEmail:
          type:
          - string
          - 'null'
        metadata:
          type: object
        createdAt:
          type: string
          format: date-time
    AdminUser:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        createdAt:
          type: string
          format: date-time
        lastLoginAt:
          type:
          - string
          - 'null'
          format: date-time
        disabledAt:
          type:
          - string
          - 'null'
          format: date-time
        isAdmin:
          type: boolean
        siteCount:
          type: integer
        passkeyCount:
          type: integer
        activeSessions:
          type: integer
        plan:
          type:
          - string
          - 'null'
    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
  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