---
title: "Open the fixed native logout flow for one agent"
method: POST
path: "/api/v1/agents/{agent}/logout"
tags: ["agents"]
---

# Open the fixed native logout flow for one agent

`POST /api/v1/agents/{agent}/logout`

## Request

- Base URL: `http://127.0.0.1:3001`
- URL: `http://127.0.0.1:3001/api/v1/agents/{agent}/logout`
- Auth: none declared

## Path parameters

- `agent` string, required: Agent adapter identifier.

## Response `201`

Created

- StartAgentAuthResponse
  - `action` string, required
  - `agentId` string, required
  - `guidance` string
  - `terminal` ShellTerminalResponse, required
    - `createdAt` string, date-time, required
    - `handleId` string, required
    - `projectId` string
    - `sessionId` string
    - `title` string, required
    - `workingDir` string, required
  - `terminalInput` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `501`: Not Implemented

## Changes

- **2026-10-21** `8f160e6183cd`: 3 info
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `400`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `500`
  - removed the `agent_switch_saga` enum value from the `reporting_owner` response property for the response status `501`
- **2026-10-15** `cdbb87fa6b57`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/changes/api/v1/agents/:agent/logout/post.md)

---

[API](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon.md) - [All operations](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/llms.txt) - [OpenAPI document](https://skmtc.dev/composiohq/apis/agent-orchestrator-http-daemon/revisions/61d7efd08578?raw)
