# List AI models

> The reply models an agent can use.

Source: https://docs.mycrmsim.com/docs/ai-agents/list-ai-models

```http
GET https://backend.mysmsgateway.app/api/v1/ext/ai-agents/models
```

- Category: myCRMSIM AI Agents / AI Agents
- Auth: Bearer access token
- Scope: `ai_agents.read`

Use an `id` as `config_metadata.model`. Models run on the account's own OpenAI (or OpenRouter) key, set on the dashboard.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | A workspace of the installer. Example: `7` |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": "gpt-4.1-mini",
      "name": "GPT-4.1 mini",
      "provider": "openai",
      "description": "Fast and inexpensive; good for most conversations.",
      "recommended": true
    }
  ]
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): ai_agents.read. This integration was granted: …"
}
```

## Response 404

workspace_id does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```

## Response 502

The AI service could not be reached

```json
{
  "success": false,
  "message": "The AI service could not be reached. Try again later."
}
```
