# Drift

> Manage Drift contacts, accounts and conversations; read playbooks, teams and booked meetings; watch conversations and messages.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/drift

## Actions

### Create account

Create account.

**Inputs**

- Owner (`owner_id`, number, required): Owner ID.
- Name (`name`, text, required): Name.
- Domain (`domain`, text, required): Domain.
- Account ID (`account_id`, text, required): Account ID.
- Targeted (`targeted`, true/false): Targeted.
- Custom properties (`custom_properties`, list): Custom properties.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "accountId": "account-1"
    }
  }
}
```

### Create contact

Create contact.

**Inputs**

- Email (`email`, text, required): Email.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- External ID (`external_id`, text): External ID.
- Phone (`phone`, text): Phone.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": 101
    }
  }
}
```

### Create conversation

Create conversation.

**Inputs**

- Email (`email`, text, required): Email.
- Message (`message`, text, required): Message.
- Source (`source`, text): Source.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "contactId": 101,
    "id": 88,
    "status": "open"
  }
}
```

### Delete account

Delete account.

**Inputs**

- Account (`account_id`, text, required): Account ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "ok": true,
    "result": "OK"
  }
}
```

### Delete contact

Delete contact.

**Inputs**

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

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get account

Get account.

**Inputs**

- Account (`account_id`, text, required): Account ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "accountId": "account-1"
    }
  }
}
```

### Get contact

Get contact.

**Inputs**

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

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "attributes": {
        "email": "qa@example.com"
      },
      "id": 101
    }
  }
}
```

### Get conversation

Get conversation.

**Inputs**

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

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": 88,
      "status": "open"
    }
  }
}
```

### Get user

Get user.

**Inputs**

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

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": 42
    }
  }
}
```

### List accounts

List accounts.

**Inputs**

- Index (`index`, number): Index. At least 0.
- Size (`size`, number): Size. From 1 to 65.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "accounts": [],
      "total": 0
    }
  }
}
```

### List contact attributes

List contact attributes.

**Inputs**: None.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List contacts

List contacts.

**Inputs**

- Email (`email`, text): Email.
- Limit (`limit`, number): Limit. From 1 to 100.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List conversations

List conversations.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Page token (`page_token`, text): Page token.
- Status IDs (`status_ids`, list): Status IDs. One or more of: `1`, `2`, `3`.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": [],
    "links": {}
  }
}
```

### List meetings

List meetings.

**Inputs**

- Min start time (`min_start_time`, date and time, required): Min start time.
- Max start time (`max_start_time`, date and time, required): Max start time.
- Limit (`limit`, number): Limit. From 0 to 1000.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List messages

List messages.

**Inputs**

- Conversation (`conversation_id`, text, required): Conversation ID.
- Next (`next`, text): Next.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List playbooks

List playbooks.

**Inputs**: None.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List teams

List teams.

**Inputs**: None.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### List users

List users.

**Inputs**: None.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

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

### Send message

Send message.

**Inputs**

- Conversation (`conversation_id`, text, required): Conversation ID.
- Body (`body`, text, required): Body.
- Type (`type`, text, required): Type. One of: `chat`, `private_note` (Private note).
- Agent (`agent_id`, number): Agent ID.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {
    "data": {
      "id": 99
    }
  }
}
```

### Update contact

Update contact.

**Inputs**

- Contact (`contact_id`, text, required): Contact ID.
- Email (`email`, text): Email.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- External ID (`external_id`, text): External ID.
- Phone (`phone`, text): Phone.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```
