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

# Latest Conversation For Ref

> The caller's most recently active conversation for *business_ref*.

``data`` is ``null`` when the caller has none, so a host system can
resume it or start a new one carrying the reference. Activity is the
newest message, or the creation time of a conversation without any.
Only the caller's own conversations are considered.



## OpenAPI

````yaml /openapi.json get /api/conversations/latest
openapi: 3.1.0
info:
  title: FIM One API
  description: >-
    All-in-one agent platform for Global × China enterprises — programmatic
    access to agents, conversations, knowledge bases, and more.
  version: 0.9.4
servers:
  - url: https://your-domain.com
    description: Your FIM One instance
security:
  - BearerAuth: []
paths:
  /api/conversations/latest:
    get:
      tags:
        - conversations
      summary: Latest Conversation For Ref
      description: |-
        The caller's most recently active conversation for *business_ref*.

        ``data`` is ``null`` when the caller has none, so a host system can
        resume it or start a new one carrying the reference. Activity is the
        newest message, or the creation time of a conversation without any.
        Only the caller's own conversations are considered.
      operationId: latest_conversation_for_ref_api_conversations_latest_get
      parameters:
        - name: business_ref
          in: query
          required: true
          schema:
            type: string
            title: Business Ref
        - name: status
          in: query
          required: false
          schema:
            type: string
            default: active
            title: Status
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ApiResponse:
      properties:
        success:
          type: boolean
          title: Success
          default: true
        data:
          title: Data
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
      type: object
      title: ApiResponse
    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:
    BearerAuth:
      type: http
      scheme: bearer
      description: API Key (fim_xxx) or JWT token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.