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

# Get agent tag history

> Chronological tag-event log for a workflow (newest first). Includes SET and DELETE events.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/{workflow_permanent_id}/tags/history
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/agents/{workflow_permanent_id}/tags/history:
    get:
      tags:
        - Tags
      summary: Get agent tag history
      description: >-
        Chronological tag-event log for a workflow (newest first). Includes SET
        and DELETE events.
      operationId: >-
        get_workflow_tag_history_v1_workflows__workflow_permanent_id__tags_history_get
      parameters:
        - name: workflow_permanent_id
          in: path
          required: true
          schema:
            type: string
            description: Workflow permanent ID
            examples:
              - wpid_123
            title: Workflow Permanent Id
          description: Workflow permanent ID
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            description: Max events to return
            default: 100
            title: Limit
          description: Max events to return
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            description: Only return events at or after this timestamp
            title: Since
          description: Only return events at or after this timestamp
        - name: key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter to events for a single tag key
            title: Key
          description: Filter to events for a single tag key
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      responses:
        '200':
          description: Successfully retrieved tag history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TagHistoryResponse'
        '404':
          description: Workflow not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TagHistoryResponse:
      properties:
        workflow_permanent_id:
          type: string
          title: Workflow Permanent Id
        events:
          items:
            $ref: '#/components/schemas/TagHistoryItem'
          type: array
          title: Events
      type: object
      required:
        - workflow_permanent_id
        - events
      title: TagHistoryResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TagHistoryItem:
      properties:
        tag_event_id:
          type: string
          title: Tag Event Id
        key:
          anyOf:
            - type: string
            - type: 'null'
          title: Key
        value:
          anyOf:
            - type: string
            - type: 'null'
          title: Value
        event_type:
          type: string
          title: Event Type
        source:
          type: string
          title: Source
        set_at:
          type: string
          format: date-time
          title: Set At
        set_by:
          type: string
          title: Set By
        superseded_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Superseded At
      type: object
      required:
        - tag_event_id
        - key
        - value
        - event_type
        - source
        - set_at
        - set_by
      title: TagHistoryItem
      description: One row from ``GET /v1/workflows/{wpid}/tags/history``.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````