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

# Get Upload Links

> Returns upload links for more parts of a video's upload.

> [!WARNING]
>
> The Game Data API is in preview. Endpoints, fields and limits may change before release, and it is not yet available to call.

[Create Video](https://docs.uplift.ai/api-reference/game-data/videos/create.md#uploading-a-video) returns upload links for a video's first 20 parts. Use this endpoint to get links for the rest of a larger file, or to replace links that have expired: each link lasts one hour, until its `expires_at`, so a long upload gets its links as it goes.

Each link is a pre-signed PUT for one part, for that part's exact size: every part is `part_size` bytes except the last, which is the rest of the file.


## OpenAPI

````yaml api-reference/game-data/openapi.json POST /games/{game_id}/videos/{video_id}/upload/parts
openapi: 3.0.0
info:
  title: Uplift Game Data API (Preview)
  version: v1
  description: >-
    Events, phases, possessions, physical summaries and tracking from match
    video. In preview: not yet available.
servers:
  - url: https://api.uplift.ai/v1
security: []
paths:
  /games/{game_id}/videos/{video_id}/upload/parts:
    post:
      tags:
        - Games
      summary: Get Upload Links
      description: Returns upload links for more parts of a video's upload.
      parameters:
        - name: game_id
          in: path
          required: true
          description: Game identifier. The game must belong to your organization.
          schema:
            type: string
            format: uuid
        - name: video_id
          in: path
          required: true
          description: Video identifier, from Create Video.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - part_numbers
              properties:
                part_numbers:
                  type: array
                  minItems: 1
                  maxItems: 100
                  items:
                    type: integer
                    minimum: 1
                  description: >-
                    The parts to sign, 1 to 100, each from 1 to the upload's
                    `part_count`.
            example:
              part_numbers:
                - 21
                - 22
                - 23
      responses:
        '200':
          description: A pre-signed PUT per part, in request order.
          content:
            application/json:
              schema:
                type: object
                properties:
                  video_id:
                    type: string
                    format: uuid
                  parts:
                    type: array
                    items:
                      $ref: '#/components/schemas/UploadPart'
                  expires_at:
                    type: string
                    format: date-time
                    description: >-
                      When the links stop working: one hour after they were
                      signed. Get new ones with Get Upload Links.
              example:
                video_id: 0d4e2b7a-1c3f-4e5a-9b8c-7d6e5f4a3b2c
                parts:
                  - part_number: 21
                    url: https://...
                expires_at: '2026-10-18T22:40:02.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: NotFound
                message: The specified video_id was not found in the game.
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - bearerAuth: []
components:
  schemas:
    UploadPart:
      type: object
      properties:
        part_number:
          type: integer
        url:
          type: string
          description: >-
            Pre-signed URL: PUT the part's bytes to it. The part's size is part
            of the signature, so a body of any other size is refused.
    Error:
      type: object
      properties:
        error:
          type: string
          description: A short error code representing the type of error.
        message:
          type: string
          description: A detailed message explaining the error.
        problems:
          type: array
          items:
            type: string
          description: >-
            Create Game and Update Game: why the roster is not valid, up to 25,
            each naming its row.
        missing_parts:
          type: array
          items:
            type: integer
          description: 'Complete Upload: the parts to upload again.'
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: BadRequest
            message: >-
              The request parameters are invalid. Please review the request and
              try again.
    Unauthorized:
      description: Unauthorized. Bearer token is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
            message: Bearer token is missing or invalid.
    Forbidden:
      description: Forbidden. You do not have permission to access this resource.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Forbidden
            message: You do not have permission to access this resource.
    TooManyRequests:
      description: Too Many Requests. The rate limit has been exceeded.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: TooManyRequests
            message: The rate limit has been exceeded. Please wait and try again later.
    InternalServerError:
      description: Internal Server Error. Something went wrong on the server.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: InternalServerError
            message: >-
              An unexpected error occurred on the server. Please try again
              later.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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