---
title: "getNpmSdkTarball"
---

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

# getNpmSdkTarball

Path: Forge API › registry

`GET /npm/@buildr/sdk/-/{version}`

Download a version of @buildr/sdk as an npm tarball: the SDK's modules and their type declarations. A deploy publishes each version once, so every download gives the same bytes, to every signed-in user.

## Path parameters

- `version` (`getNpmSdkTarball.path.version`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/npm/@buildr/sdk/-/<version>'
```

### TypeScript

```typescript
const url = '<base-url>/npm/@buildr/sdk/-/<version>';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/npm/@buildr/sdk/-/<version>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

Success

#### Example

```text
string
```

#### Body (application/octet-stream)

Type: `string`

- format: `binary`

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`getNpmSdkTarball.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`getNpmSdkTarball.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`getNpmSdkTarball.response.400.issues`; array of object, required)
  - `path` (`getNpmSdkTarball.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`getNpmSdkTarball.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`getNpmSdkTarball.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "ForbiddenOrigin"
}
```

Any of the following:

- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

ExtensionVersionNotFound

#### Example

```json
{
  "_tag": "ExtensionVersionNotFound",
  "extension_name": "string",
  "version": "string",
  "message": "string"
}
```

- `_tag` (`getNpmSdkTarball.response.404._tag`; string, required)
  - one of `"ExtensionVersionNotFound"`
- `extension_name` (`getNpmSdkTarball.response.404.extension_name`; string, required)
  - minLength: `1`
- `version` (`getNpmSdkTarball.response.404.version`; string, required)
- `message` (`getNpmSdkTarball.response.404.message`; string, required)

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`getNpmSdkTarball.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/get-npm-sdk-tarball/index.md
