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

# Share Ad Board

> Mint (or refresh) the persistent public share link for an Ad Board.

Idempotent per ``(user, board_key)``: the first call creates the token,
every later call refreshes the stored board name/ads but returns the SAME
token, so a link already sent out never changes.



## OpenAPI

````yaml /openapi.json post /api/v1/ad-library/boards/share
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/ad-library/boards/share:
    post:
      tags:
        - Ad Library
        - Ad Library
      summary: Share Ad Board
      description: >-
        Mint (or refresh) the persistent public share link for an Ad Board.


        Idempotent per ``(user, board_key)``: the first call creates the token,

        every later call refreshes the stored board name/ads but returns the
        SAME

        token, so a link already sent out never changes.
      operationId: share_ad_board_api_v1_ad_library_boards_share_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdBoardShareRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdBoardShareResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AdBoardShareRequest:
      properties:
        board_key:
          type: string
          maxLength: 128
          minLength: 1
          title: Board Key
        name:
          type: string
          maxLength: 255
          title: Name
          default: Ad Board
        ad_ids:
          items:
            type: string
          type: array
          maxItems: 5000
          title: Ad Ids
      type: object
      required:
        - board_key
      title: AdBoardShareRequest
      description: |-
        Share (or re-share) a client-side board. ``board_key`` is the client
        board id — the idempotency key; re-sharing refreshes name/ads but keeps
        the existing token.
    AdBoardShareResponse:
      properties:
        token:
          type: string
          title: Token
        board_key:
          type: string
          title: Board Key
        name:
          type: string
          title: Name
        ad_count:
          type: integer
          title: Ad Count
          default: 0
        created:
          type: boolean
          title: Created
          default: false
        created_at:
          type: string
          format: date-time
          title: Created At
        share_path:
          type: string
          title: Share Path
      type: object
      required:
        - token
        - board_key
        - name
        - created_at
        - share_path
      title: AdBoardShareResponse
    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:
    HTTPBearer:
      type: http
      scheme: bearer

````