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

# Get artifact version metadata

> Return the URI, creation time, MIME type, and custom metadata for a version



## OpenAPI

````yaml productions/api-reference/openapi/en/agent-api-server.json GET /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}/metadata
openapi: 3.1.0
info:
  title: Agent API Server
  version: google-adk 2.2.0
  description: >-
    Public HTTP endpoints for Google ADK 2.2.0; /dev routes require the
    development UI to be enabled
servers:
  - url: http://localhost:8000
    description: Local server
security: []
tags:
  - name: Service and applications
  - name: Sessions
  - name: Agent execution
  - name: Artifacts
  - name: Memory
  - name: Evaluation · development server
  - name: Debugging · development server
  - name: Compatibility endpoints
paths:
  /apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}/metadata:
    get:
      tags:
        - Artifacts
      summary: Get artifact version metadata
      description: >-
        Return the URI, creation time, MIME type, and custom metadata for a
        version
      operationId: agentApiGetArtifactMetadata
      parameters:
        - name: app_name
          in: path
          required: true
          schema:
            type: string
            title: App Name
          description: Application name
          example: travel_assistant
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            title: User Id
          description: User ID
          example: user-001
        - name: session_id
          in: path
          required: true
          schema:
            type: string
            title: Session Id
          description: Session ID
          example: session-001
        - name: artifact_name
          in: path
          required: true
          schema:
            type: string
            title: Artifact Name
          description: Artifact name
          example: notes.txt
        - name: version_id
          in: path
          required: true
          schema:
            type: integer
            title: Version Id
          description: Artifact version number
          example: 0
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactVersion'
        '404':
          description: Requested resource was not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Request validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ArtifactVersion:
      properties:
        version:
          type: integer
          title: Version
          description: Monotonically increasing artifact version number
        canonicalUri:
          type: string
          title: Canonicaluri
          description: Canonical URI of the stored artifact
        customMetadata:
          additionalProperties: true
          type: object
          title: Custommetadata
          description: Custom metadata
        createTime:
          type: number
          title: Createtime
          description: Creation time as a Unix timestamp in seconds
        mimeType:
          anyOf:
            - type: string
            - type: 'null'
          title: Mimetype
          description: Content MIME type
      type: object
      required:
        - version
        - canonicalUri
      title: ArtifactVersion
    ApiError:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error details
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
          description: Error details
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
          description: Location of the invalid field
        msg:
          type: string
          title: Message
          description: Validation error message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````