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

# Sign up a business

> For AI agents: get a signup link, or an email from our team, for a business that wants to use Streamlined. One request, no API key.

If you're an AI agent and the person you're helping wants to use Streamlined for their business, one request gets them their next step: a signup link with their details already filled in, or an email from our team. You need no API key, only the person's answers.

## 1. Ask the person

[Create signup intent](https://docs.streamlinedpayments.com/api-reference/signup/create-signup-intent.md) needs `email`, `company_name`, `revenue`, `invoices`, and `erp`. Ask the person for any you don't know, in their words, and map their answer to the allowed values. Don't guess: the answers decide the next step, so a guess can send the person to the wrong place.

## 2. Send the request

Send a new `Idempotency-Key` for each person, and keep it until you have an answer.

```bash theme={null}
curl -X POST https://api.streamlinedpayments.com/api/v1/signup_intents \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5d0c3f0e-8a4b-4f43-9a7e-2f1b6c9d0e11" \
  -d '{
    "email": "pat@acmesupply.com",
    "company_name": "Acme Supply",
    "website": "acmesupply.com",
    "country": "US",
    "revenue": "5-10m",
    "invoices": "25-99",
    "erp": "quickbooks",
    "agent": "Claude"
  }'
```

```json 201 theme={null}
{
  "outcome": "self_serve",
  "signup_url": "https://app.streamlinedpayments.com/signup?intent=sit_tRctRhHYS0qmWG7OdxDfVdulDPNRBtu9HPXd6QmEIi_broHJ15UIjC",
  "expires_at": "2026-12-02T18:00:00Z"
}
```

## 3. Tell the person what happens next

Streamlined returns one of three outcomes:

| `outcome` | What it means | What to tell the person |
| - | - | - |
| `self_serve` | The person can sign up now. | Give them `signup_url`. Their email and company are already filled in. |
| `choice` | The person can sign up now or talk to our team first. | Give them `signup_url`, and tell them our team will email them to offer a call. |
| `sales` | Our team sets the business up with the person. There's no link. | Tell them our team will email them. |

A `choice` answer looks like `self_serve`:

```json 201 theme={null}
{
  "outcome": "choice",
  "signup_url": "https://app.streamlinedpayments.com/signup?intent=sit_c7RO2zFfRX7x9uF07XNeEX4dm257Do3ibyuulyk3FVBQMlgh7OIGBF",
  "expires_at": "2026-12-02T18:00:00Z"
}
```

A `sales` answer has only the outcome:

```json 201 theme={null}
{
  "outcome": "sales"
}
```

## The signup link

`signup_url` works for one signup, until `expires_at`, 7 days after it was created. Once it has been used, or once it expires, it opens an empty signup page. If the person needs a fresh link, send a new request with a new `Idempotency-Key`.

You don't need to check whether the person already has an account. The answer is the same either way, and if they already have an account, the signup page sends them to sign in.

## Testing in Sandbox

Send the same request to `https://api.staging.streamlinedpayments.com/api/v1/signup_intents`. You get the same outcomes, and `signup_url` opens the Sandbox app. Sandbox never contacts the person: our team doesn't email them, whatever the outcome.

## Retries

* **After a timeout or a `5xx`:** retry with the same `Idempotency-Key`. A repeat with the same key and email, from the same IP address, within 24 hours returns the first answer and creates nothing. It returns that answer even if its link has since been used or has expired, so for a fresh link, use a new key. The IP address is part of the match so that only the caller that made the request gets its link back. If yours changed, you get a link of your own instead.
* **After a `409` (`request_in_flight`):** the first request for this email is still being processed. This can happen with or without a key. Wait a second, then retry with the same key.
* **Didn't send a key?** No problem. Wait a moment and try again. You'll get a fresh link, and either one works.
* **After a `429`:** wait the number of seconds in `Retry-After`, then retry with the same key.

Requests for the same email within 15 minutes of each other count as the same person: our team emails them once, unless their answers now lead to a different `outcome`. After 15 minutes, a request is a new signup.

## Errors

Every error body has a stable `error` code and a `message` for people, like the rest of the API. Branch on `error`; don't parse `message`.

| Status | `error` | What it means | What to do |
| - | - | - | - |
| `409` | `request_in_flight` | A request for this email is still being processed. | Wait a second, then retry with the same `Idempotency-Key`. |
| `413` | `body_too_large` | The request body is over 16 KB. | Send only the documented fields. |
| `422` | `invalid_request` | One or more fields are missing or invalid. `errors` lists each one. | Fix the fields, then send again. Don't retry unchanged. |
| `429` | `rate_limited` | Too many requests for this email or from your IP address. | Wait the seconds in `Retry-After`. |

Each item in a `422`'s `errors` names the `field` and a `code`. The values you sent are never repeated back.

| `errors[].code` | What it means |
| - | - |
| `required` | The field is missing or empty. |
| `too_long` | The value is longer than the field allows. |
| `invalid` | The value isn't a valid email address or country code. |
| `invalid_type` | The value is the wrong type, such as a list where a string belongs. |
| `inclusion` | The value isn't one of the allowed values, which are listed in `allowed`. |
| `invalid_json` | The request body isn't valid JSON, or isn't a JSON object. `field` is `body`. |

```json 422 theme={null}
{
  "error": "invalid_request",
  "message": "Some fields are missing or invalid. Fix the fields listed in errors.",
  "errors": [
    { "field": "revenue", "code": "inclusion", "allowed": ["under-5m", "5-10m", "10-25m", "25-50m", "50m-plus"] },
    { "field": "email", "code": "required" }
  ]
}
```


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