> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asteroid.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Profiles

> Who a workflow signs in as. What a login profile holds, the Logins page, and how profile groups rotate profiles.

A **login profile** holds everything a workflow needs to sign in and act as one identity. If the
[environment](https://docs.asteroid.ai/concepts/environments.md) is the machine a workflow runs on, a profile is an account on
that machine. On the API, name a profile with `profileId` and a profile group with
`profileGroupId`. Older fields and endpoints call a profile group an agent profile pool.

A profile carries:

* attached [secrets](https://docs.asteroid.ai/concepts/credentials.md) (usernames and passwords with optional TOTP seeds, API keys, cards, custom secrets)
* an email inbox
* starting cookies
* a sticky IP: one dedicated US IP for its browser runs

A profile is reusable. Many workflows can share one profile, and one workflow can run with a different profile on every execution.

Proxy, captcha solving, stealth, cache persistence and extensions live on the
[environment](https://docs.asteroid.ai/concepts/environments.md#custom-environments) the workflow runs on, not on the profile.
A workflow with no custom environment runs on a
[base environment](https://docs.asteroid.ai/concepts/environments.md#how-workflows-environments-and-profiles-connect),
which accepts any profile.

## Sticky IP

Turn on **Sticky IP** in the profile's **Signing** section. Browser runs on the profile then
use one dedicated US IP, when the environment uses the managed proxy or no proxy. An
environment with any other proxy, or a gateway, keeps using that instead. A sticky IP
always uses extra stealth. Captcha solving follows the environment.

The first run on a sticky profile saves the browser profile, whatever the environment's
cache settings, because a saved session ties the IP to it. Later runs follow the
environment: with **Executions save browser state** off, they keep the IP and save nothing.

Changing the setting clears the profile's saved browser state, such as cookies, so the next
run starts signed out. It is refused while a run uses the profile.

## In the platform

Open **Logins** in the sidebar. It has four tabs.

| Tab | What it holds |
| - | - |
| **Profiles** | One card or row per profile. Each shows the portals it signs in to, by secret key. |
| **Profile groups** | Groups of interchangeable profiles. See [Profile groups](#profile-groups). |
| **Secrets** | The organization's [secrets](https://docs.asteroid.ai/concepts/credentials.md), and the templates they are built from. |
| **Requests** | [Requests](https://docs.asteroid.ai/integrate/collect-credentials.md) sent to other people to fill in a secret. |

Click **Create a login profile** to add one. The form walks through **Details**, **Secrets**
and **Email inbox**. Click **Ask someone for a login** to send a request instead.

Click a profile to open its drawer. It has four sections:

| Section | What it shows |
| - | - |
| **Overview** | Name, creation date, ID, and the workflows that recently ran as it. |
| **Secrets** | The attached secrets. **Add existing** attaches a saved one. **New secret** creates one. |
| **Email inbox** | The inbox address and the emails it received. See [Email inbox](https://docs.asteroid.ai/concepts/emails.md). |
| **Signing** | Its sticky IP, its starting cookies and, for admins, its fingerprint. |

Click **Edit** in the drawer header to turn every section into its form, then save once.

Starting cookies apply to runs on a browser environment without settings of its own, and
to every run on a Linux or Windows environment. A browser environment with settings supplies
the cookies, even when its list is empty.

## Choosing a profile for a run

An [execution](https://docs.asteroid.ai/concepts/executions.md) uses at most one profile.

The workflow's environment decides which profiles may run. The trigger picks one of them.

| Environment | What the trigger must send |
| - | - |
| Base, or custom with no profile rows | Any profile, any profile group, or nothing |
| Custom with one row | Nothing, or that row |
| Custom with several rows | One of the rows. Nothing gets a 400. |

The list belongs to the environment. Every workflow on the same environment shares it. The run form
lists only the allowed rows. See [Profile rows](https://docs.asteroid.ai/concepts/environments.md#profile-rows) and
[How a run is routed](https://docs.asteroid.ai/concepts/environments.md#how-a-run-is-routed).

On the API, pass the profile ID (`profileId`):

```bash theme={null}
curl -X POST https://odyssey.asteroid.ai/agents/v2/workflows/YOUR_WORKFLOW_ID/execute \
  -H "X-Api-Key: $ASTEROID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputs": { "account": "acme" },
    "profileId": "YOUR_PROFILE_ID"
  }'
```

Pass a profile group (`profileGroupId`) instead to let Asteroid choose a profile from a [profile group](#profile-groups).

> [!WARNING]
>
> `profileId` and `profileGroupId` are mutually exclusive. Pass one or the other, never both. The
> older `agentProfileId` and `agentProfilePoolId` still work but are deprecated.

See [Call a workflow from your code](https://docs.asteroid.ai/integrate/call-a-workflow.md) for the full execute call.

## Profile configuration

> [accordion] Inbox email prefix
>
> Every profile gets an inbox at `{prefix}@agentmail.asteroid.ai`. The default prefix is the profile's UUID. Set a prefix to get a readable address. Set it as **Inbox address** when you create or edit the profile. See [Email inbox](https://docs.asteroid.ai/concepts/emails.md).

Create and manage profiles on the platform, through the API, or through the SDKs. See the [API reference](https://docs.asteroid.ai/api-reference/overview.md).

> [!WARNING]
>
> Deleting a profile affects every workflow that references it. Check that no live automation depends on it first.

## Credentials and 2FA

A profile does not store secret values itself. It attaches secrets from the organization's
**Secrets** tab. The profile then exposes `##ITEM_KEY.FIELD##` placeholders. A profile cannot
attach two secrets that share a key.

On the API, attach secrets (`vaultItemIds`) on create or update. On MCP, create them with
`secrets_create` and attach them with `profile_update`. Profile `credentials*` fields are
deprecated.

The same secret can attach to many profiles. See [Secrets & 2FA](https://docs.asteroid.ai/concepts/credentials.md) for
secret kinds, placeholders, and TOTP seeds.

## Profile groups

A **profile group** holds interchangeable logins for one portal, with the same permissions. You
point a run at the group, and Asteroid picks a profile from it.

Profile groups solve four problems:

* **Credential conflicts**: stop two executions using one account at the same time.
* **Rate limits**: spread requests across several accounts.
* **Availability**: fall back to another profile when one is busy.
* **Manual selection**: remove the choice from every execute call.

Create a group on the **Profile groups** tab with **New profile group**. The form walks through
**Details** and **Members**. The group's drawer has **Members** and **Settings** sections.

### Selection strategies

A profile group uses one of two strategies. The drawer shows it as **Picks**.

| Strategy | Behaviour | Use it for |
| - | - | - |
| **Least recently used** (default) | Picks the profile idle for longest | Spreading load evenly across accounts |
| **Most recently used** | Picks the profile used most recently | Keeping one session warm and cached |

Least recently used rotates fairly. With profiles A, B and C, an execution after B picks whichever of A or C idled longest.

Most recently used concentrates work on fewer profiles. It keeps browser state and authenticated sessions warm.

### Concurrent use

`allowConcurrentUse` decides whether a busy profile can be picked again. The drawer shows it as
**Shared use**.

| Value | Behaviour |
| - | - |
| `false` (default) | Skip any profile tied to an active run. Strict credential isolation. |
| `true` | Pick any profile, busy or not. Maximum availability. |

> [!WARNING]
>
> With `allowConcurrentUse: false`, a request fails immediately with a 429 when every profile in the group is busy. The error says no profile is available. Add more profiles, allow concurrent use, or send `"onCapacityLimit": "queue"` on the execute call. The execution is then accepted as `queued` and starts when a profile frees. See [Queue when capacity is full](https://docs.asteroid.ai/integrate/call-a-workflow.md#queue-when-capacity-is-full).

### Group constraints

> [accordion] Mutual exclusivity
>
> An execute call takes `profileId` or `profileGroupId`, never both.
>
> ```json theme={null}
> { "profileGroupId": "YOUR_PROFILE_GROUP_ID" }
> ```

> [accordion] Organization scope
>
> * Every profile in a group belongs to the same organization.
> * A group name is unique within an organization.
> * A profile from another organization cannot join the group.

> [accordion] Availability
>
> * A group needs at least one profile before an execution can use it.
> * Remove the last profile and no new execution can use the group.

> [accordion] Group size
>
> Match the group size to your parallelism. Five simultaneous runs need at least five profiles. Add one or two spare profiles for peak load.

A profile group works with every profile feature: attached secrets, TOTP seeds, email inbox, and browser state. The selected profile's configuration applies exactly as if you had named it yourself.

> [card] [Call a workflow](https://docs.asteroid.ai/integrate/call-a-workflow.md)
>
> Pass a profile or a profile group on the execute call

> [card] [Secrets & 2FA](https://docs.asteroid.ai/concepts/credentials.md)
>
> How Asteroid stores and uses secrets

> [card] [Email inbox](https://docs.asteroid.ai/concepts/emails.md)
>
> The email inbox each profile owns

> [card] [Environments](https://docs.asteroid.ai/concepts/environments.md)
>
> Where the workflow runs, and its browser settings

> [card] [Security](https://docs.asteroid.ai/support-security/security.md)
>
> How Asteroid protects stored credentials


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.