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

# Get a published public raffle



## OpenAPI

````yaml /openapi/developer-api.json get /api/v1/raffles/{slug}
openapi: 3.1.0
info:
  title: CollabOS Developer API
  version: 1.0.0
  description: >-
    Formal contract for CollabOS API-key data-plane endpoints, authenticated
    developer-management endpoints, and webhook delivery payloads. API-key
    cursors are opaque and must not be constructed by clients.
servers:
  - url: https://api.collabos.app
    description: Production
security: []
tags:
  - name: Personal API
    description: Personal API-key data-plane endpoints.
  - name: Workspace API
    description: Workspace API-key data-plane endpoints.
  - name: Entries
    description: Native raffle entry operations for personal API keys.
  - name: Developer Management
    description: JWT-authenticated developer capabilities and API-key management.
  - name: Webhook Management
    description: JWT-authenticated webhook endpoint management.
paths:
  /api/v1/raffles/{slug}:
    get:
      tags:
        - Personal API
      summary: Get a published public raffle
      operationId: getPublicRaffle
      parameters:
        - name: slug
          in: path
          required: true
          description: Raffle slug.
          schema:
            type: string
      responses:
        '200':
          description: Raffle.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RaffleDetail'
        '400':
          description: Invalid query, cursor, or request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: API key missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: API key type/scope mismatch or workspace mismatch.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Request conflicts with current resource state.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Request could not be processed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: API rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyBearer: []
        - ApiKeyHeader: []
components:
  schemas:
    RaffleDetail:
      allOf:
        - $ref: '#/components/schemas/RaffleListItem'
        - type: object
          properties:
            publishedAt:
              type:
                - string
                - 'null'
              format: date-time
            openedAt:
              type:
                - string
                - 'null'
              format: date-time
            closedAt:
              type:
                - string
                - 'null'
              format: date-time
            finalizedAt:
              type:
                - string
                - 'null'
              format: date-time
            winnerInstructions:
              type:
                - string
                - 'null'
    ErrorResponse:
      type: object
      required:
        - statusCode
        - error
        - code
        - message
        - requestId
        - timestamp
        - path
      properties:
        statusCode:
          type: integer
          minimum: 400
          maximum: 599
        error:
          type: string
        code:
          type: string
          pattern: ^[A-Z][A-Z0-9_]{1,63}$
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        requestId:
          type:
            - string
            - 'null'
        timestamp:
          type: string
          format: date-time
        path:
          type: string
        failedRequirements:
          type: array
          items: {}
        requirementFailures:
          type: array
          items: {}
        incompleteRequirements:
          type: array
          items: {}
        failures:
          type: array
          items: {}
        results:
          type: array
          items: {}
        evaluation: {}
    RaffleListItem:
      type: object
      required:
        - id
        - slug
        - title
        - mechanic
        - allocationType
        - status
        - spots
        - startsAt
        - endsAt
        - allowAutoEntry
      properties:
        id:
          type: string
        slug:
          type: string
        title:
          type: string
        description:
          type:
            - string
            - 'null'
        mechanic:
          type: string
        allocationType:
          type: string
        status:
          type: string
        spots:
          type: integer
        chain:
          type:
            - string
            - 'null'
        startsAt:
          type:
            - string
            - 'null'
          format: date-time
        endsAt:
          type:
            - string
            - 'null'
          format: date-time
        allowAutoEntry:
          type: boolean
        canonicalProject:
          oneOf:
            - $ref: '#/components/schemas/CanonicalProjectSummary'
            - type: 'null'
        workspace:
          $ref: '#/components/schemas/WorkspaceSummary'
    CanonicalProjectSummary:
      type: object
      required:
        - id
        - slug
        - name
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        logoUrl:
          type:
            - string
            - 'null'
    WorkspaceSummary:
      type: object
      required:
        - id
        - slug
        - name
      properties:
        id:
          type: string
        slug:
          type: string
        name:
          type: string
        logoUrl:
          type:
            - string
            - 'null'
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: CollabOS API key
      description: >-
        Pass a personal (`co_u_...`) or workspace (`co_w_...`) API key as
        `Authorization: Bearer <key>`. If both supported API-key headers are
        sent, Authorization takes precedence.
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Alternative API-key header. Authorization Bearer takes precedence when
        both are supplied.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.