---
title: "Get the extraction script source of one build"
method: GET
path: "/v5/agent/data/{sessionId}/builds/{buildId}/input"
tags: ["Agent"]
---

# Get the extraction script source of one build

`GET /v5/agent/data/{sessionId}/builds/{buildId}/input`

## Request

- Base URL: `https://api.kadoa.com`
- URL: `https://api.kadoa.com/v5/agent/data/{sessionId}/builds/{buildId}/input`
- Auth: none declared

Requires the ACCESS_SOURCE_CODE feature flag. Returns the script source, no file names, for builds whose source currently passes Kadoa's source review.

## Path parameters

- `sessionId` string, uuid, required
- `buildId` string, uuid, required

## Response `200`

Build script source

- AgentBuildInputResponse
  - `data` object, required
    - `scriptSource` string, required
    - `scriptLibVersion` string, nullable, required
  - `status` 'success', required

## Other responses

- `403`: Feature flag not enabled for the account
- `404`: Build not found for this session/team, or its source is not available (BUILD_SOURCE_NOT_VIEWABLE)

---

[API](https://skmtc.dev/kadoa/apis/kadoa-api.md) · [All operations](https://skmtc.dev/kadoa/apis/kadoa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kadoa/apis/kadoa-api/revisions/bf7803c927b4?raw)
