> For the complete documentation index, see [llms.txt](https://docs.baas.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.baas.sh/baas-console/action-plugins.md).

# Plugin Settings

Activate and configure the plugins automation actions use, including the SMTP transport, Firebase credentials, and per-plugin defaults.

Each type of [automation action](/baas-console/automations/actions.md) runs on a plugin, configured here. A plugin holds the SMTP server your emails leave through, the Firebase credentials behind your pushes, and the defaults for API calls and functions.

Open **Console → Settings → Plugin Settings**, then select the plugin's tab: **API**, **Email**, **Function**, **Notification**, **Stellar** or **Transaction**.

Each tab holds a **Config (JSON)** editor, a **Save configuration** button, an **Enable plugin** toggle, and an **Active** or **Inactive** status badge. A **Setup guide** panel appears when the plugin provides one, with a checklist to complete before enabling production traffic.

Anything specific to a single action, like a recipient or a URL, stays on the action itself.

{% hint style="info" %}
**Configuration is project-wide.** Every action of a type shares these settings. Changes can affect runs already in progress.
{% endhint %}

## Ready out of the box or needs setup

| Plugin           | Out of the box                         | To do                                                          |
| ---------------- | -------------------------------------- | -------------------------------------------------------------- |
| **API**          | Active, with built-in request defaults | Nothing                                                        |
| **Function**     | Active, with built-in runtime defaults | Nothing                                                        |
| **Transaction**  | Active, no settings at all             | Nothing                                                        |
| **Email**        | Inactive                               | Save the SMTP transport, then activate                         |
| **Notification** | Inactive                               | Save the Firebase credentials, then activate                   |
| **Stellar**      | Inactive, no settings to fill in       | Activate, then fund the account on the network you want to use |

The **Active** or **Inactive** badge shows whether the plugin is enabled. If setup is missing, a **Configuration required** notice explains what to save before enabling it.

## Activate and deactivate

* For Email and Notification, fill in **Config (JSON)** and click **Save configuration**, then turn on **Enable plugin**.
* Before enabling a plugin, save any edited values or click **Discard changes**. Discarding returns to the saved configuration, or to the initial template if nothing has been saved.
* You can edit and save configuration while a plugin is inactive.
* Enabling a plugin lets you save new actions of its type in automations.
* You can deactivate a plugin once no automation action uses it. If it is still in use, the Console reports the blocking dependencies and keeps it active.

## Email

The Email plugin sends through your own SMTP server. Its configuration holds the transport, plus optional sender defaults:

```json
{
  "transport": {
    "host": "smtp.example.com",
    "port": 465,
    "secure": true,
    "auth": { "user": "username", "pass": "password" }
  },
  "from": "Console Alerts <alerts@example.com>",
  "replyTo": "support@example.com"
}
```

Set `secure` to match the port, following the SMTP convention: `true` with `465`, `false` with `587` or `25`. **Save configuration** rejects mismatched pairs.

`from` is the sender used whenever an [Email action](/baas-console/automations/actions/email.md) leaves its From field empty.

## Notification

The Notification plugin delivers through Firebase Cloud Messaging, using your own Firebase project's credentials.

### Set up Firebase credentials

{% stepper %}
{% step %}
In Firebase, open **Project settings → Service accounts** and click **Generate new private key**. Firebase's [Admin SDK setup](https://firebase.google.com/docs/admin/setup) covers it.
{% endstep %}

{% step %}
In the **Config (JSON)** editor, set `credentialMode` to `service_account`.
{% endstep %}

{% step %}
Copy the key's values into a `serviceAccount` object, renaming them to camelCase: `project_id` → `projectId`, `client_email` → `clientEmail`, `private_key` → `privateKey`.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
**The template starts in `application_default` mode.** For this setup, change it to `service_account`.
{% endhint %}

```json
{
  "credentialMode": "service_account",
  "serviceAccount": {
    "projectId": "my-app",
    "clientEmail": "firebase-adminsdk-...@my-app.iam.gserviceaccount.com",
    "privateKey": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n"
  },
  "maxBatchSize": 100,
  "defaultTtlSeconds": 3600,
  "androidPriority": "high",
  "androidChannelId": "alerts",
  "apnsSound": "default"
}
```

The service account is a secret: never ship it in your app.

{% hint style="warning" %}
**Use the same Firebase project on both sides.** The web config in your app and the service account here must come from the same project, or delivery fails with `messaging/mismatched-credential`.
{% endhint %}

The delivery settings ride along in the same object:

| Setting             | Template value | What it does                                                    |
| ------------------- | -------------- | --------------------------------------------------------------- |
| `maxBatchSize`      | `100`          | Tokens sent per FCM call; longer lists are split                |
| `defaultTtlSeconds` | `3600`         | How long a push waits for an offline Android device, in seconds |
| `androidPriority`   | `high`         | Delivery priority on Android                                    |
| `androidChannelId`  | `alerts`       | Notification channel on Android                                 |
| `apnsSound`         | `default`      | Notification sound on iOS                                       |

Once the plugin is active, the [Notification action](/baas-console/automations/actions/notification.md) does the sending, and the [Push notifications](/baas-sdk/integrations/push-notifications.md) guide shows how your app registers the devices on the receiving end.

## Stellar

The Stellar plugin lets automations send payments and call or deploy Soroban contracts on Mainnet and Testnet.

Select **Stellar** and turn on **Enable plugin**. There are no settings to fill in. Leave the configuration editor empty (`{}`). Activation creates the project's Stellar account for both networks. Disabling and re-enabling the plugin keeps the same account.

Before sending transactions, get the account address from your project's signing service and fund it on the network you want to use. The plugin does not fund it automatically. See [Stellar](/baas-console/automations/actions/stellar.md#send-a-payment) for a payment example.

## API defaults

The API plugin runs on built-in defaults, adjustable here:

| Setting                 | Default                                | What it does                               |
| ----------------------- | -------------------------------------- | ------------------------------------------ |
| `defaultHeaders`        | `{"Content-Type": "application/json"}` | Headers added to every request             |
| `defaultTimeoutSeconds` | `15`                                   | Timeout when the action sets none          |
| `userAgent`             | `BaaS Console API/1.0`                 | User-Agent when your headers don't set one |
| `followRedirects`       | `false`                                | Whether redirects are followed             |
| `maxRedirects`          | `5`                                    | Redirect cap when enabled                  |
| `maxResponseBytes`      | `65536`                                | Response size cap (64 KiB)                 |

An [API action](/baas-console/automations/actions/api.md) can override these: its Timeout replaces `defaultTimeoutSeconds`, and its Headers merge over `defaultHeaders`, key by key.

## Function defaults

The Function plugin's runtime defaults:

| Setting            | Default | What it does                             |
| ------------------ | ------- | ---------------------------------------- |
| `defaultTimeoutMs` | `30000` | Timeout when the action sets none        |
| `maxResultBytes`   | `16384` | Cap on a function's return size (16 KiB) |

A [Function action](/baas-console/automations/actions/function.md) can override the default: its Timeout replaces `defaultTimeoutMs`.

{% hint style="info" %}
**The 64 KiB chain cap still applies.** Raising `maxResponseBytes` or `maxResultBytes` lets a step read or return more, but a result over 64 KiB reaches the next step as `null`. See [Context object](/baas-console/automations/reference/context.md).
{% endhint %}

## Next

* [Email action](/baas-console/automations/actions/email.md): send your first email from an automation.
* [Notification action](/baas-console/automations/actions/notification.md): send your first push from an automation.
