# RASSEL

> Send WhatsApp messages, manage contacts and tags, and handle customer conversations in your RASSEL inbox.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/rassel

## Actions

### Add note

Add an internal note to a conversation. The customer never sees it.

**Inputs**

- Conversation (`id`, number, required): The conversation's ID.
- Note (`text`, text, required): The note.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "id": 1
  }
}
```

### Add tags to contact

Add tags to a contact and keep the tags they already have.

**Inputs**

- Contact (`id`, number, required): The contact to tag.
- Tags (`tags`, list, required): The tags to add, 1 to 50. New ones join your tag list.

**Outputs**

- `data` (object): The contact.

**Example output**

```json
{
  "data": {
    "added": [
      "VIP"
    ],
    "blocked": false,
    "company": "Rose Store",
    "created_at": "2026-10-02 09:14:55",
    "email": "salem@example.com",
    "id": 1842,
    "lifecycle": "customer",
    "name": "Salem Alotaibi",
    "notes": "Prefers WhatsApp",
    "opted_out": false,
    "phone": "+966551234567",
    "stage": "won",
    "tags": [
      "VIP"
    ]
  }
}
```

### Create or update contact

Add a contact, or update the one with the same phone number or email.

**Inputs**

- Phone (`phone`, text): Their phone number in international format, such as +966551234567. A phone or an email is needed; an existing contact with it is updated.
- Name (`name`, text): Their name, up to 200 characters.
- Email (`email`, text): Their email address.
- Company (`company`, text): Their company.
- Lifecycle stage (`lifecycle`, text): Their lifecycle stage, such as lead or customer.
- Pipeline stage (`stage`, text): Their pipeline stage, such as won.
- Notes (`notes`, text): Notes about them, up to 2,000 characters.
- Tags (`tags`, list): Their full list of tags. It replaces the tags they have.

**Outputs**

- `data` (object): The contact.

**Example output**

```json
{
  "data": {
    "blocked": false,
    "company": "Rose Store",
    "created": true,
    "created_at": "2026-10-02 09:14:55",
    "email": "salem@example.com",
    "id": 1842,
    "lifecycle": "customer",
    "name": "Salem Alotaibi",
    "notes": "Prefers WhatsApp",
    "opted_out": false,
    "phone": "+966551234567",
    "stage": "won",
    "tags": [
      "VIP"
    ]
  }
}
```

### Create tag

Add a tag to your workspace's list.

**Inputs**

- Name (`name`, text, required): The tag's name, 1 to 60 characters, without quotes. Names are unique.
- Colour (`color`, text): Its colour as #RRGGBB, such as #d97706.
- Description (`description`, text): What it is for, up to 300 characters.

**Outputs**

- `data` (object): The tag.

**Example output**

```json
{
  "data": {
    "color": "#d97706",
    "contacts": 128,
    "created_at": "2026-10-11 10:20:00",
    "description": "Top customers",
    "id": 9,
    "name": "VIP"
  }
}
```

### Delete contact

Delete a contact.

**Inputs**

- Contact (`id`, number, required): The contact to delete.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "id": 1842
  }
}
```

### Delete tag

Delete a tag from your workspace's list, and optionally from every contact.

**Inputs**

- Tag (`id`, number, required): The tag to delete.
- Remove from contacts (`remove_from_contacts`, true/false): Also take it off every contact. Contacts keep it otherwise.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "id": 9,
    "ok": true,
    "removed_from_contacts": 128
  }
}
```

### Get contact

Get one contact.

**Inputs**

- Contact (`id`, number, required): The contact to read.

**Outputs**

- `data` (object): The contact.

**Example output**

```json
{
  "data": {
    "blocked": false,
    "company": "Rose Store",
    "created_at": "2026-10-02 09:14:55",
    "email": "salem@example.com",
    "id": 1842,
    "lifecycle": "customer",
    "name": "Salem Alotaibi",
    "notes": "Prefers WhatsApp",
    "opted_out": false,
    "phone": "+966551234567",
    "stage": "won",
    "tags": [
      "VIP"
    ]
  }
}
```

### Get conversation

Get one conversation with its customer, channel and assigned agent.

**Inputs**

- Conversation (`id`, number, required): The conversation's ID.

**Outputs**

- `data` (object): The conversation.

**Example output**

```json
{
  "data": {
    "assignee": {
      "id": 5,
      "name": "Noura"
    },
    "channel": {
      "id": 3,
      "name": "Sales WhatsApp",
      "number": "+966500000000",
      "type": "whatsapp"
    },
    "closed_at": "2026-11-20 14:00:00",
    "contact": {
      "id": 1842,
      "name": "Salem Alotaibi",
      "phone": "+966551234567"
    },
    "created_at": "2026-11-20 12:58:41",
    "id": 12,
    "last_at": "2026-11-20 13:02:10",
    "last_message": "When will my order arrive?",
    "priority": "high",
    "status": "open",
    "unread": 2
  }
}
```

### Get workspace

Get the workspace this key belongs to and what the key may do.

**Inputs**: None.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "available_scopes": [
      "contacts.read",
      "contacts.write"
    ],
    "key": {
      "id": 4,
      "name": "Lodol",
      "scopes": [
        "contacts.read",
        "messages.send"
      ]
    },
    "workspace": {
      "id": 7,
      "name": "Rose Store"
    }
  }
}
```

### List agents

List the people in your workspace with their role, presence and open conversations.

**Inputs**

- Status (`status`, text): Only agents with this presence. One of: `online`, `busy`, `break` (On a break), `offline`.
- Present only (`present`, true/false): Only agents who are online, busy or on a break.
- Role (`role`, text): Only agents with this role, such as admin, supervisor or agent.
- Team (`team`, number): Only agents in this team.
- Include deactivated (`include_inactive`, true/false): Include deactivated accounts.
- Page size (`limit`, number): How many to list, 1 to 100. 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "active": true,
        "created_at": "2026-09-01 08:00:00",
        "email": "noura@example.com",
        "id": 5,
        "name": "Noura",
        "open_conversations": 7,
        "present": true,
        "role": "agent",
        "status": "online",
        "team": {
          "id": 2,
          "name": "Sales"
        }
      }
    ],
    "limit": 50,
    "offset": 0
  }
}
```

### List channels

List your connected channels, such as WhatsApp numbers, with their IDs.

**Inputs**: None.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "id": 3,
        "name": "Sales WhatsApp",
        "number": "+966500000000",
        "status": "connected",
        "type": "whatsapp"
      }
    ],
    "limit": 50
  }
}
```

### List contact conversations

List every conversation with a contact.

**Inputs**

- Contact (`id`, number, required): The contact.
- Page size (`limit`, number): How many to list, 1 to 100. 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignee": {
          "id": 5,
          "name": "Noura"
        },
        "channel": {
          "id": 3,
          "name": "Sales WhatsApp",
          "number": "+966500000000",
          "type": "whatsapp"
        },
        "closed_at": "2026-11-20 14:00:00",
        "contact": {
          "id": 1842,
          "name": "Salem Alotaibi",
          "phone": "+966551234567"
        },
        "created_at": "2026-11-20 12:58:41",
        "id": 12,
        "last_at": "2026-11-20 13:02:10",
        "last_message": "When will my order arrive?",
        "priority": "high",
        "status": "open",
        "unread": 2
      }
    ],
    "limit": 50,
    "offset": 0
  }
}
```

### List contact tags

List the tags a contact has.

**Inputs**

- Contact (`id`, number, required): The contact to read.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "contact_id": 1842,
    "tags": [
      "VIP"
    ]
  }
}
```

### List contacts

List your contacts, newest first, or find them by name, phone, email or tag.

**Inputs**

- Search (`search`, text): Part of a name, phone number or email address.
- Phone (`phone`, text): An exact phone number, in any format.
- Email (`email`, text): An exact email address.
- Tag (`tag`, text): Only contacts with this tag.
- Page size (`limit`, number): How many to list, 1 to 100. 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "blocked": false,
        "company": "Rose Store",
        "created_at": "2026-10-02 09:14:55",
        "email": "salem@example.com",
        "id": 1842,
        "lifecycle": "customer",
        "name": "Salem Alotaibi",
        "notes": "Prefers WhatsApp",
        "opted_out": false,
        "phone": "+966551234567",
        "stage": "won",
        "tags": [
          "VIP"
        ]
      }
    ],
    "limit": 50,
    "offset": 0
  }
}
```

### List conversations

List conversations, most recently active first.

**Inputs**

- Status (`status`, text): Only conversations with this status. One of: `open`, `pending`, `closed`.
- Contact (`contact_id`, number): Only conversations with this contact.
- Page size (`limit`, number): How many to list, 1 to 100. 50 when empty. From 1 to 100.
- Skip (`offset`, number): How many to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignee": {
          "id": 5,
          "name": "Noura"
        },
        "channel": {
          "id": 3,
          "name": "Sales WhatsApp",
          "number": "+966500000000",
          "type": "whatsapp"
        },
        "closed_at": "2026-11-20 14:00:00",
        "contact": {
          "id": 1842,
          "name": "Salem Alotaibi",
          "phone": "+966551234567"
        },
        "created_at": "2026-11-20 12:58:41",
        "id": 12,
        "last_at": "2026-11-20 13:02:10",
        "last_message": "When will my order arrive?",
        "priority": "high",
        "status": "open",
        "unread": 2
      }
    ],
    "limit": 50,
    "offset": 0
  }
}
```

### List messages

List a conversation's latest messages, oldest to newest, with delivery and read status.

**Inputs**

- Conversation (`id`, number, required): The conversation's ID.
- Before message (`before_id`, number): Only messages older than this message ID, to read further back.
- Attachments only (`media_only`, true/false): Only messages with images or files.
- Page size (`limit`, number): How many messages to list, 1 to 100. 50 when empty. From 1 to 100.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "author": "API",
        "body": "Your order is on its way",
        "channel_id": 3,
        "conversation_id": 12,
        "created_at": "2026-11-20 13:04:10",
        "delivered_at": "2026-11-20 13:04:12",
        "direction": "out",
        "id": 90212,
        "kind": "text",
        "read_at": "2026-11-20 13:05:00",
        "sent_at": "2026-11-20 13:04:10",
        "status": "sent",
        "template_id": 7
      }
    ],
    "limit": 50
  }
}
```

### List tags

List your workspace's tags with how many contacts carry each.

**Inputs**

- Page size (`limit`, number): How many to list, 1 to 500. 50 when empty. From 1 to 500.
- Skip (`offset`, number): How many to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#d97706",
        "contacts": 128,
        "created_at": "2026-10-11 10:20:00",
        "description": "Top customers",
        "id": 9,
        "name": "VIP"
      }
    ],
    "limit": 50,
    "offset": 0
  }
}
```

### List teams

List your teams with their members and who is present.

**Inputs**: None.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "color": "#2563eb",
        "description": "Sales team",
        "id": 2,
        "members": [
          {
            "id": 5,
            "name": "Noura",
            "present": true,
            "status": "online"
          }
        ],
        "name": "Sales"
      }
    ]
  }
}
```

### List templates

List your WhatsApp message templates. Only approved ones can be sent.

**Inputs**: None.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "body": "Hi {{1}}, your order {{2}} has shipped.",
        "category": "UTILITY",
        "id": 7,
        "language": "en",
        "name": "order_shipped",
        "status": "APPROVED"
      }
    ],
    "limit": 50
  }
}
```

### Remove tag from contact

Take one tag off a contact and keep the rest.

**Inputs**

- Contact (`id`, number, required): The contact.
- Tag (`tag`, text, required): The tag to take off.

**Outputs**

- `data` (object): The contact.

**Example output**

```json
{
  "data": {
    "blocked": false,
    "company": "Rose Store",
    "created_at": "2026-10-02 09:14:55",
    "email": "salem@example.com",
    "id": 1842,
    "lifecycle": "customer",
    "name": "Salem Alotaibi",
    "notes": "Prefers WhatsApp",
    "opted_out": false,
    "phone": "+966551234567",
    "removed": true,
    "stage": "won",
    "tags": [
      "VIP"
    ]
  }
}
```

### Reply in conversation

Send a reply in a conversation: free text within WhatsApp's 24-hour window, or an approved template.

**Inputs**

- Conversation (`id`, number, required): The conversation's ID.
- Text (`text`, text): The reply, up to 4,096 characters.
- Template (`template_id`, number): An approved template to send instead of text.
- Template values (`params`, list): The values for the template's placeholders, in order.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "contact_id": 1842,
    "conversation_id": 12,
    "message": {
      "author": "API",
      "body": "Your order is on its way",
      "channel_id": 3,
      "conversation_id": 12,
      "created_at": "2026-11-20 13:04:10",
      "delivered_at": "2026-11-20 13:04:12",
      "direction": "out",
      "id": 90212,
      "kind": "text",
      "read_at": "2026-11-20 13:05:00",
      "sent_at": "2026-11-20 13:04:10",
      "status": "sent",
      "template_id": 7
    },
    "ok": true
  }
}
```

### Send message

Send a WhatsApp message to a phone number or contact. The first message to a customer must be an approved template.

**Inputs**

- Channel (`channel_id`, number, required): The channel to send from.
- Phone (`phone`, text): The customer's phone number in international format. Fill in this or Contact.
- Contact (`contact_id`, number): An existing contact to send to, instead of a phone number.
- Name (`name`, text): The customer's name, used when a new contact is made.
- Template (`template_id`, number): An approved template to send.
- Template values (`params`, list): The values for the template's placeholders, in order.
- Text (`text`, text): Free text, which WhatsApp allows only within 24 hours of the customer's last message.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "contact_id": 1842,
    "conversation_id": 12,
    "message": {
      "author": "API",
      "body": "Your order is on its way",
      "channel_id": 3,
      "conversation_id": 12,
      "created_at": "2026-11-20 13:04:10",
      "delivered_at": "2026-11-20 13:04:12",
      "direction": "out",
      "id": 90212,
      "kind": "text",
      "read_at": "2026-11-20 13:05:00",
      "sent_at": "2026-11-20 13:04:10",
      "status": "sent",
      "template_id": 7
    },
    "ok": true
  }
}
```

### Track event

Record something a customer did, such as order_paid, to start matching automation journeys.

**Inputs**

- Event (`event`, text, required): The event's name, such as order_paid.
- Phone (`phone`, text): The customer's phone number. A phone, email or your customer ID is needed.
- Email (`email`, text): The customer's email address.
- Your customer ID (`external_id`, text): The customer's ID in your own system.
- Name (`name`, text): The customer's name.
- Details (`props`, object): Details of the event as name and value pairs, such as total and order_id.

**Outputs**

- `data` (object): The response from RASSEL.

**Example output**

```json
{
  "data": {
    "contact_id": 1842,
    "event": 311,
    "ok": true
  }
}
```

### Update contact

Change a contact's details. Only the fields you fill in change.

**Inputs**

- Contact (`id`, number, required): The contact to change.
- Name (`name`, text): Their name, up to 200 characters.
- Email (`email`, text): Their email address.
- Company (`company`, text): Their company.
- Lifecycle stage (`lifecycle`, text): Their lifecycle stage, such as lead or customer.
- Pipeline stage (`stage`, text): Their pipeline stage, such as won.
- Notes (`notes`, text): Notes about them, up to 2,000 characters.
- Tags (`tags`, list): Their full list of tags. It replaces the tags they have.

**Outputs**

- `data` (object): The contact.

**Example output**

```json
{
  "data": {
    "blocked": false,
    "company": "Rose Store",
    "created_at": "2026-10-02 09:14:55",
    "email": "salem@example.com",
    "id": 1842,
    "lifecycle": "customer",
    "name": "Salem Alotaibi",
    "notes": "Prefers WhatsApp",
    "opted_out": false,
    "phone": "+966551234567",
    "stage": "won",
    "tags": [
      "VIP"
    ]
  }
}
```

### Update conversation

Change a conversation's status or assign it to an agent.

**Inputs**

- Conversation (`id`, number, required): The conversation's ID.
- Status (`status`, text): The new status. One of: `open`, `pending`, `closed`.
- Assign to (`assignee_id`, number): The agent to assign it to.

**Outputs**

- `data` (object): The conversation.

**Example output**

```json
{
  "data": {
    "assignee": {
      "id": 5,
      "name": "Noura"
    },
    "channel": {
      "id": 3,
      "name": "Sales WhatsApp",
      "number": "+966500000000",
      "type": "whatsapp"
    },
    "closed_at": "2026-11-20 14:00:00",
    "contact": {
      "id": 1842,
      "name": "Salem Alotaibi",
      "phone": "+966551234567"
    },
    "created_at": "2026-11-20 12:58:41",
    "id": 12,
    "last_at": "2026-11-20 13:02:10",
    "last_message": "When will my order arrive?",
    "priority": "high",
    "status": "open",
    "unread": 2
  }
}
```
