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

# Expert 调用

> Invoke a Profy Expert agent with automatic token billing. Returns SSE stream.



## OpenAPI

````yaml POST /openapi/v1/events/invoke
openapi: 3.0.0
info:
  title: Profy App API
  version: 1.0.0
  description: OAuth 2.0 and Events API for Profy App integrations.
servers:
  - url: https://app.profy.cn
    description: Production
security: []
paths:
  /openapi/v1/events/invoke:
    post:
      tags:
        - Events
      summary: Expert invoke event (METERED)
      description: >-
        Invoke a Profy Expert agent with automatic token billing. Returns SSE
        stream.
      operationId: postInvokeEvent
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                expert_identifier:
                  type: string
                  description: Expert identifier
                message:
                  type: string
                  description: User message
                session_id:
                  type: string
                  description: Existing session ID to continue conversation
                model:
                  type: string
                  description: Override model selection
              required:
                - expert_identifier
                - message
      responses:
        '200':
          description: SSE stream with agent response
        '400':
          description: Missing required fields or no LLM config
        '401':
          description: Unauthorized
        '403':
          description: Expert access denied
        '404':
          description: Expert not found
        '502':
          description: Agent runtime error
      security:
        - Bearer: []
components:
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth2 access token issued via POST /oauth/token

````