> ## 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.

# Confirm Purchase By Session

> Look up purchase status by Stripe session ID (post-redirect).

No auth required — Stripe session IDs are unguessable (64+ char random
strings) and act as bearer tokens for the specific checkout. This allows
the Astro SSR success page to confirm purchases without a Clerk JWT.



## OpenAPI

````yaml /openapi.json get /v1/purchases/confirm
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/purchases/confirm:
    get:
      tags:
        - purchases
      summary: Confirm Purchase By Session
      description: |-
        Look up purchase status by Stripe session ID (post-redirect).

        No auth required — Stripe session IDs are unguessable (64+ char random
        strings) and act as bearer tokens for the specific checkout. This allows
        the Astro SSR success page to confirm purchases without a Clerk JWT.
      operationId: confirm_purchase_by_session_v1_purchases_confirm_get
      parameters:
        - name: session_id
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            title: Session Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurchaseStatusResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PurchaseStatusResponse:
      properties:
        purchase_id:
          type: string
          title: Purchase Id
        status:
          type: string
          title: Status
        skill_slug:
          type: string
          title: Skill Slug
        license_code:
          anyOf:
            - type: string
            - type: 'null'
          title: License Code
        purchased_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Purchased At
      type: object
      required:
        - purchase_id
        - status
        - skill_slug
      title: PurchaseStatusResponse
    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

````