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

# Get a specific revision of an agent

> Returns the full configuration of one revision of an agent — its model, tools, instructions, and MCP servers.




## OpenAPI

````yaml /openapi/openapi.yaml get /agents/{name}/revisions/{revision}
openapi: 3.0.3
info:
  title: Albus API
  description: Albus service REST API
  version: 1.0.0
servers:
  - url: https://albus.sh/api
    description: Production server
  - url: http://localhost:8080
    description: Local development server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Agents
    description: Inspect the agents that have run in your organization.
  - name: Auth
    description: Identify the authenticated user.
  - name: Health
    description: Check service availability.
  - name: Secrets
    description: Manage secrets available to agent sessions.
  - name: Sessions
    description: Run and inspect agent sessions.
  - name: Tokens
    description: Manage organization API keys.
paths:
  /agents/{name}/revisions/{revision}:
    parameters:
      - name: name
        in: path
        required: true
        description: The agent's name.
        schema:
          type: string
      - name: revision
        in: path
        required: true
        description: The agent revision to fetch.
        schema:
          type: string
    get:
      tags:
        - Agents
      summary: Get a specific revision of an agent
      description: >
        Returns the full configuration of one revision of an agent — its model,
        tools, instructions, and MCP servers.
      operationId: getAgentRevision
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentRevision'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrUnauthorized'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrNotFound'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentRevision:
      type: object
      description: One revision of an agent, with its full configuration.
      required:
        - revision
        - created_at
        - config
      properties:
        revision:
          type: string
          description: Identifier of this agent revision.
        created_at:
          type: string
          format: date-time
          description: When this revision first ran.
        config:
          $ref: '#/components/schemas/AgentConfig'
    ErrUnauthorized:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Invalid or expired token
    ErrNotFound:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          description: Human-readable error message
          example: Resource not found
    AgentConfig:
      type: object
      additionalProperties: false
      required:
        - model
      description: >
        The agent configuration for a run: the model, tools, instructions, and
        MCP servers that define its behavior. Runs with the same configuration
        share a revision.
      properties:
        model:
          $ref: '#/components/schemas/Model'
        tools:
          type: array
          items:
            type: string
          description: Names of the tools the model may call (e.g. "WEB_SEARCH").
        system_prompt:
          type: string
          description: System instructions for the model. Uses a default if omitted.
        max_steps:
          type: integer
          minimum: 1
          description: Max model steps before the run stops. Uses a default if omitted.
        mcp_servers:
          type: array
          items:
            $ref: '#/components/schemas/MCPServer'
          description: MCP servers whose tools are offered to the model.
    Model:
      type: object
      additionalProperties: false
      required:
        - name
      properties:
        name:
          type: string
          description: Model identifier (e.g. "gemini-3.6-flash", "claude-opus-4").
        provider:
          $ref: '#/components/schemas/Provider'
    MCPServer:
      type: object
      additionalProperties: false
      required:
        - name
        - url
      properties:
        name:
          type: string
          description: >
            Unique alias for the server. It prefixes the server's tool names
            (e.g. "github" exposes its search tool as "github__search").
        url:
          type: string
          description: The server's Streamable HTTP endpoint.
        headers:
          type: object
          additionalProperties:
            type: string
          description: >
            HTTP headers sent to the server. Values are secret references (e.g.
            "albus.sh/secrets/github-mcp"), not raw secret values.
        allowed_tools:
          type: array
          items:
            type: string
          description: |
            The server tools the model may call. Omit to allow all of them.
    Provider:
      type: object
      additionalProperties: false
      required:
        - name
        - credential
      properties:
        name:
          type: string
          description: Provider name (e.g. "openai", "gemini", "vertex").
        url:
          type: string
          description: Optional base URL override for the provider endpoint.
        credential:
          type: string
          description: >
            Secret reference the provider authenticates with (e.g.
            "albus.sh/secrets/my-key"), not a raw secret value.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: http
      scheme: bearer
      description: Org-scoped API key issued via POST /tokens

````