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

# Get a model revision

> Retrieves metadata for one immutable revision of a custom model's files.



## OpenAPI

````yaml openapi.yaml GET /projects/{projectId}/models/{id}/revisions/{revisionId}
openapi: 3.1.0
info:
  title: Together APIs
  description: The Together REST API. See https://docs.together.ai for more details.
  version: 2.0.0
  termsOfService: https://www.together.ai/terms-of-service
  contact:
    name: Together Support
    url: https://www.together.ai/contact
  license:
    name: MIT
    url: https://github.com/togethercomputer/openapi/blob/main/LICENSE
servers:
  - url: https://api.together.ai/v1
    description: Default environment for APIs
  - url: https://api-inference.together.ai/v2
    description: Optimized environment for inference
security:
  - bearerAuth: []
paths:
  /projects/{projectId}/models/{id}/revisions/{revisionId}:
    get:
      tags:
        - VolumeService
      summary: Get a model volume revision
      description: Retrieves metadata for one immutable revision of a custom model's files.
      operationId: VolumeService_GetRevisionByModelType
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            description: Project identifier.
            type: string
        - name: id
          in: path
          required: true
          schema:
            description: Model identifier.
            type: string
        - name: revisionId
          in: path
          required: true
          schema:
            type: string
            description: Revision identifier.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DE.ListRevisionsResponseRevision'
        default:
          description: Default error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorData'
      servers:
        - url: https://api.together.ai/v2
      x-codeSamples:
        - lang: Python
          label: Together AI SDK (Python)
          source: >
            from together import Together


            client = Together()

            project_id = client.whoami().project_id


            # The SDK has no dedicated method for this endpoint yet, so call it
            with

            # the client's generic GET helper.

            url = (
                f"https://api.together.ai/v2/projects/{project_id}"
                "/models/ml_abc123/revisions/rv_abc123"
            )

            revision = client.get(url, cast_to=object)

            print(revision)
        - lang: TypeScript
          label: Together AI SDK (TypeScript)
          source: >
            import Together from "together-ai";


            const client = new Together();

            const { project_id: projectId } = await client.whoami();


            // The SDK has no dedicated method for this endpoint yet, so call it
            with

            // the client's generic GET helper.

            const revision = await client.get(
              `https://api.together.ai/v2/projects/${projectId}/models/ml_abc123/revisions/rv_abc123`,
            );

            console.log(revision);
        - lang: JavaScript
          label: Together AI SDK (JavaScript)
          source: >
            import Together from "together-ai";


            const client = new Together();

            const { project_id: projectId } = await client.whoami();


            // The SDK has no dedicated method for this endpoint yet, so call it
            with

            // the client's generic GET helper.

            const revision = await client.get(
              `https://api.together.ai/v2/projects/${projectId}/models/ml_abc123/revisions/rv_abc123`,
            );

            console.log(revision);
components:
  schemas:
    DE.ListRevisionsResponseRevision:
      type: object
      required:
        - revisionId
        - createdAt
      properties:
        revisionId:
          type: string
          description: Revision identifier.
        createdAt:
          type: string
          format: date-time
          description: Timestamp when the revision was created.
        validationStatus:
          enum:
            - REVISION_VALIDATION_STATUS_PENDING
            - REVISION_VALIDATION_STATUS_SUCCESS
            - REVISION_VALIDATION_STATUS_FAILED
            - REVISION_VALIDATION_STATUS_ERROR
          type: string
          description: Current validation status for the revision.
        lastValidatedAt:
          type: string
          format: date-time
          description: Timestamp when validation most recently ran for the revision.
        validationErrors:
          type: array
          items:
            $ref: '#/components/schemas/DE.RevisionValidationError'
          description: Validation errors reported for the revision.
      description: Revision metadata for a volume object.
    ErrorData:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              nullable: false
            type:
              type: string
              nullable: false
            param:
              type: string
              nullable: true
              default: null
            code:
              type: string
              nullable: true
              default: null
          required:
            - type
            - message
    DE.RevisionValidationError:
      type: object
      properties:
        rule:
          type: string
          description: Validation rule that produced the error.
        severity:
          type: string
          description: Severity level reported by the validation rule.
        message:
          type: string
          description: Human-readable validation error message.
      description: One validation error reported for a model revision.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      x-bearer-format: bearer
      x-default: default

````

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