# List AI actions for a content type

_NgCms / AI Actions_

`GET /ng-cms/content-types/{projectId}/{key}/ai-actions`

## Parameters

- `projectId` (string, required) — Project (bucket) identifier
- `key` (string, required) — Content type ID or key

## Responses

### `200` — AI actions configured for the content type.

Type: `PagedApiResponse<CmsTypeAiActionSummaryDto>`


### `404` — Content type not found for the given projectId/key. Returns an empty body.


### `500` — Unexpected server error. Note: unlike most endpoints, this action returns the raw exception message as a plain string body, not a wrapped ApiResponse<T>.

Type: `string`



## Code Examples

### curl

```curl
curl --request GET \
  --url https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions \
  --header 'x-api-key: <your-api-key>'
```

### javascript

```js
fetch('https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions', {
  headers: { 'x-api-key': '<your-api-key>' }
})
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
```

### dotnet

```dotnet
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "<your-api-key>");

var response = await client.GetAsync("https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions");
var result = await response.Content.ReadFromJsonAsync<PagedApiResponse<CmsTypeAiActionSummaryDto>>();
```

### python

```python
import requests

headers = {'x-api-key': '<your-api-key>'}
response = requests.get('https://apis-spb.konso.io/ng-cms/content-types/{projectId}/{key}/ai-actions', headers=headers)
print(response.json())
```

### Response Example (200)

```json
{
  "total": 2,
  "list": [
    {
      "id": "aia_a1b2c3d4e5f6",
      "name": "Generate SEO description",
      "contentTypeId": "typ_xw9p2445",
      "contentTypeKey": "api_reference_entity"
    },
    {
      "id": "aia_g7h8i9j0k1l2",
      "name": "Summarize content",
      "contentTypeId": "typ_xw9p2445",
      "contentTypeKey": "api_reference_entity"
    }
  ]
}
```
