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

# Get a state's attachment

> One template's attachment on the state — its path, resolved parameters and
declarations; the same row the list serves. A template not attached on the state is a
404.



## OpenAPI

````yaml /openapi.json get /api/states/{name}/attachments/{template}
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 14.0.2
servers: []
security: []
paths:
  /api/states/{name}/attachments/{template}:
    get:
      tags:
        - states
      summary: Get a state's attachment
      description: >-
        One template's attachment on the state — its path, resolved parameters
        and

        declarations; the same row the list serves. A template not attached on
        the state is a

        404.
      operationId: get_api_states_name_attachments_template
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
        - in: path
          name: template
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/StateAttachmentRow'
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    StateAttachmentRow:
      description: >-
        One attachment as the ``list_state_attachments`` listing carries it —
        the served

        :class:`StateAttachmentView` fields plus the ``state`` the attachment
        sits on.
      properties:
        declarations:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          title: Declarations
          type: object
        parameters:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          title: Parameters
          type: object
        path:
          items:
            type: string
          title: Path
          type: array
        state:
          title: State
          type: string
        template:
          title: Template
          type: string
      required:
        - template
        - path
        - parameters
        - declarations
        - state
      title: StateAttachmentRow
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
    JsonValue: {}
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````