# Preview an AI call

> Which voice agent would call this contact, without dialling.

Source: https://docs.mycrmsim.com/docs/calls/preview-ai-call

```http
GET https://backend.mysmsgateway.app/api/v1/ext/calls/ai/preview
```

- Category: myCRMSIM Calls / Calls
- Auth: Bearer access token
- Scope: `calls.read`

The same resolver *Place an AI call* uses, so the name shown before a call is the agent that calls. `can_call: false` carries the refusal the call would get. Nothing is created or dialled.

## Parameters

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

## Response 200

OK

```json
{
  "success": true,
  "data": {
    "can_call": true,
    "voice_agent_id": "va_01HZX",
    "voice_agent_name": "Sales Voice",
    "agent_name": "Sales Agent",
    "matched_by": "tag",
    "tag": "sales"
  }
}
```

## Response 200

OK — the call would be refused

```json
{
  "success": true,
  "data": {
    "can_call": false,
    "reason": "AI is turned off for this contact."
  }
}
```

## Response 401

Missing or invalid token

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

## Response 403

Voice agents are switched off for the account

```json
{
  "success": false,
  "code": "voice_agents_off",
  "message": "Voice agents are not enabled for this account."
}
```

## Response 403

Missing scope

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

## Response 404

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

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