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

# End Agent Session

> Hang up a live session: the agent disconnects and the call terminates.



## OpenAPI

````yaml post /v1/agent/sessions/{session_id}/end
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/sessions/{session_id}/end:
    post:
      tags:
        - Agent Sessions
      summary: End Agent Session
      description: >-
        Hang up a live session: the agent disconnects and the call terminates.
        The

        session record, transcript, and recording are retained and stay
        readable.
      parameters:
        - in: path
          name: session_id
          description: ''
          required: true
          schema:
            title: Session Id
            type: string
          deprecated: false
      responses:
        '204':
          description: Request fulfilled, nothing follows
          headers: {}
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '502':
          description: Invalid responses from another server/proxy
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: bash
          label: End Session
          source: |-
            curl --request POST \
              --url https://api.fish.audio/v1/agent/sessions/<session-id>/end \
              --header 'Authorization: Bearer <token>'
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````