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

# Resolve Form

> Resolve the best form for task creation context.



## OpenAPI

````yaml /openapi.json get /api/v1/brief-forms/resolve
openapi: 3.1.0
info:
  title: AITasker
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/brief-forms/resolve:
    get:
      tags:
        - Brief Forms
      summary: Resolve Form
      description: Resolve the best form for task creation context.
      operationId: resolve_form_api_v1_brief_forms_resolve_get
      parameters:
        - name: category
          in: query
          required: true
          schema:
            type: string
            title: Category
        - name: task_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Task Type
        - name: team_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: uuid
              - type: 'null'
            title: Team Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BriefFormResolveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BriefFormResolveResponse:
      properties:
        form:
          anyOf:
            - $ref: '#/components/schemas/BriefFormDetailResponse'
            - type: 'null'
        assignment:
          anyOf:
            - $ref: '#/components/schemas/BriefFormAssignmentResponse'
            - type: 'null'
        source:
          type: string
          title: Source
          description: >-
            Where the form came from: team_task_type, team_category,
            account_task_type, account_category, none
          default: none
      type: object
      title: BriefFormResolveResponse
      description: Result of form resolution — the form to use for task creation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BriefFormDetailResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        slug:
          type: string
          title: Slug
        user_id:
          type: string
          format: uuid
          title: User Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        schema_json:
          additionalProperties: true
          type: object
          title: Schema Json
        ui_schema_json:
          additionalProperties: true
          type: object
          title: Ui Schema Json
        source_type:
          type: string
          title: Source Type
        source_file_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Source File Id
        status:
          type: string
          title: Status
        is_template:
          type: boolean
          title: Is Template
        current_version:
          type: integer
          title: Current Version
        field_count:
          type: integer
          title: Field Count
          default: 0
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - name
        - slug
        - user_id
        - schema_json
        - ui_schema_json
        - source_type
        - status
        - is_template
        - current_version
        - created_at
        - updated_at
      title: BriefFormDetailResponse
      description: Full form detail including schema.
    BriefFormAssignmentResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        form_id:
          type: string
          format: uuid
          title: Form Id
        form_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Form Version
        user_id:
          type: string
          format: uuid
          title: User Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        category:
          type: string
          title: Category
        task_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Task Type
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - form_id
        - user_id
        - category
        - is_active
        - created_at
      title: BriefFormAssignmentResponse
      description: An assignment linking a form to a task type.
    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

````