# The BatteryPass v2.0 export of a version (all tiers)

> `GET /batteries/{batteryId}/passport/versions/{versionNo}/batterypass-v2` · Scope: `read` · operationId `exportPassportJson`

Any member. The stored export, including restricted data; sent as an attachment. Its schema report
is in `getPassportVersion` (advisory, ADR-012).

## Path parameters

- **batteryId** `string (uuid)` (required)
- **versionNo** `integer` (required)

## Responses

### 200 (`application/json`)

The export.

`JSONDocument`

### 400 (`application/problem+json`)

The request is malformed or failed validation (`validation_error`), or a token is invalid or expired (`invalid_token`).

### 401 (`application/problem+json`)

The API key is missing, unknown or revoked (`unauthenticated`).

### 403 (`application/problem+json`)

The API key may not perform this action (`forbidden`): it lacks the operation's scope, or the action needs more than a viewer's rights.

### 404 (`application/problem+json`)

The resource does not exist in the organisation of the API key, or the public passport is unknown (`not_found`).

### default (`application/problem+json`)

Any other problem, e.g. `internal_error`.

## Example

```bash title="cURL"
curl -X GET "https://passport.kabin.sh/api/v1/batteries/{batteryId}/passport/versions/{versionNo}/batterypass-v2" \
  -H "Authorization: Bearer $BATTERYPASS_API_KEY"
```
