LovPics API Customer API

The API Customer API from LovPics — 6 operation(s) for api customer.

GitHub OpenAPI

Operations 9

GET /api/api-customer/details Get Api Customer Details #
PUT /api/api-customer/details Update Api Customer Details #
GET /api/api-customer/keys List Api Keys #
POST /api/api-customer/keys Create Api Key #
DELETE /api/api-customer/keys/{key_id} Revoke Api Key #
GET /api/api-customer/usage Real API-key usage stats: request totals, success/failure counts, and daily… #
GET /api/api-customer/credits Get Api Credits #
GET /api/api-customer/mcp-login-password Get Mcp Login Password #
PUT /api/api-customer/mcp-login-password Set Mcp Login Password #

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/lovpics-com:lovpics-com-api-customer-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

lovpics-com-api-customer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Virtual Studio API Customer API
  version: 0.1.0
tags:
- name: API Customer
paths:
  /api/api-customer/details:
    get:
      tags:
      - API Customer
      summary: Get Api Customer Details
      description: 'Get API customer details for the current authenticated user.


        Returns:

        dict: Customer details from api_customer_details table'
      operationId: get_api_customer_details_api_api_customer_details_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetailsResponse'
      security:
      - HTTPBearer: []
    put:
      tags:
      - API Customer
      summary: Update Api Customer Details
      description: 'Create or update API customer details for the current authenticated user.


        Args:

        details: API customer details to update

        current_user: Current authenticated user


        Returns:

        dict: Updated or created customer details'
      operationId: update_api_customer_details_api_api_customer_details_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/APICustomerDetailsUpdate'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerDetailsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/api-customer/keys:
    get:
      tags:
      - API Customer
      summary: List Api Keys
      description: List the current user's API keys (prefix only — plaintext is never stored).
      operationId: list_api_keys_api_api_customer_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    post:
      tags:
      - API Customer
      summary: Create Api Key
      description: 'Create a new lp_sk_ API key for the current user.

        The plaintext key is returned ONCE in this response; only its hash is stored.'
      operationId: create_api_key_api_api_customer_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /api/api-customer/keys/{key_id}:
    delete:
      tags:
      - API Customer
      summary: Revoke Api Key
      description: Revoke an API key (sets status to 0; the key stops working immediately).
      operationId: revoke_api_key_api_api_customer_keys__key_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: integer
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/api-customer/usage:
    get:
      tags:
      - API Customer
      summary: 'Real API-key usage stats: request totals, success/failure counts, and daily…'
      description: Aggregate api_usage_log rows for the current user's lp_sk_ API keys.
      operationId: get_api_usage_api_api_customer_usage_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/api-customer/credits:
    get:
      tags:
      - API Customer
      summary: Get Api Credits
      description: 'Get credits for the current authenticated user from the main credits table.

        API keys share the same credit pool as the app, so this reflects real balance.


        Returns:

        dict: Credits information (cr_credits, cr_non_exp_credits, totalCredits)'
      operationId: get_api_credits_api_api_customer_credits_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessCreditsResponse'
      security:
      - HTTPBearer: []
  /api/api-customer/mcp-login-password:
    get:
      tags:
      - API Customer
      summary: Get Mcp Login Password
      description: Whether this account already has the email/password used by Claude and ChatGPT sign-in.
      operationId: get_mcp_login_password_api_api_customer_mcp_login_password_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
    put:
      tags:
      - API Customer
      summary: Set Mcp Login Password
      description: 'Create or replace the password used on the MCP sign-in page.

        Stored as a bcrypt hash on the customer row. The plaintext is not kept.'
      operationId: set_mcp_login_password_api_api_customer_mcp_login_password_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpLoginPasswordBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    APICustomerDetailsUpdate:
      properties:
        api_acd_business_name:
          type: string
          title: Api Acd Business Name
        api_acd_purpose:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Acd Purpose
        api_acd_domain:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Acd Domain
        api_acd_status:
          type: integer
          title: Api Acd Status
          default: 1
      type: object
      required:
      - api_acd_business_name
      title: APICustomerDetailsUpdate
    CreditsBalance:
      properties:
        cr_cus_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Cr Cus Id
          examples:
          - 123
        cr_credits:
          type: integer
          title: Cr Credits
          examples:
          - 250
        cr_non_exp_credits:
          type: integer
          title: Cr Non Exp Credits
          examples:
          - 40
        totalCredits:
          anyOf:
          - type: integer
          - type: 'null'
          title: Totalcredits
          examples:
          - 290
      additionalProperties: true
      type: object
      required:
      - cr_credits
      - cr_non_exp_credits
      title: CreditsBalance
    McpLoginPasswordBody:
      properties:
        password:
          type: string
          maxLength: 128
          minLength: 8
          title: Password
        currentPassword:
          anyOf:
          - type: string
          - type: 'null'
          title: Currentpassword
        email:
          anyOf:
          - type: string
          - type: 'null'
          title: Email
      type: object
      required:
      - password
      title: McpLoginPasswordBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CustomerDetailsResponse:
      properties:
        success:
          type: boolean
          title: Success
          examples:
          - true
        data:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Data
      additionalProperties: true
      type: object
      required:
      - success
      title: CustomerDetailsResponse
    CreateApiKeyRequest:
      properties:
        name:
          type: string
          maxLength: 120
          title: Name
          default: API key
      type: object
      title: CreateApiKeyRequest
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SuccessCreditsResponse:
      properties:
        success:
          type: boolean
          title: Success
          examples:
          - true
        credits:
          $ref: '#/components/schemas/CreditsBalance'
      additionalProperties: true
      type: object
      required:
      - success
      - credits
      title: SuccessCreditsResponse
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer