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

# List raffle winners

> Provisional winners are drawn automatically when the raffle ends — at `ends_at`, or immediately via the end endpoint. Each winner occupies a numbered slot (1..winners_count) with status `provisional`, `confirmed`, or `forfeited`.



## OpenAPI

````yaml /openapi/v1.yaml get /api/v1/raffles/{id}/winners
openapi: 3.1.0
info:
  title: Rigaly Business API
  version: '1.0'
  description: |
    Public API for businesses to manage their Rigaly loyalty programs: issue
    and redeem points, manage rewards, validate redemptions, and generate mass
    codes for physical products.

    All endpoints require an API key created in the Rigaly business dashboard
    (Tools → API Management), passed as `Authorization: Bearer rgly_sk_...`.
  contact:
    email: support@rigaly.com
servers:
  - url: https://api.rigaly.com
    description: Production
security:
  - apiKey: []
paths:
  /api/v1/raffles/{id}/winners:
    get:
      tags:
        - Raffles
      summary: List raffle winners
      description: >-
        Provisional winners are drawn automatically when the raffle ends — at
        `ends_at`, or immediately via the end endpoint. Each winner occupies a
        numbered slot (1..winners_count) with status `provisional`, `confirmed`,
        or `forfeited`.
      operationId: listRaffleWinners
      parameters:
        - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: Winners
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope'
components:
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
        data:
          type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'API key from the Rigaly dashboard: `Authorization: Bearer rgly_sk_...`'

````