Slimlytics Account API

Current account identity, signed-in devices, and passkeys.

GitHub OpenAPI

Operations 10

GET /api/account/sessions List signed-in devices #
DELETE /api/account/sessions/{sessionId} Sign out a device #
GET /api/account/passkeys List passkeys #
POST /api/account/passkeys/register/start Begin adding a passkey #
POST /api/account/passkeys/register/finish Finish adding a passkey #
DELETE /api/account/passkeys/{passkeyId} Remove a passkey (requires a passkey-verified session) #
GET /api/auth/me Get current account #
GET /api/account/integrations/porkbun Get Porkbun DNS automation status #
PUT /api/account/integrations/porkbun Connect Porkbun DNS automation #
DELETE /api/account/integrations/porkbun Disconnect Porkbun and delete its keys #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Slimlytics Account 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: Account
  description: Current account identity, signed-in devices, and passkeys.
paths:
  /api/account/sessions:
    get:
      tags:
      - Account
      summary: List signed-in devices
      operationId: listSessions
      responses:
        '200':
          description: Active sessions, most recently used first
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Session'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
      security:
      - bearerAuth: []
  /api/account/sessions/{sessionId}:
    delete:
      tags:
      - Account
      summary: Sign out a device
      operationId: revokeSession
      responses:
        '204':
          description: Session revoked
        '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: sessionId
        in: path
        required: true
        description: Session UUID
        schema:
          type: string
          format: uuid
  /api/account/passkeys:
    get:
      tags:
      - Account
      summary: List passkeys
      operationId: listPasskeys
      responses:
        '200':
          description: Registered passkeys (no key material)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Passkey'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
        '403':
          $ref: '#/components/responses/AccountForbidden'
      security:
      - bearerAuth: []
  /api/account/passkeys/register/start:
    post:
      tags:
      - Account
      summary: Begin adding a passkey
      operationId: startPasskeyRegistration
      responses:
        '200':
          description: WebAuthn creation options
          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: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Reauthentication'
  /api/account/passkeys/register/finish:
    post:
      tags:
      - Account
      summary: Finish adding a passkey
      operationId: finishPasskeyRegistration
      responses:
        '201':
          description: Passkey saved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Passkey'
        '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/PasskeyRegistrationFinish'
  /api/account/passkeys/{passkeyId}:
    delete:
      tags:
      - Account
      summary: Remove a passkey (requires a passkey-verified session)
      operationId: deletePasskey
      responses:
        '204':
          description: Passkey removed
        '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: passkeyId
        in: path
        required: true
        description: Passkey UUID
        schema:
          type: string
          format: uuid
  /api/auth/me:
    get:
      tags:
      - Account
      summary: Get current account
      operationId: getCurrentAccount
      responses:
        '200':
          description: Current account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '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'
        '403':
          description: Credential lacks permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - bearerAuth: []
  /api/account/integrations/porkbun:
    get:
      tags:
      - Account
      summary: Get Porkbun DNS automation status
      description: Whether this deployment supports Porkbun DNS automation and whether the user has connected Porkbun. Returns the last four characters of the API key, never the keys.
      operationId: getPorkbunStatus
      responses:
        '200':
          description: Configured, connected, and API key hint
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
    put:
      tags:
      - Account
      summary: Connect Porkbun DNS automation
      description: Checks the keys with Porkbun's ping and stores them encrypted. With them, adding a Search Console property or a Bing site also creates its verification record (create only, never edit or delete) in the user's Porkbun zone. Requires a browser session.
      operationId: savePorkbun
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - apiKey
              - secretApiKey
              additionalProperties: false
              properties:
                apiKey:
                  type: string
                  maxLength: 200
                secretApiKey:
                  type: string
                  maxLength: 200
      responses:
        '200':
          description: Connected status and API key hint
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
    delete:
      tags:
      - Account
      summary: Disconnect Porkbun and delete its keys
      operationId: deletePorkbun
      responses:
        '204':
          description: Porkbun disconnected
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    Account:
      type: object
      required:
      - id
      - email
      - createdAt
      - isAdmin
      - passkeyCount
      - mfaVerified
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        createdAt:
          type: string
          format: date-time
        isAdmin:
          type: boolean
          description: Platform administrator (granted out of band)
        passkeyCount:
          type: integer
        mfaVerified:
          type: boolean
          description: This session verified a passkey within the last 12 hours
    Passkey:
      type: object
      required:
      - id
      - name
      - createdAt
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        createdAt:
          type: string
          format: date-time
        lastUsedAt:
          type:
          - string
          - 'null'
          format: date-time
    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)
    Session:
      type: object
      required:
      - id
      - authMethod
      - createdAt
      - lastUsedAt
      - expiresAt
      - mfaVerified
      - current
      properties:
        id:
          type: string
          format: uuid
        authMethod:
          type: string
          enum:
          - password
          - passkey
        userAgent:
          type:
          - string
          - 'null'
        createdAt:
          type: string
          format: date-time
        lastUsedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        mfaVerified:
          type: boolean
        current:
          type: boolean
          description: The session making this request
    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
    PasskeyRegistrationFinish:
      type: object
      required:
      - challengeId
      - name
      - credential
      properties:
        challengeId:
          type: string
          format: uuid
        name:
          type: string
          minLength: 1
          maxLength: 100
        credential:
          type: object
          description: Serialized PublicKeyCredential from navigator.credentials.create()
    Reauthentication:
      type: object
      properties:
        currentPassword:
          type: string
          description: Required to add the first passkey. Adding more needs a session that verified a passkey within the last 12 hours.
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalError:
      description: Internal service error
      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'
  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