# Aventri

Aventri is a offer technical solutions for event professionals to streamline their event management lifecycle through their user-friendly and customisable.

## Overview

Aventri offer technical solutions for event professionals to streamline their event management lifecycle through their user-friendly and customisable cloud-based platform.

## \*\*API Information \*\*

The Base URL used for the Aventri connector depends on the server host region your account is attached to. This is specified during authentication. The host regions and corresponding Base URLs are as follows:
\*\*- Asia Pacific (APAC) region - \*\*Base URL: **<https://api-apac.eventscloud.com>**
\*\*- North America (NA) region - \*\*Base URL: **<https://api-na.eventscloud.com/>**
\*\*- Europe, Middle East, Africa (EMEA) region - \*\*Base URL: **<https://api-emea.eventscloud.com/>**
More information can be found on their main [API documentation (v1.0) ](https://developer.aventri.com/#api-endpoints)site.

## Authentication

Within the builder, click on the Aventri connector to display the connector properties panel. Select the 'Auth' tab and click on the 'New authentication' button.
![Aventri authentication step 1](https://tray.ai/documentation/images/connectors/service/aventri/4ivomvz067UG7DLHC1PT6X_aventri-auth-first.png)
In the Tray.io authentication pop-up modal, name the authentication in a way that will quickly identify it within a potentially large list. For example, whether it is a Sandbox or Production auth, etc.
Consider who/ how many people will need access to this authentication when choosing where to create this authentication ('Personal' or 'Organisational').
The second page asks you for your Aventri 'Account ID',  'API key', and 'Host region'.
![Aventri authentication](https://tray.ai/documentation/images/connectors/service/aventri/3CHmF2bE7mOkTgEEG3gJFD_aventri-auth.png)
To get these fields, more information can be found in the Aventri [documentation.](https://developer.aventri.com/#getting-an-api-key)
Once you have added these fields to your Tray.io authentication pop-up window, click the 'Create authentication' button. 
Your connector authentication setup should now be complete.

## Available Operations

The examples below show one or two of the available connector operations in use.
Please see the [Full Operations Reference](#operationsFull) at the end of this page for details on all available operations for this connector.

## Example Usage

> **Info:** **TRAY POTENTIAL:** Tray is extremely flexible. By design there is no fixed way of working with it - you can pull whatever data you need from other services and work with it using our core and helper connectors.

Below is an example of a way in which you could potentially use the Aventri connector, to list all attendees for an event, loop through these attendees and retrieve information regarding each attendee.
The overall logic of the workflow is:

1. Setup using a manual trigger and List attendees
2. Add a Loop connector
3. Get attendee
   Your completed workflow should look similar to this:
   ![Final workflow](https://tray.ai/documentation/images/connectors/service/aventri/6mATrgKlPllJidqZZBqcMi_final-workflow.png)

### Step-by-step Explanation

### 1 - Manual trigger

The workflow is triggered by a Manual trigger.

### 2 - List attendees

A Aventri connector step, using the 'Lists attendees' operation, fetches all attendees for a specified event. In this example, we are listing all attendees for the 'FRONTEND SSO' event in our Aventri account.
![aventri-step-2](https://tray.ai/documentation/images/connectors/service/aventri/5fvdC4Lxi7eGKsWC5Ki2lE_aventri-step-2.png)

### 3 -Loop attendees

Loops through the attendees received from the previous step.
![Loop 1](https://tray.ai/documentation/images/connectors/service/aventri/3RsvwET5TYkTf6ruNthxRC_aventri-loop-1.png)

### 4 - Get attendee

Retrieves information on each attendee received through the loop.
![Get attendee](https://tray.ai/documentation/images/connectors/service/aventri/7GLzgeTQq8iQutKc6kRn8X_aventri-get-attendee.png)

> **Info:** \*\*BEST PRACTICES: \*\*Whenever you do decide to create your own workflow, be sure to check out some of our key articles such as:- [Using callable workflows](https://tray.ai/documentation/platform/automation-integration/building-workflows/composable-workflows/calling-other-workflows)
> - [Pagination](https://tray.ai/documentation/platform/automation-integration/advanced-use-cases/batching-queueing/pagination)
> - [Data transformation guide](https://tray.ai/documentation/platform/automation-integration/building-workflows/mapping-data/data-transformation-guide)
