---
title: "List versions"
method: GET
path: "/api/{projectId}/versions"
tags: ["Projects"]
---

# List versions

`GET /api/{projectId}/versions`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/{projectId}/versions`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/:projectId/versions/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all versions for this project.

## Path parameters

- `projectId` integer, required

## Response `200`

OK

- ListVersionsResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `nextVersion` integer, required
  - `versions` object[], required
    - `id` integer, required
    - `version` integer, required
    - `description` string, required
    - `bucket` object, required
      - `id` integer
      - `name` string
      - `organizationName` string
      - `path` string, required
      - `bucket` string
    - `created` string, date-time, required
    - `userId` integer
    - `userName` string
    - `userPhoto` string
    - `publicProjectId` integer
    - `publicProjectUrl` string
    - `trainingAccuracy` number: Accuracy calculated during training, using validation set.
    - `testAccuracy` number: Accuracy on test set.
    - `trainingmAP50` number: Mean Average Precision @ IoU=50 on validation set (for object detection projects).
    - `testmAP50` number: Mean Average Precision @ IoU=50 on test set (for object detection projects).
    - `accuracyBasedOnImpulse` string: If your project had multiple impulses, this field indicates which impulse was used to calculate the accuracy metrics.
    - `totalSamplesCount` string
    - `license` 'Apache-2.0' | 'BSD-3-Clause' | 'BSD-3-Clause-Clear'
  - `customLearnBlocks` object[], required: If you have any custom learn blocks (e.g. blocks you pushed through Bring Your Own Model), then these are listed here. We use these to show a warning in the UI that these blocks will also be available in a public version.
    - `author` string, required
    - `name` string, required
  - `runModelTestingWhileVersioning` boolean, required: Whether the 'Run model testing while versioning' checkbox should be enabled.

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
