# Re:amaze

> Read Re:amaze conversations, messages, contacts and reports, and manage contact notes.

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

## Actions

### Add contact note

Add contact note in Re:amaze.

**Inputs**

- Contact (`contact`, text, required): Contact email address or phone number.
- Note (`note`, text, required): Internal note text.

**Outputs**

- `data` (list): The response from Re:amaze.

**Example output**

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

### Delete contact note

Delete contact note in Re:amaze.

**Inputs**

- Contact (`contact`, text, required): Contact email address or phone number.
- Note ID (`note_id`, text, required): Note id.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {}
}
```

### Get article

Get article from Re:amaze.

**Inputs**

- Article slug (`article_slug`, text, required): Article slug.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "author": {
      "email": "example",
      "name": "example"
    },
    "body": "example",
    "created_at": "example",
    "slug": "example",
    "status": 1,
    "title": "example",
    "topic": {
      "name": "example",
      "slug": "example"
    },
    "updated_at": "example",
    "url": "example"
  }
}
```

### Get channel

Get channel from Re:amaze.

**Inputs**

- Channel slug (`channel_slug`, text, required): Channel slug.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "channel": 1,
    "created_at": "example",
    "email": "example",
    "last_verified": "example",
    "name": "example",
    "reply_from_origin": true,
    "settings_reply_from_name": "example",
    "settings_signature": "example",
    "slug": "example",
    "spam_filter_enabled": true,
    "updated_at": "example",
    "verification_email": "example",
    "verified": true,
    "visibility": 1
  }
}
```

### Get conversation

Get conversation from Re:amaze.

**Inputs**

- Conversation slug (`conversation_slug`, text, required): Conversation slug.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "author": {
      "email": "example",
      "name": "example"
    },
    "category": {
      "channel": 1,
      "email": "example",
      "name": "example",
      "slug": "example"
    },
    "created_at": "example",
    "data": {
      "custom_attribute": "example"
    },
    "followers": [
      {
        "email": "example",
        "name": "example"
      }
    ],
    "last_customer_message": {
      "body": "example",
      "created_at": "example"
    },
    "last_staff_message": {
      "body": "example",
      "created_at": "example"
    },
    "message": {
      "body": "example"
    },
    "slug": "example",
    "status": 1,
    "subject": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### Get response template

Get response template from Re:amaze.

**Inputs**

- Template ID (`template_id`, text, required): Template id.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "body": "example",
    "id": 1,
    "name": "example",
    "response_template_group": {
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get response time report

Get response time report from Re:amaze.

**Inputs**

- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {}
}
```

### Get staff report

Get staff report from Re:amaze.

**Inputs**

- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {}
}
```

### Get tags report

Get tags report from Re:amaze.

**Inputs**

- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {}
}
```

### Get volume report

Get volume report from Re:amaze.

**Inputs**

- Start date (`start_date`, date): Start date.
- End date (`end_date`, date): End date.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {}
}
```

### List articles

List articles from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "articles": [
      {
        "author": {},
        "body": "example",
        "created_at": "example",
        "slug": "example",
        "status": 1,
        "title": "example",
        "topic": {},
        "updated_at": "example",
        "url": "example"
      }
    ],
    "page_count": 1,
    "page_size": 1,
    "total_count": 1
  }
}
```

### List channels

List channels from Re:amaze.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "channels": [
      {
        "channel": 1,
        "created_at": "example",
        "email": "example",
        "last_verified": "example",
        "name": "example",
        "reply_from_origin": true,
        "settings_reply_from_name": "example",
        "settings_signature": "example",
        "slug": "example",
        "spam_filter_enabled": true,
        "updated_at": "example",
        "verification_email": "example",
        "verified": true,
        "visibility": 1
      }
    ],
    "total_count": 1
  }
}
```

### List contact notes

List contact notes from Re:amaze.

**Inputs**

- Contact (`contact`, text, required): Contact email address or phone number.

**Outputs**

- `data` (list): The response from Re:amaze.

**Example output**

```json
{
  "data": [
    {
      "created_at": "example",
      "creator": {
        "email": "example",
        "name": "example"
      },
      "id": 1,
      "note": "example",
      "updated_at": "example"
    }
  ]
}
```

### List contacts

List contacts from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.
- Sort (`sort`, text): Sort. One of: `created`.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "contacts": [
      {
        "created_at": "example",
        "email": "example"
      }
    ],
    "page_count": 1,
    "total_count": 1
  }
}
```

### List conversation messages

List conversation messages from Re:amaze.

**Inputs**

- Conversation slug (`conversation_slug`, text, required): Conversation slug.
- Page (`page`, number): Page of results, starting at 1. At least 1.
- Filter (`filter`, text): Filter. One of: `staff`, `customer`.
- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Sent by (`sent_by`, text): Sender email address.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "attachments": [
          {}
        ],
        "body": "example",
        "conversation": {},
        "created_at": "example",
        "origin": 1,
        "origin_id": "example",
        "recipients": [
          {}
        ],
        "user": {},
        "visibility": 1
      }
    ],
    "page_count": 1,
    "page_size": 1,
    "total_count": 1
  }
}
```

### List conversations

List conversations from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.
- Filter (`filter`, text): Which conversations to include. One of: `archived`, `open`, `unassigned`, `all`.
- Sort (`sort`, text): Sort by customer update or by any change. Leave empty for newest conversations first. One of: `updated`, `changed`.
- Customer email (`customer_email`, text): Customer email.
- Category (`category`, text): Channel slug.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "conversations": [
      {
        "author": {},
        "category": {},
        "created_at": "example",
        "followers": [
          {}
        ],
        "last_customer_message": {},
        "message": {},
        "slug": "example",
        "status": 1,
        "subject": "example",
        "tag_list": [
          "example"
        ]
      }
    ],
    "page_count": 1,
    "page_size": 1,
    "total_count": 1
  }
}
```

### List messages

List messages from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.
- Filter (`filter`, text): Filter. One of: `staff`, `customer`.
- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Sent by (`sent_by`, text): Sender email address.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "attachments": [
          {}
        ],
        "body": "example",
        "conversation": {},
        "created_at": "example",
        "origin": 1,
        "origin_id": "example",
        "recipients": [
          {}
        ],
        "user": {},
        "visibility": 1
      }
    ],
    "page_count": 1,
    "page_size": 1,
    "total_count": 1
  }
}
```

### List response templates

List response templates from Re:amaze.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "response_templates": [
      {
        "body": "example",
        "id": 1,
        "name": "example",
        "response_template_group": {}
      }
    ]
  }
}
```

### List satisfaction ratings

List satisfaction ratings from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.
- Rating (`rating`, number): Rating. From 1 to 5.
- Updated after (`updated_after`, date and time): Updated after.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "page_count": 1,
    "page_size": 1,
    "satisfaction_ratings": [
      {
        "assignee_id": "example",
        "comment": "example",
        "conversation_id": "example",
        "created_at": "example",
        "id": "example",
        "rating": 1,
        "updated_at": "example",
        "user_id": "example"
      }
    ],
    "total_count": 1
  }
}
```

### List staff

List staff from Re:amaze.

**Inputs**

- Page (`page`, number): Page of results, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from Re:amaze.

**Example output**

```json
{
  "data": {
    "staff": [
      {
        "email": "example",
        "name": "example"
      }
    ]
  }
}
```
