# Senja

> Collect, review and manage customer testimonials.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/senja

## Actions

### Create testimonial

Add a text or video testimonial to your Senja project.

**Inputs**

- Type (`type`, text, required): Type. One of: `text`, `video`.
- Customer name (`customer_name`, text, required): Customer name.
- Title (`title`, text): Title.
- Text (`text`, text): Text.
- Video URL (`video_url`, text): Video URL.
- Customer email (`customer_email`, text): Customer email.
- Customer company (`customer_company`, text): Customer company.
- Customer tagline (`customer_tagline`, text): Customer tagline.
- Rating (`rating`, number): Rating. From 1 to 5.
- Approved (`approved`, true/false): Approved.
- Tags (`tags`, list): Tags.

**Outputs**

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

**Example output**

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

### Delete testimonial

Permanently delete a testimonial.

**Inputs**

- Testimonial ID (`testimonial_id`, text, required): Testimonial ID.

**Outputs**

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

**Example output**

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

### Get testimonial

Get a testimonial by ID.

**Inputs**

- Testimonial ID (`testimonial_id`, text, required): Testimonial ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "approved": true,
    "customer_email": "example",
    "customer_name": "example",
    "id": "example",
    "rating": 1,
    "tags": [
      "example"
    ],
    "text": "example",
    "title": "example",
    "type": "example"
  }
}
```

### List links

List testimonial collection and invitation links.

**Inputs**: None.

**Outputs**

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

**Example output**

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

### List testimonials

List testimonials with search, ratings, tags and approval filters.

**Inputs**

- Sort (`sort`, text): Sort. One of: `date`, `rating`.
- Order (`order`, text): Order. One of: `asc`, `desc`.
- Approved (`approved`, true/false): Approved.
- Rating (`rating`, number): Rating. From 1 to 5.
- Type (`type`, text): Type. One of: `text`, `video`.
- Tags (`tags`, list): Tags.
- Query (`query`, text): Query.
- Lang (`lang`, text): Lang.
- Page (`page`, number): Page. At least 1.
- Limit (`limit`, number): Limit. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "testimonials": [
      {
        "approved": true,
        "customer_email": "example",
        "customer_name": "example",
        "id": "example",
        "rating": 1,
        "tags": [
          "example"
        ],
        "text": "example",
        "title": "example",
        "type": "example"
      }
    ],
    "total": 1
  }
}
```

### Update testimonial

Approve a testimonial or change its tags.

**Inputs**

- Testimonial ID (`testimonial_id`, text, required): Testimonial ID.
- Approved (`approved`, true/false): Approved.
- Add tags (`add_tags`, list): Add tags.
- Remove tags (`remove_tags`, list): Remove tags.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "approved": true,
    "customer_email": "example",
    "customer_name": "example",
    "id": "example",
    "rating": 1,
    "tags": [
      "example"
    ],
    "text": "example",
    "title": "example",
    "type": "example"
  }
}
```
