---
title: "Get all available learn blocks"
method: GET
path: "/api/{projectId}/optimize/all-learn-blocks"
tags: ["Optimization"]
---

# Get all available learn blocks

`GET /api/{projectId}/optimize/all-learn-blocks`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/{projectId}/optimize/all-learn-blocks`
- 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/optimize/all-learn-blocks/get.ts> (a function with typed inputs; its response is checked against the schema)

Get all available learn blocks

## Path parameters

- `projectId` integer, required

## Response `200`

OK

- AllLearnBlocksResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `learnBlocks` object[], required
    - `type` 'anomaly' | 'anomaly-gmm' | 'keras' | 'keras-transfer-image' | 'keras-transfer-kws' | 'keras-object-detection' | 'keras-regression' | 'keras-akida' | 'keras-akida-transfer-image' | 'keras-akida-object-detection' | 'keras-visual-anomaly' | 'keras-freeform' | 'keras-self-contained-freeform' | 'keras-anomaly' | 'vlm', required: The type of learning block (anomaly, keras, keras-transfer-image, ...). Each behaves differently.
    - `title` string, required
    - `author` string, required
    - `description` string, required
    - `name` string, required
    - `organizationModelId` number
    - `experiment` string
    - `displayCategory` 'classical' | 'tao' | 'developer-preview': Category to display this block in the UI.
    - `publicProjectTierAvailability` 'enterprise-only' | 'all-projects' | 'all-projects-including-whitelabels': For public blocks, this indicates the project tiers for which this block is available.

---

[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)
