> ## 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.

# List revision history events of a deployment

> Returns the revision history of the deployment, in descending order. Defaults to the most recent events.
Only the 200 most recent events are retained per deployment; paginating past that returns an empty list.



## OpenAPI

````yaml openapi.yaml GET /v1/deployments/{id}/revisions
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
    description: Default environment for APIs
security:
  - bearerAuth: []
paths:
  /v1/deployments/{id}/revisions:
    get:
      tags:
        - Deployments
      summary: List revision history events of a deployment
      description: >-
        Returns the revision history of the deployment, in descending order.
        Defaults to the most recent events.

        Only the 200 most recent events are retained per deployment; paginating
        past that returns an empty list.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            description: Deployment ID or name.
            type: string
        - name: limit
          in: query
          schema:
            description: Maximum number of events to return (default 10, max 100).
            type: integer
        - name: before
          in: query
          schema:
            description: >-
              Return only events with event_number strictly less than this value
              for pagination.
            type: integer
      responses:
        '200':
          description: Revision history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevisionEventListResponse'
        '400':
          description: Invalid pagination parameters
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Deployment not found
          content:
            application/json:
              schema:
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
      x-codeSamples:
        - lang: Python
          label: Together AI SDK (Python)
          source: |
            from together import Together

            client = Together()

            history = client.beta.jig.list_revisions("my-deployment", limit=10)
            for event in history.data:
                print(event.revision_number, event.action, event.activated_at)
        - lang: TypeScript
          label: Together AI SDK (TypeScript)
          source: >
            import Together from "together-ai";


            const client = new Together();


            const history = await client.beta.jig.listRevisions("my-deployment",
            {
              limit: 10,
            });

            for (const event of history.data) {
              console.log(event.revision_number, event.action, event.activated_at);
            }
        - lang: JavaScript
          label: Together AI SDK (JavaScript)
          source: >
            import Together from "together-ai";


            const client = new Together();


            const history = await client.beta.jig.listRevisions("my-deployment",
            {
              limit: 10,
            });

            for (const event of history.data) {
              console.log(event.revision_number, event.action, event.activated_at);
            }
components:
  schemas:
    RevisionEventListResponse:
      description: Revision history events for a deployment, newest first.
      required:
        - data
        - object
      properties:
        data:
          description: Revision events, newest first.
          items:
            $ref: '#/components/schemas/RevisionEventItem'
          type: array
        object:
          description: The object type, which is always `list`.
          const: list
      type: object
    RevisionEventItem:
      description: One entry in a deployment's revision history.
      required:
        - object
        - event_number
        - revision_id
        - revision_number
        - image
        - action
        - activated_at
      properties:
        object:
          description: The object type, which is always `revision_event`.
          const: revision_event
        event_number:
          description: Monotonic event number in the deployment's revision history.
          type: integer
        revision_id:
          description: Revision ID activated by this event.
          type: string
        revision_number:
          description: Human-readable per-deployment revision counter.
          type: integer
        image:
          description: Container image of the revision activated by this event.
          type: string
        action:
          description: How this revision became active.
          enum:
            - create
            - update
            - system
            - rollback
          type: string
        activated_at:
          description: Time when this revision became active.
          type: string
          format: date-time
      type: object
  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.