smplkit Account API

The Account API from smplkit — 3 operation(s) for account.

GitHub OpenAPI

Operations 6

GET /api/v1/accounts/current Get Current Account #
PUT /api/v1/accounts/current Update Current Account #
DELETE /api/v1/accounts/current Delete Current Account #
POST /api/v1/accounts/current/actions/wipe Wipe Account Data #
GET /api/v1/accounts/current/settings Get Account Settings #
PUT /api/v1/accounts/current/settings Update Account Settings #

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/smplkit-com:smplkit-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

smplkit-com-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smplkit Account API
  description: API for the smplkit platform.
  version: 0.1.0
tags:
- name: Account
paths:
  /api/v1/accounts/current:
    get:
      tags:
      - Account
      summary: Get Current Account
      description: Return the account for the currently authenticated user.
      operationId: get_account
      security:
      - HTTPBearer: []
      responses:
        '200':
          description: Successful Response
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    put:
      tags:
      - Account
      summary: Update Current Account
      description: Update the current account's settings.
      operationId: update_account
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/AccountRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/AccountResponse'
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      tags:
      - Account
      summary: Delete Current Account
      description: Delete the current account and all associated data. By default the account is soft-deleted and may be restored by contacting support. Set `purge=true` to permanently and irreversibly erase the account and all of its data across every service, with no possibility of recovery.
      operationId: delete_account
      security:
      - HTTPBearer: []
      parameters:
      - name: purge
        in: query
        required: false
        schema:
          type: boolean
          description: When true, permanently and irreversibly erase the account and all of its data with no possibility of recovery. When false (the default), the account is soft-deleted and may be restored.
          default: false
          title: Purge
        description: When true, permanently and irreversibly erase the account and all of its data with no possibility of recovery. When false (the default), the account is soft-deleted and may be restored.
      responses:
        '204':
          description: Successful Response
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/accounts/current/actions/wipe:
    post:
      tags:
      - Account
      summary: Wipe Account Data
      description: 'Delete every config, flag, logger, log group, context, context type, environment, and customer API key (except the caller''s current key) on the account. The `common` config is preserved as a structural anchor but its items are reset. Requires `OWNER` role and a body of `{"confirm": true}` — any other value returns 400. Pass `"generate_sample_data": true` to re-seed the account with the standard sample dataset after the wipe (best-effort; seeding failures are logged but do not fail the wipe). Returns 204 on success; 500 if any sub-delete fails.'
      operationId: wipe_account_data
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/AccountWipeRequest'
        required: true
      responses:
        '204':
          description: Successful Response
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
  /api/v1/accounts/current/settings:
    get:
      tags:
      - Account
      summary: Get Account Settings
      description: Return the current account's settings as plain JSON.
      operationId: get_account_settings
      responses:
        '200':
          description: Successful Response
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Account Settings
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
    put:
      tags:
      - Account
      summary: Update Account Settings
      description: Replace the current account's settings with the provided JSON object. Requires admin role.
      operationId: put_account_settings
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              additionalProperties: true
              type: object
              title: Body
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/vnd.api+json:
              schema:
                additionalProperties: true
                type: object
                title: Response Put Account Settings
        '400':
          description: Validation error or malformed request
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid authentication
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
components:
  schemas:
    Account:
      properties:
        name:
          type: string
          maxLength: 255
          title: Name
          description: Human-readable name for the account.
        key:
          type:
          - string
          - 'null'
          title: Key
          description: Stable URL-safe identifier for the account, derived from the account name at creation. Used in console URLs and other places that prefer a human-readable handle.
          readOnly: true
        has_stripe_customer:
          type: boolean
          title: Has Stripe Customer
          description: '`true` once the account has been linked to a billing provider customer record.'
          default: false
          readOnly: true
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          title: Expires At
          description: When the account is scheduled to expire. `null` for accounts with no expiry.
          readOnly: true
        created_at:
          type:
          - string
          - 'null'
          format: date-time
          title: Created At
          description: When the account was created.
          readOnly: true
        deleted_at:
          type:
          - string
          - 'null'
          format: date-time
          title: Deleted At
          description: When the account was deleted. `null` for active accounts.
          readOnly: true
        product_subscriptions:
          additionalProperties: true
          type:
          - object
          - 'null'
          title: Product Subscriptions
          description: Map of product key to the account's subscription summary for that product, including plan, status, and entitlement limits.
          readOnly: true
        entry_point:
          type:
          - string
          - 'null'
          title: Entry Point
          description: How the account first reached smplkit (e.g. `LOGIN`, `GET_STARTED`, `LIVE_DEMO`).
          readOnly: true
        show_sample_data:
          type:
          - boolean
          - 'null'
          title: Show Sample Data
          description: Whether the account is currently configured to display the sample dataset alongside the customer's own resources.
          readOnly: true
        discount_override_pct:
          type:
          - integer
          - 'null'
          title: Discount Override Pct
          description: Custom discount percentage applied to the account in place of the volume-based discount schedule. `null` means the volume schedule applies. Who set it, when, and why are captured in the audit-event stream rather than on the subscription row.
          readOnly: true
      type: object
      required:
      - name
      title: Account
      description: 'A tenant of smplkit — the unit of isolation that owns all of a

        customer''s resources (environments, contexts, API keys, and so on).'
      example:
        created_at: '2026-03-20T11:02:16.616Z'
        has_stripe_customer: false
        key: acme_corp
        name: Acme Corp
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
      type: object
      required:
      - errors
      title: ErrorResponse
      description: JSON:API error response envelope.
    AccountResponse:
      properties:
        data:
          $ref: '#/components/schemas/AccountResource'
      type: object
      required:
      - data
      title: AccountResponse
      description: JSON:API single-resource response envelope for an account.
    AccountWipeRequest:
      properties:
        confirm:
          type: boolean
          title: Confirm
          description: Must be `true` for the wipe to proceed. Any other value returns 400.
        generate_sample_data:
          type: boolean
          title: Generate Sample Data
          description: 'When `true`, re-seed the account with the standard sample dataset after wiping. Best-effort: any seeding failure is logged but does not fail the wipe.'
          default: false
      type: object
      required:
      - confirm
      title: AccountWipeRequest
      description: Confirmation envelope for the wipe-account action.
      example:
        confirm: true
        generate_sample_data: false
    Error:
      properties:
        status:
          type: string
          title: Status
        title:
          type: string
          title: Title
        detail:
          type:
          - string
          - 'null'
          title: Detail
        source:
          additionalProperties: true
          type:
          - object
          - 'null'
          title: Source
      type: object
      required:
      - status
      - title
      title: Error
      description: Single JSON:API error object.
    AccountResource:
      properties:
        id:
          type:
          - string
          - 'null'
          title: Id
        type:
          type: string
          enum:
          - account
          title: Type
        attributes:
          $ref: '#/components/schemas/Account'
      type: object
      required:
      - type
      - attributes
      title: AccountResource
      description: 'JSON:API resource envelope for an account.


        `id` must not be specified for create requests (the server assigns it).'
      example:
        attributes:
          created_at: '2026-03-20T11:02:16.616Z'
          has_stripe_customer: false
          key: acme_corp
          name: Acme Corp
        id: d290f1ee-6c54-4b01-90e6-d701748f0851
        type: account
    AccountRequest:
      properties:
        data:
          $ref: '#/components/schemas/AccountResource'
      type: object
      required:
      - data
      title: AccountRequest
      description: JSON:API request envelope for creating or updating an account.
  securitySchemes:
    HTTPBearer:
      type: http
      description: JWT access token or API key (sk_api_*)
      scheme: bearer