> For the complete documentation index, see [llms.txt](https://docs.sparkloop.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow.md). Agents can also search and read this documentation through its [MCP server](https://docs.sparkloop.app/~gitbook/mcp).

# Signup Flow

Read a publication's Signup Flow.

## Signup Flow

A **Signup Flow** is a publication's on-site subscriber flow: the widget (or hosted page) that greets new subscribers. Its stages run in this order: [Recommendations](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/recommendations.md), [Survey](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/survey.md), [Offers](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/offers.md), then [Completion Behaviour](https://docs.sparkloop.app/api-v3/endpoints/publications/tools/signup-flow/completion-behaviour.md). Each publication has exactly one. You read it here and edit each stage on its own page.

### Get signup flow

<mark style="color:blue;">`GET`</mark> `https://api.sparkloop.app/v3/publications/:publication_uuid/tools/signup_flow`

**Path Parameters**

| Name                                                | Type   | Description             |
| --------------------------------------------------- | ------ | ----------------------- |
| publication\_uuid<mark style="color:red;">\*</mark> | String | The publication's UUID. |

**Query Parameters**

| Name                | Type   | Description                                                                                                                                                                                                                                    |
| ------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| expand              | String | `stats`, `slots`. Comma-separated, such as `expand=stats,slots`. `stats` includes per-step performance. `slots` adds each stage's slots. See the [Signup Flow Object](https://docs.sparkloop.app/api-v3/objects-schema/signup-flow-object.md). |
| from                | String | Start date (`YYYY-MM-DD`) for `stats`.                                                                                                                                                                                                         |
| to                  | String | End date (`YYYY-MM-DD`) for `stats`.                                                                                                                                                                                                           |
| stats\_grouped\_by  | String | With `expand=stats`, group the stats map by `utm_source`, `utm_campaign`, or `country_code`. Top 50 groups by visit volume. Blank/missing values appear under `"none"`. Requires `expand=stats`.                                               |
| stats\_group\_value | String | Optional. With `stats_grouped_by`, return only that one group key (a one-key map). Use `"none"` for blank/missing. Requires `stats_grouped_by`.                                                                                                |

{% tabs %}
{% tab title="200: OK" %}

```json
{
  "signup_flow": <Signup Flow Object>
}
```

{% endtab %}

{% tab title="400: Bad Request" %}

```json
{
  "error": "Unsupported `stats_grouped_by`. Valid values: utm_source, utm_campaign, country_code."
}
```

```json
{
  "error": "`stats_grouped_by` requires `expand=stats`."
}
```

```json
{
  "error": "`stats_group_value` requires `stats_grouped_by`."
}
```

```json
{
  "error": "`from` and `to` require `expand=stats`."
}
```

{% endtab %}

{% tab title="404: Not Found" %}

```json
{
  "error": "Resource not found."
}
```

{% endtab %}
{% endtabs %}
