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

# Prepare a launch

> Uploads the image and metadata, reserves a fee vault and returns the pump.fun create transaction, already signed by the new mint. The launcher's wallet is the fee payer and must sign it, then post it to `/api/launch/submit` within 90 seconds.

Rate limited to 10 per minute.




## OpenAPI

````yaml /api-reference/openapi.yaml post /api/launch/prepare
openapi: 3.1.0
info:
  title: Veto API
  version: 1.0.0
  description: >-
    Public API behind veto.fun. Coins, payouts, wallets, launches, trades and
    vetoes.
servers:
  - url: https://api.veto.fun
    description: Production
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Platform
  - name: Coins
  - name: Payouts
  - name: Veto
  - name: Launch and trade
paths:
  /api/launch/prepare:
    post:
      tags:
        - Launch and trade
      summary: Prepare a launch
      description: >
        Uploads the image and metadata, reserves a fee vault and returns the
        pump.fun create transaction, already signed by the new mint. The
        launcher's wallet is the fee payer and must sign it, then post it to
        `/api/launch/submit` within 90 seconds.


        Rate limited to 10 per minute.
      operationId: prepareLaunch
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - image
                - data
              properties:
                image:
                  type: string
                  format: binary
                  description: PNG, JPG, GIF or WebP, up to 4 MB.
                data:
                  type: string
                  description: The launch request as a JSON string. See `LaunchRequest`.
                  contentMediaType: application/json
            encoding:
              data:
                contentType: application/json
      responses:
        '200':
          description: The transaction to sign.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrepareLaunchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          description: Launching is temporarily unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PrepareLaunchResponse:
      type: object
      required:
        - draftId
        - mint
        - vault
        - transaction
      properties:
        draftId:
          type: string
          format: uuid
        mint:
          type: string
          description: The new coin's mint address.
        vault:
          type: string
          description: The coin's fee vault.
        transaction:
          type: string
          description: >-
            Base64 versioned transaction, signed by the mint. The launcher must
            sign it.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A message you can show to users as-is.
  responses:
    BadRequest:
      description: The request is invalid. The message names the field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'symbol: Ticker can only use letters and numbers'
    RateLimited:
      description: Too many requests from this IP. Wait and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

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