Skip to content
  • Auto
  • Light
  • Dark

Retrieve

Download the output of a build target
get/v0/build_target_outputs

Download the output of a build target

Query Parameters
build_idstring

Build ID

targetenum
"node" OR "typescript" OR "python" OR 8 more

SDK language target name

Hide ParametersShow Parameters
"node"
"typescript"
"python"
"go"
"java"
"kotlin"
"ruby"
"terraform"
"cli"
"php"
"csharp"
typeenum
"source" OR "dist" OR "wheel"
Hide ParametersShow Parameters
"source"
"dist"
"wheel"
outputenum
optional
"url" OR "git"

Output format: url (download URL) or git (temporary access token)

Hide ParametersShow Parameters
"url"
"git"
Returns
UnionMember0object
Hide ParametersShow Parameters
outputenum
"url"
Hide ParametersShow Parameters
"url"
targetTarget
typeenum
"source" OR "dist" OR "wheel"
Hide ParametersShow Parameters
"source"
"dist"
"wheel"
urlstring

URL for direct download

UnionMember1object
Hide ParametersShow Parameters
tokenstring

Temporary GitHub access token

outputenum
"git"
Hide ParametersShow Parameters
"git"
refstring

Git reference (commit SHA, branch, or tag)

targetTarget
typeenum
"source" OR "dist" OR "wheel"
Hide ParametersShow Parameters
"source"
"dist"
"wheel"
urlstring

URL to git remote

curl https://api.stainless.com/v0/build_target_outputs \
    -H "Authorization: Bearer $STAINLESS_API_KEY" \
    -d '{}'
200 Example
{
  "output": "url",
  "target": "node",
  "type": "source",
  "url": "url"
}