> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/t/trello.md).

# Trello

Trello is a web-based Kanban project management tool by Atlassian. OctoXLabs reads the members of the workspaces (organizations) that the API token can access and adds them to the user inventory.

## Use cases

* **Find Trello members with no directory account.** List Trello users that are not found in Active Directory. How accounts are matched depends on your user merge settings.

```
Adapters = trello AND NOT Adapters = active-directory
```

* **List Trello members by email domain.** Find accounts with an address outside your domain.

```
Adapters = trello AND NOT Email ~ <your domain>
```

## Before you begin

### Network

| Source              | Destination                       | Port | Protocol |
| ------------------- | --------------------------------- | ---- | -------- |
| OctoXLabs connector | api.trello.com (Domain parameter) | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, requests go through it.

### Required permissions

| Scope or role          | Permission | Needed for                              |
| ---------------------- | ---------- | --------------------------------------- |
| Token with read access | Read       | Listing organizations and their members |
| account (token scope)  | Read       | Reading member email addresses          |

The baseline says the token can read and write the whole account, so keep it secret. Vendor documentation: [Trello API introduction](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/).

## Create credentials in Trello

{% stepper %}
{% step %}

### Create a Power-Up

Go to `trello.com/apps/admin` and create a Power-Up, or open an existing one.
{% endstep %}

{% step %}

### Generate the API key

Open the **API Key** tab and click **Generate a new API Key**. Copy the key.
{% endstep %}

{% step %}

### Authorize a token

On the same page, click the **Token** link next to the key. Review the requested access, click **Allow**, and copy the token shown on the next page.
{% endstep %}

{% step %}

### Add the account scope (optional)

To collect member emails, generate the token with the **account** scope. Open `https://trello.com/1/authorize` with the query parameters `key` (your API key), `scope` (`read,account`), `expiration` (`never`) and `response_type` (`token`).
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default        | Description                                                           |
| --------- | -------- | ------- | -------------- | --------------------------------------------------------------------- |
| Domain    | No       | String  | api.trello.com | Trello API host, without a scheme. The connector adds `https://`.     |
| Api key   | Yes      | String  | None           | Power-Up API key. Sent as the `key` query parameter.                  |
| Api token | Yes      | String  | None           | User token. Sent as the `token` query parameter.                      |
| Proxy     | No       | String  | None           | Proxy address, used as `http://<value>` for HTTP and HTTPS. Advanced. |
| Timeout   | No       | Integer | 30             | Seconds to wait for an API response. Advanced.                        |

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                              |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------- |
| Max retries exceeded for {url}                                 | The API kept answering 429.                                                          | Run discovery again later.       |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Check the key, token and domain. |

## Change history

{% hint style="info" %}
Available starting from version 6.7.2.
{% endhint %}
