# echowin

> Read echowin agents, contacts, conversations, and team records.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/echowin

## Actions

### Get a contact

Get a contact.

**Inputs**

- Contact ID (`contact_id`, text, required): contactId to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "activity": {
      "conversations": 1,
      "lastChannel": "example",
      "lastConversationAt": "example"
    },
    "address": {},
    "assignments": [],
    "autoPopulated": false,
    "company": "example",
    "createdAt": "example",
    "customFields": {},
    "doNotCall": false,
    "e164": "example",
    "email": "example",
    "favorite": false,
    "firstName": "example",
    "id": "example",
    "lastName": "example",
    "listIds": [],
    "memory": "example",
    "notes": [],
    "ownerUserId": "example",
    "source": "example",
    "tags": [],
    "tenantId": "example",
    "updatedAt": "example"
  }
}
```

### Get a conversation

Get a conversation.

**Inputs**

- Conversation ID (`conversation_id`, text, required): conversationId to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "agent": {},
    "agentId": "example",
    "answeredAt": "example",
    "archived": false,
    "billedSeconds": 1.0,
    "callDetails": {},
    "campaignContactId": "example",
    "campaignId": "example",
    "channel": "phone",
    "contact": {},
    "contactId": "example",
    "contentDeleted": false,
    "createdAt": "example",
    "direction": "inbound",
    "durationMs": 1.0,
    "endedAt": "example",
    "favorite": false,
    "feedback": {
      "own": {
        "authorName": "example",
        "comment": "example",
        "createdAt": "example",
        "id": "example",
        "mine": false,
        "rating": "like"
      },
      "reports": []
    },
    "flagged": false,
    "fromAddress": "example",
    "id": "example",
    "isTest": false,
    "masked": false,
    "memory": "example",
    "messages": [],
    "metadata": {},
    "scheduledCallId": "example",
    "score": 1.0,
    "spam": false,
    "startedAt": "example",
    "status": "queued",
    "summary": "example",
    "tenantId": "example",
    "title": "example",
    "toAddress": "example",
    "updatedAt": "example",
    "widgetId": "example"
  }
}
```

### Get a team member

Get a team member.

**Inputs**

- Member ID (`member_id`, text, required): memberId to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "clientTenantIds": [],
    "createdAt": "example",
    "emailNotifications": false,
    "id": "example",
    "lastActiveAt": "example",
    "restrictedToAssignedClients": false,
    "role": "owner",
    "tenantId": "example",
    "user": {
      "email": "example",
      "image": "example",
      "name": "example"
    },
    "userId": "example"
  }
}
```

### Get agent instructions

Get agent instructions.

**Inputs**

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

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "agentId": "example",
    "instructions": "example",
    "source": "example",
    "updatedAt": "example",
    "versionId": "example"
  }
}
```

### Get an agent

Get an agent.

**Inputs**

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

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "autoDeleteTranscripts": false,
    "callTimeoutSeconds": 1,
    "config": {},
    "createdAt": "example",
    "description": "example",
    "id": "example",
    "initialMessage": "example",
    "instructions": "example",
    "keyPhrases": [],
    "knowledgeBaseIds": [],
    "language": "example",
    "modelTier": "speedy",
    "name": "example",
    "omegaThinkingLevel": "example",
    "phoneNumberIds": [],
    "setup": {
      "error": "example",
      "status": "example",
      "step": "example"
    },
    "skipRecordingNotice": false,
    "speechEngine": "omega",
    "status": "live",
    "templateId": "example",
    "tenantId": "example",
    "testPhoneNumber": "example",
    "timezone": "example",
    "updatedAt": "example",
    "voiceConfig": {},
    "voiceId": "example",
    "widgetIds": []
  }
}
```

### Get connection details

Get connection details.

**Inputs**: None.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "activeTenantId": "example",
    "apiKey": {
      "id": "example",
      "scopes": [],
      "tenantId": "example"
    },
    "impersonation": {
      "actorEmail": "example",
      "actorId": "example",
      "actorName": "example",
      "expiresAt": "example"
    },
    "memberships": [],
    "type": "user",
    "user": {
      "email": "example",
      "emailVerified": false,
      "id": "example",
      "image": "example",
      "name": "example",
      "twoFactorEnabled": false
    }
  }
}
```

### List agent instruction versions

List agent instruction versions.

**Inputs**

- Agent ID (`agent_id`, text, required): agentId to use.
- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List agents

List agents.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Q (`q`, text): Name contains
- Status (`status`, text): Derived; see agentStatus in apps/api/src/lib/agents.ts. One of: `live`, `not_connected` (Not connected), `building`, `needs_attention` (Needs attention).
- Sort (`sort`, text): `-lastConversationAt` puts agents without real conversations last. One of: `-createdAt`, `name`, `-lastConversationAt`.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "counts": {
      "all": 1,
      "building": 1,
      "live": 1,
      "needs_attention": 1,
      "not_connected": 1
    },
    "data": [],
    "nextCursor": "example"
  }
}
```

### List campaigns

List campaigns.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Status (`status`, text): status to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List contact notes

List contact notes.

**Inputs**

- Contact ID (`contact_id`, text, required): contactId to use.
- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List contact timeline entries

List contact timeline entries.

**Inputs**

- Contact ID (`contact_id`, text, required): contactId to use.
- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List contacts

List contacts.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Q (`q`, text): q to use.
- Do not call (`do_not_call`, text): doNotCall to use. One of: `true`, `false`.
- Favorite (`favorite`, text): favorite to use. One of: `true`, `false`.
- Created after (`created_after`, date and time): createdAfter to use.
- Created before (`created_before`, date and time): createdBefore to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List conversation messages

List conversation messages.

**Inputs**

- Conversation ID (`conversation_id`, text, required): conversationId to use.
- Limit (`limit`, number): limit to use. From 1 to 500.
- Cursor (`cursor`, text): cursor to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List conversation notes

List conversation notes.

**Inputs**

- Conversation ID (`conversation_id`, text, required): conversationId to use.
- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List conversation tags

List conversation tags.

**Inputs**

- Conversation ID (`conversation_id`, text, required): conversationId to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List conversations

List conversations.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Channel (`channel`, text): channel to use.
- Direction (`direction`, text): direction to use. One of: `inbound`, `outbound`.
- Status (`status`, text): status to use. One of: `queued`, `ringing`, `active`, `ended`, `failed`, `no_answer` (No answer), `busy`, `canceled`.
- Live (`live`, text): live to use. One of: `true`.
- Agent ID (`agent_id`, text): agentId to use.
- Flagged (`flagged`, text): flagged to use. One of: `true`, `false`.
- Favorite (`favorite`, text): favorite to use. One of: `true`, `false`.
- Started after (`started_after`, date and time): startedAfter to use.
- Started before (`started_before`, date and time): startedBefore to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List knowledge bases

List knowledge bases.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Q (`q`, text): q to use.

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List phone numbers

List phone numbers.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### List team members

List team members.

**Inputs**

- Limit (`limit`, number): limit to use. From 1 to 100.
- Cursor (`cursor`, text): `nextCursor` from the previous page
- Role (`role`, text): role to use. One of: `owner`, `admin`, `member`, `viewer`, `staff_admin` (Staff admin), `staff_support` (Staff support).
- Q (`q`, text): Name or email contains

**Outputs**

- `data` (object): Response.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```
