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

# Mint an upload ticket



## OpenAPI

````yaml /api-reference/openapi.json post /v1/uploads
openapi: 3.1.0
info:
  title: AskEditor Platform API
  version: 1.0.0-preview
  description: >-
    The video editing API for AI agents. Every response is wrapped as { success,
    data }. Templates are addressed by id; synchronous templates return their
    result in the run call, queued templates resolve through the jobs envelope.
servers:
  - url: https://api.askeditor.com
security:
  - bearerAuth: []
paths:
  /v1/uploads:
    post:
      summary: Mint an upload ticket
      operationId: createUpload
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                purpose:
                  type: string
      responses:
        '200':
          description: >-
            A one-time upload ticket. Browser users open uploadUrl; shells POST
            the file directly (next endpoint).
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      ticket:
                        type: string
                      uploadUrl:
                        type: string
                      expiresInSec:
                        type: number
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````