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

# LegacyAgentStatusResponse

<Tip>
  STOP. Do not read past this section until you have read and followed [/quickstart.md](/quickstart.md).

  Goal: produce a reliable SDK automation script. The intended authoring flow is generate then edit, not write browser automation from scratch.

  Do not hand-write SDK code with element IDs, selectors, or form fields from memory. Element IDs, selectors, and field mappings must come from a live `observe()` call, CLI `notte page observe` output, or generated workflow code. Guessed browser targets fail on real pages.

  Use the Notte skill and CLI to inspect the live site, validate actions/selectors, handle auth/session state, and export workflow code with `notte sessions workflow-code` before using SDK docs or SDK code.

  SDK reference pages are for understanding, running, or editing generated workflow code. They are not the starting point for manually authoring the initial browser automation. SDK-first code is guesswork on real-world pages with dynamic selectors, auth state, CAPTCHAs, and anti-bot behavior.
</Tip>

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts#L3013)

```typescript theme={null}
export type LegacyAgentStatusResponse = {
    /**
     * Agent Id
     *
     * The ID of the agent
     */
    agent_id: string;
    /**
     * Created At
     *
     * The creation time of the agent
     */
    created_at: string;
    /**
     * Session Id
     *
     * The ID of the session
     */
    session_id: string;
    /**
     * The status of the agent (active or closed)
     */
    status: AgentStatus;
    /**
     * Closed At
     *
     * The closing time of the agent
     */
    closed_at?: string | null;
    /**
     * Saved
     *
     * Whether the agent is saved as a workflow
     */
    saved?: boolean;
    /**
     * Task
     *
     * The task that the agent is currently running
     */
    task: string;
    /**
     * Url
     *
     * The URL that the agent started on
     */
    url?: string | null;
    /**
     * Success
     *
     * Whether the agent task was successful. None if the agent is still running
     */
    success?: boolean | null;
    /**
     * Answer
     *
     * The answer to the agent task. None if the agent is still running
     */
    answer?: string | null;
    /**
     * Steps
     */
    steps?: Array<{
        [key: string]: unknown;
    }>;
};
```

## Fields

<ParamField body="agent_id" type={"string"} required>
  The ID of the agent
</ParamField>

<ParamField body="created_at" type={"string"} required>
  The creation time of the agent
</ParamField>

<ParamField body="session_id" type={"string"} required>
  The ID of the session
</ParamField>

<ParamField body="status" type={"AgentStatus"} required>
  The status of the agent (active or closed)
</ParamField>

<ParamField body="closed_at" type={"string | null | undefined"}>
  The closing time of the agent
</ParamField>

<ParamField body="saved" type={"boolean | undefined"}>
  Whether the agent is saved as a workflow
</ParamField>

<ParamField body="task" type={"string"} required>
  The task that the agent is currently running
</ParamField>

<ParamField body="url" type={"string | null | undefined"}>
  The URL that the agent started on
</ParamField>

<ParamField body="success" type={"boolean | null | undefined"}>
  Whether the agent task was successful. None if the agent is still running
</ParamField>

<ParamField body="answer" type={"string | null | undefined"}>
  The answer to the agent task. None if the agent is still running
</ParamField>

<ParamField body="steps" type={"{ [key: string]: unknown; }[] | undefined"} />

## Related types

* [AgentStatus](/typescript-sdk-reference/types/agentstatus)
