---
title: "Create an account and organization"
method: POST
path: "/auth/signup"
tags: ["Identity"]
---

# Create an account and organization

`POST /auth/signup`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/auth/signup`
- Auth: none required

## Request body

- object
  - `email` string, email, required
  - `password` string, required
  - `name` string
  - `org_name` string
  - `referral_token` string: Optional signed first-touch attribution token. Invalid, expired, or tampered values never block signup and receive no attribution.

## Response `201`

Account and organization created.

## Other responses

- `400`: Invalid account input.
- `429`: Signup anti-abuse limit reached.

---

[API](https://skmtc.dev/pyai/apis/pyai-api.md) · [All operations](https://skmtc.dev/pyai/apis/pyai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pyai/apis/pyai-api/revisions/271a1539185b?raw)
