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

# Template Status

> Compare the agent's stored template snapshot with the live template.

Returned shape::

    {
        "agent_id": 6,
        "template_id": "scei_ar_assistant" | null,
        "is_in_sync": true | false,
        "stored_hash": "abc..." | null,
        "current_hash": "def..." | null,
        "drift_fields": ["agent_instruction", "agent_tools", ...]
    }

The frontend uses this to surface a "template updated, click to sync"
banner on the agent's edit page.



## OpenAPI

````yaml /api-reference/openapi.json get /api/agents/{agent_id}/template-status
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/agents/{agent_id}/template-status:
    get:
      tags:
        - agents
      summary: Template Status
      description: |-
        Compare the agent's stored template snapshot with the live template.

        Returned shape::

            {
                "agent_id": 6,
                "template_id": "scei_ar_assistant" | null,
                "is_in_sync": true | false,
                "stored_hash": "abc..." | null,
                "current_hash": "def..." | null,
                "drift_fields": ["agent_instruction", "agent_tools", ...]
            }

        The frontend uses this to surface a "template updated, click to sync"
        banner on the agent's edit page.
      operationId: template_status_api_agents__agent_id__template_status_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Resync Template](/api-reference/agents/resync-template.md)
- [List Templates](/api-reference/superagents/list-templates.md)
- [Get Template](/api-reference/superagents/get-template.md)
- [Update Subscription](/api-reference/webhooks/update-subscription.md)
- [Get Status](/api-reference/rag/get-status.md)
