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

# Get release draft

> GET /v1/management/games/{gameId}/environments/{envId}/release-drafts/{draftId}



## OpenAPI

````yaml scripts/reference/sources/openapi/management.json GET /v1/management/games/{gameId}/environments/{envId}/release-drafts/{draftId}
openapi: 3.1.0
info:
  title: Summer Creator Management API
  version: summer.management.creator/v1
  description: >-
    Create and manage your Summer Games store games: store page drafts,
    revisions, preview links, media, builds and releases, and the owner approval
    that publishes them.
servers:
  - url: https://api.summer.games
security:
  - developerBearer: []
tags:
  - name: Games
  - name: Items
  - name: Media
paths:
  /v1/management/games/{gameId}/environments/{envId}/release-drafts/{draftId}:
    get:
      tags:
        - Games
      operationId: getReleaseDraft
      parameters:
        - name: gameId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - name: envId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
        - name: draftId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseDraft'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          description: Invalid input.
        '428':
          description: Current draft/policy revision is required.
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    ReleaseDraft:
      type: object
      properties:
        id:
          type: string
          minLength: 1
          maxLength: 128
        gameId:
          type: string
          minLength: 1
          maxLength: 128
        environmentId:
          type: string
          minLength: 1
          maxLength: 128
        baseReleaseId:
          type: string
          minLength: 1
          maxLength: 128
        baseEnvironmentRevision:
          type: integer
          minimum: 0
        revision:
          type: integer
          minimum: 1
        title:
          type: string
        notes:
          type: string
          description: Optional Markdown, at most 32768 UTF-8 bytes.
        targets:
          description: >-
            Independent target selections. The server key takes buildId only;
            other keys name client platforms.
          type: object
          properties: {}
          additionalProperties:
            $ref: '#/components/schemas/ReleaseBuildSelection'
        configRevisionId:
          type: string
          minLength: 1
          maxLength: 128
        secretVersions:
          type: array
          items:
            $ref: '#/components/schemas/ReleaseSecretVersion'
        publishedReleaseId:
          type: string
          minLength: 1
          maxLength: 128
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - gameId
        - environmentId
        - baseEnvironmentRevision
        - revision
        - title
        - notes
        - targets
        - secretVersions
    ReleaseBuildSelection:
      type: object
      description: >-
        The server target selects only a server buildId. Client targets may
        retain an upload before a server exists; deploying a client requires its
        exact trusted qualification. Upload inspection alone is insufficient.
      properties:
        buildId:
          type: string
          maxLength: 128
        uploadId:
          type: string
          minLength: 1
          maxLength: 128
        qualificationId:
          type: string
          maxLength: 128
      anyOf:
        - required:
            - buildId
          properties:
            buildId:
              type: string
              minLength: 1
        - required:
            - uploadId
      additionalProperties: false
    ReleaseSecretVersion:
      type: object
      properties:
        reference:
          type: string
          minLength: 1
          maxLength: 128
        version:
          type: string
          minLength: 1
          maxLength: 128
      required:
        - reference
        - version
      additionalProperties: false
    Error:
      type: object
      additionalProperties: false
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
            - retryable
          properties:
            code:
              type: string
            message:
              type: string
            requestId:
              type: string
            retryable:
              type: boolean
  responses:
    NotFound:
      description: Missing or inaccessible resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Lifecycle or idempotency conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Required dependency unavailable; the error is retryable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    developerBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your Summer account token. An agent gets it by signing in with OAuth:
        `summer login --store` in the Summer CLI, or the Summer connector in an
        AI app. Agent tokens can call only the operations on these pages.
        Publishing needs an approval from the game's owner first.

````

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