# Sign up

Source: https://immiscible.fly.dev/docs/api/post-api-auth-signup

`POST /api/auth/signup`

Create an account (and, on hosted plans, a workspace). In self-hosted mode sign-up closes once the first owner exists.

## Authentication

Public. No credential. Public routes are rate limited per address.

## Request

curl:

```bash
curl -X POST "https://immiscible.fly.dev/api/auth/signup" \
  -H "content-type: application/json" \
  -d '{
    "email": "sam@acme.example",
    "password": "a long passphrase",
    "name": "Sam Patel"
  }'
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/api/auth/signup', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
  },
  body: JSON.stringify({
    email: 'sam@acme.example',
    password: 'a long passphrase',
    name: 'Sam Patel',
  }),
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import requests

res = requests.post(
    "https://immiscible.fly.dev/api/auth/signup",
    headers={
        "content-type": "application/json",
    },
    json={
        "email": "sam@acme.example",
        "password": "a long passphrase",
        "name": "Sam Patel",
    },
)
print(res.status_code, res.json())
```
