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

# Poll a shoot



## OpenAPI

````yaml /openapi.yaml get /v1/shoots/{id}
openapi: 3.1.0
info:
  title: Cherry Shot API
  version: 1.0.0
  description: >
    Generate studio-quality product photography and video ads programmatically.
    Authenticate with an API key (`Authorization: Bearer cs_...` or `x-api-key:
    cs_...`). Generation is asynchronous: create a shoot or video, then poll it
    until `status` is `completed`. Credits are charged the same as in the app.
servers:
  - url: https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api
    description: Production
security:
  - ApiKeyAuth: []
  - BearerAuth: []
paths:
  /v1/shoots/{id}:
    get:
      summary: Poll a shoot
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Shoot
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Shoot'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    Shoot:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          example: shoot
        status:
          type: string
          enum:
            - pending
            - analyzing
            - analyzed
            - generating
            - completed
            - failed
        shots:
          type: integer
        shots_adjusted:
          type: boolean
          description: >-
            Present and true when a requested 6 was clamped to 4 (non
            classic/minimal style).
        credits_used:
          type: integer
        credits_remaining:
          type: integer
        images:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
                nullable: true
              thumbnail_url:
                type: string
                nullable: true
              status:
                type: string
                nullable: true
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  responses:
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer

````