> ## 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.

# ApiGetFunctionRunResponse

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

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

This is an internal import alias for the API model `GetFunctionRunResponse`. It is not exported by `notte-sdk`.

```typescript theme={null}
type ApiGetFunctionRunResponse = {
    artifact_sdk_generation?: FunctionSdkGeneration;
    sdk_generation?: FunctionSdkGeneration;
    /**
     * Function Id
     *
     * The ID of the function
     */
    function_id: string;
    /**
     * Function Run Id
     *
     * The ID of the function run
     */
    function_run_id: string;
    /**
     * Created At
     */
    created_at: string;
    /**
     * Updated At
     */
    updated_at: string;
    /**
     * Status
     */
    status: 'closed' | 'active' | 'failed';
    /**
     * Session Id
     *
     * The ID of the session
     */
    session_id?: string | null;
    /**
     * Logs
     *
     * The logs of the function run
     */
    logs?: Array<string>;
    /**
     * Variables
     *
     * The variables of the function run
     */
    variables?: {
        [key: string]: unknown;
    } | null;
    /**
     * Result
     *
     * The result of the function run (if any)
     */
    result?: string | null;
    /**
     * Local
     *
     * Whether the function has been run locally or on the cloud
     */
    local?: boolean;
    /**
     * Function Version
     */
    function_version?: string | null;
    /**
     * Payloads
     */
    payloads?: {
        [key: string]: RunPayloadReference;
    };
    /**
     * Stopped At
     */
    stopped_at?: string | null;
    /**
     * Payload Urls
     */
    payload_urls?: {
        [key: string]: string;
    };
    /**
     * Workflow Id
     */
    readonly workflow_id: string;
    /**
     * Workflow Run Id
     */
    readonly workflow_run_id: string;
};
```

## Fields

**artifact\_sdk\_generation** `FunctionSdkGeneration | undefined`

**sdk\_generation** `FunctionSdkGeneration | undefined`

**function\_id** `string` *required*

The ID of the function

**function\_run\_id** `string` *required*

The ID of the function run

**created\_at** `string` *required*

**updated\_at** `string` *required*

**status** `"failed" | "closed" | "active"` *required*

**session\_id** `string | null | undefined`

The ID of the session

**logs** `string[] | undefined`

The logs of the function run

**variables** `\{ [key: string]: unknown; \} | null | undefined`

The variables of the function run

**result** `string | null | undefined`

The result of the function run (if any)

**local** `boolean | undefined`

Whether the function has been run locally or on the cloud

**function\_version** `string | null | undefined`

**payloads** `\{ [key: string]: RunPayloadReference; \} | undefined`

**stopped\_at** `string | null | undefined`

**payload\_urls** `\{ [key: string]: string; \} | undefined`

**workflow\_id** `string` *required*

**workflow\_run\_id** `string` *required*

## Related types

* [FunctionSdkGeneration](https://docs.notte.cc/typescript-sdk-reference/types/functionsdkgeneration)
* [RunPayloadReference](https://docs.notte.cc/typescript-sdk-reference/types/runpayloadreference)


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