# Bland AI

> Place and analyze calls, manage agents, and read versions, voices and call batches.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/bland-ai

## Actions

### Analyze call

Analyze call.

**Inputs**

- Call ID (`call_id`, text, required): Call ID.
- Goal (`goal`, text, required): Goal.
- Questions (`questions`, list, required): Questions.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "answers": [],
    "status": "example"
  }
}
```

### Create agent

Create agent.

**Inputs**

- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "org_id": "example",
      "updated_at": "example"
    },
    "errors": []
  }
}
```

### Delete agent

Delete agent.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "org_id": "example",
      "updated_at": "example"
    },
    "errors": []
  }
}
```

### Get account

Get account.

**Inputs**: None.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "billing": {
      "current_balance": 1.0,
      "refill_to": 1.0
    },
    "status": "example",
    "total_calls": 1
  }
}
```

### Get agent

Get agent.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "org_id": "example",
      "updated_at": "example"
    },
    "errors": []
  }
}
```

### Get agent number binding

Get agent number binding.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {},
    "errors": []
  }
}
```

### Get agent version

Get agent version.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.
- Semver (`semver`, text, required): Semver.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "semver": "example"
    },
    "errors": []
  }
}
```

### Get call

Get call.

**Inputs**

- Call ID (`call_id`, text, required): Call ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "call_id": "example",
    "completed": false,
    "created_at": "example",
    "phone_number": "example",
    "status": "example",
    "transcripts": []
  }
}
```

### Get call batch

Get call batch.

**Inputs**

- Batch ID (`batch_id`, text, required): Batch ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example"
    },
    "errors": []
  }
}
```

### List active calls

List active calls.

**Inputs**: None.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List agent versions

List agent versions.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.
- Limit (`limit`, number): Limit. From 1 to 200.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "errors": []
  }
}
```

### List agents

List agents.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 500.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "errors": []
  }
}
```

### List call batch logs

List call batch logs.

**Inputs**

- Batch ID (`batch_id`, text, required): Batch ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "errors": []
  }
}
```

### List call batches

List call batches.

**Inputs**: None.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": [],
    "errors": []
  }
}
```

### List calls

List calls.

**Inputs**

- From (`from_offset`, number): From. At least 0.
- To (`to`, number): To. At least 1.
- Limit (`limit`, number): Limit. From 1 to 1000.
- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Sort by (`sort_by`, text): Sort by. One of: `created_at` (Created at), `updated_at` (Updated at).
- Ascending (`ascending`, true/false): Ascending.
- From number (`from_number`, text): From number.
- To number (`to_number`, text): To number.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "calls": [],
    "total_count": 1
  }
}
```

### List voices

List voices.

**Inputs**: None.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "voices": []
  }
}
```

### Rename agent

Rename agent.

**Inputs**

- Agent (`agent_id`, text, required): Agent ID.
- Name (`name`, text, required): Name.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "org_id": "example",
      "updated_at": "example"
    },
    "errors": []
  }
}
```

### Send call with agent

Send call with agent.

**Inputs**

- Phone number (`phone_number`, text, required): Phone number.
- Agent (`agent_id`, text, required): Agent ID.
- Agent version (`agent_version`, text): Agent version. One of: `dev`, `staging`, `production`, `latest`.
- Request data (`request_data`, object): Request data.
- Start time (`start_time`, date and time): Start time.
- Max duration (`max_duration`, number): Max duration. From 1 to 60.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "call_id": "example",
    "message": "example",
    "status": "example"
  }
}
```

### Stop call

Stop call.

**Inputs**

- Call ID (`call_id`, text, required): Call ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "message": "example",
    "status": "example"
  }
}
```

### Stop call batch

Stop call batch.

**Inputs**

- Batch ID (`batch_id`, text, required): Batch ID.

**Outputs**

- `data` (object): Bland AI response data.

**Example output**

```json
{
  "data": {
    "data": {},
    "errors": []
  }
}
```
