> ## 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 published game model

> Public model bytes for the currently active Game publication.



## OpenAPI

````yaml scripts/reference/sources/openapi/player.json GET /v1/store/games/{gameId}/publications/{publicationId}/models/{assetId}
openapi: 3.1.0
info:
  title: Summer Player Game Platform API
  version: summer.player.games/v1
  description: >-
    Public Summer Games store reads, the connected-app OAuth endpoints, and the
    signed-in player's profile and preferences.
servers:
  - url: https://api.summer.games
security:
  - playerBearer: []
paths:
  /v1/store/games/{gameId}/publications/{publicationId}/models/{assetId}:
    parameters:
      - name: gameId
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 128
      - name: publicationId
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 128
      - name: assetId
        in: path
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 128
      - name: If-None-Match
        in: header
        schema:
          type: string
        description: >-
          Compare the immutable model SHA-256 ETag only after current
          publication visibility and model scope have been checked.
    get:
      description: >-
        Public model bytes for the currently active Game publication. Bearer
        credentials do not grant additional access. Current public visibility
        and exact Game/Item, publication and MODEL_3D asset membership are
        checked before either 200 or 304. Draft, prepared, withdrawn,
        superseded, mismatched, private and image references are unavailable.
        Only verified self-contained binary glTF (GLB) up to 512 MiB is served.
        The stable URL has no signature or expiry query parameters; no redirects
        are returned and query parameters are rejected. HEAD returns the same
        status and headers without a body. Successful responses allow shared
        caching for at most 600 seconds and require revalidation afterward;
        errors use no-store. Anonymous cross-origin GET and HEAD are allowed
        with Access-Control-Allow-Origin: *; ETag is exposed and credentialed
        CORS is not enabled. After withdrawal, origin requests fail immediately
        and conforming caches stop reuse within ten minutes.
      operationId: getPublishedGameModel
      responses:
        '200':
          $ref: '#/components/responses/PublicModel'
        '304':
          $ref: '#/components/responses/PublicModelNotModified'
        '400':
          description: >-
            Invalid identifiers or unexpected query parameters. Cache-Control is
            no-store.
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No currently public model exists in the requested publication and
            owner scope. Cache-Control is no-store.
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: The current publication is inconsistent. Cache-Control is no-store.
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Catalog or model storage is unavailable. Cache-Control is no-store.
          headers:
            Cache-Control:
              schema:
                type: string
                const: no-store
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  responses:
    PublicModel:
      description: >-
        Current public verified self-contained GLB model, no larger than 512
        MiB.
      headers:
        Access-Control-Allow-Origin:
          schema:
            type: string
            const: '*'
        Access-Control-Expose-Headers:
          schema:
            type: string
            const: ETag
        Cache-Control:
          $ref: '#/components/headers/PublicModelCacheControl'
        ETag:
          $ref: '#/components/headers/PublicModelETag'
        Content-Length:
          $ref: '#/components/headers/PublicModelLength'
        X-Content-Type-Options:
          schema:
            type: string
            const: nosniff
      content:
        model/gltf-binary:
          schema:
            type: string
            format: binary
    PublicModelNotModified:
      description: >-
        ETag matches after checking current public visibility and exact model
        scope; no body. A withdrawn or superseded publication never returns 304.
      headers:
        Access-Control-Allow-Origin:
          schema:
            type: string
            const: '*'
        Access-Control-Expose-Headers:
          schema:
            type: string
            const: ETag
        Cache-Control:
          $ref: '#/components/headers/PublicModelCacheControl'
        ETag:
          $ref: '#/components/headers/PublicModelETag'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            requestId:
              type: string
            correlationId:
              type: string
          required:
            - code
            - message
            - retryable
            - requestId
      required:
        - error
  headers:
    PublicModelCacheControl:
      description: >-
        Revalidate after at most ten minutes; stale reuse is forbidden after
        expiry.
      schema:
        type: string
        const: public, max-age=600, must-revalidate
    PublicModelETag:
      description: >-
        Strong quoted hexadecimal SHA-256 of the immutable publication model
        bytes.
      schema:
        type: string
    PublicModelLength:
      description: Model representation size in bytes, including on HEAD responses.
      schema:
        type: integer
        minimum: 1
        maximum: 536870912
  securitySchemes:
    playerBearer:
      type: http
      scheme: bearer
      description: >-
        A player access token. Store reads need no token. Other apps get a token
        through connected-app OAuth: register the client, let the player approve
        it on summer.games, then exchange the code at the token endpoint.

````

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