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

# List Contract Templates

> Returns a paginated list of contract templates for the workspace, optionally filtered by name.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/contract-templates
openapi: 3.0.0
info:
  contact: {}
  title: Assembly API
  version: 0.0.1
servers:
  - url: https://api.assembly.com
security: []
paths:
  /v1/contract-templates:
    get:
      tags:
        - Contract Templates
      summary: List Contract Templates
      description: >-
        Returns a paginated list of contract templates for the workspace,
        optionally filtered by name.
      operationId: list-contract-templates
      parameters:
        - description: Filter templates by name.
          in: query
          name: name
          schema:
            type: string
        - description: Maximum number of records to return.
          in: query
          name: limit
          schema:
            type: integer
        - description: Pagination cursor returned by a previous request.
          in: query
          name: nextToken
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/contracts.ListContractTemplatesResponse'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Invalid pagination parameters or unable to list templates
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dispatcher.Error'
          description: Missing or invalid API key
      security:
        - APIKeyHeader: []
components:
  schemas:
    contracts.ListContractTemplatesResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/contracts.ContractTemplate'
          type: array
        nextToken:
          description: base64 encoded JSON representing a NextToken
          type: string
      type: object
    dispatcher.Error:
      properties:
        code:
          type: string
        data: {}
        message:
          type: string
      type: object
    contracts.ContractTemplate:
      properties:
        createdAt:
          type: string
        creatorId:
          type: string
        data:
          type: string
        fields:
          items:
            $ref: '#/components/schemas/contracts.ContractField'
          type: array
        fileKey:
          type: string
        id:
          type: string
        identityId:
          type: string
        latestSubmissionDate:
          description: >-
            LatestSubmissionDate is the timestamp of the most recent signed
            contract from this template.
          format: date-time
          type: string
        name:
          description: Name is the human-readable name of the template.
          example: NDA Template
          type: string
        object:
          type: string
        owner:
          $ref: '#/components/schemas/users.Owner'
        pageKeys:
          items:
            type: string
          type: array
        portalId:
          type: string
        previousAttributes:
          additionalProperties: true
          type: object
        ref:
          type: string
        requestsCount:
          description: >-
            SubmissionRequests is the number of contracts that have been sent
            from this template.
          example: 12
          type: integer
        submissionsCount:
          description: >-
            Submissions is the number of contracts created from this template
            that have been signed.
          example: 8
          type: integer
        updatedAt:
          type: string
      type: object
    contracts.ContractField:
      properties:
        autoFillField:
          description: >-
            pattern is {{client.firstName}} or
            {{client.customField.<custom_field_id>}}
          type: string
        bounds:
          $ref: '#/components/schemas/contracts.Bounds'
        encodedImgValue:
          type: string
        id:
          description: ID uniquely identifies the field within the contract.
          example: e4f5a6b7-c8d9-4e0f-1a2b-3c4d5e6f7a8b
          type: string
        inputType:
          allOf:
            - $ref: '#/components/schemas/contracts.InputType'
          description: >-
            InputType indicates who fills the field, or whether it is
            auto-filled or variable.
          enum:
            - client
            - fixed
            - autoFill
            - variable
          example: client
        isOptional:
          description: IsOptional reports whether the field may be left blank.
          example: false
          type: boolean
        label:
          example: Signature
          type: string
        page:
          description: Page is the 0-based page index the field is placed on.
          example: 0
          type: integer
        type:
          allOf:
            - $ref: '#/components/schemas/contracts.FieldType'
          description: FieldType is the kind of input rendered on the contract.
          enum:
            - signature
            - initials
            - date
            - text
          example: signature
        value:
          type: string
      type: object
    users.Owner:
      properties:
        id:
          type: string
        metadata:
          $ref: '#/components/schemas/users.OwnerFields'
      type: object
    contracts.Bounds:
      properties:
        height:
          type: number
        pageHeight:
          type: number
        pageWidth:
          type: number
        resizedHeight:
          type: integer
        resizedWidth:
          type: integer
        width:
          type: number
        x:
          type: number
        'y':
          type: number
      type: object
    contracts.InputType:
      enum:
        - client
        - fixed
        - autoFill
        - variable
      type: string
      x-enum-varnames:
        - InputTypeClient
        - InputTypeFixed
        - InputTypeAutoFill
        - InputTypeVariable
    contracts.FieldType:
      enum:
        - signature
        - initials
        - date
        - text
        - checkbox
      type: string
      x-enum-varnames:
        - FieldTypeSignature
        - FieldTypeInitials
        - FieldTypeDate
        - FieldTypeText
        - FieldTypeCheckbox
    users.OwnerFields:
      properties:
        avatarImageUrl:
          type: string
        companyAvatarUrl:
          type: string
        companyId:
          type: string
        companyName:
          type: string
        email:
          type: string
        fallbackColor:
          type: string
        familyName:
          type: string
        givenName:
          type: string
      type: object
  securitySchemes:
    APIKeyHeader:
      in: header
      name: X-API-KEY
      type: apiKey

````