> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentpowers.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Record Installation

> Record a skill installation for abuse tracking.

- Authenticated + agentpowers: full record with skill_id + purchase_id
- Authenticated + external: record with skill_id = NULL
- Unauthenticated + external: silent no-op (200, not tracked)
- Unauthenticated + agentpowers: record anonymously (no user_id)



## OpenAPI

````yaml /openapi.json post /v1/installations
openapi: 3.1.0
info:
  title: AgentPowers API
  description: Paid marketplace for Claude Code skills and agents
  version: 0.1.0
servers:
  - url: https://api.agentpowers.ai
    description: Production
security: []
paths:
  /v1/installations:
    post:
      tags:
        - installations
      summary: Record Installation
      description: |-
        Record a skill installation for abuse tracking.

        - Authenticated + agentpowers: full record with skill_id + purchase_id
        - Authenticated + external: record with skill_id = NULL
        - Unauthenticated + external: silent no-op (200, not tracked)
        - Unauthenticated + agentpowers: record anonymously (no user_id)
      operationId: record_installation_v1_installations_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InstallationRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InstallationResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - BearerAuth: []
        - {}
components:
  schemas:
    InstallationRequest:
      properties:
        source_slug:
          type: string
          title: Source Slug
        hostname:
          type: string
          maxLength: 255
          minLength: 1
          title: Hostname
        platform:
          type: string
          pattern: ^(code|cowork|web|cli|mcp)$
          title: Platform
        source:
          type: string
          pattern: ^(agentpowers|clawhub)$
          title: Source
          default: agentpowers
      type: object
      required:
        - source_slug
        - hostname
        - platform
      title: InstallationRequest
    InstallationResponse:
      properties:
        id:
          type: string
          title: Id
        source_slug:
          type: string
          title: Source Slug
        hostname:
          type: string
          title: Hostname
        platform:
          type: string
          title: Platform
        source:
          type: string
          title: Source
        message:
          type: string
          title: Message
          default: Installation recorded
      type: object
      required:
        - id
        - source_slug
        - hostname
        - platform
        - source
      title: InstallationResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Provide a Clerk JWT or a long-lived CLI token (prefix `ap_cli_`).  Pass
        as `Authorization: Bearer <token>`.

````