---
title: "Sign up"
---

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

# Sign up

Path: Simplcron API › Session

`POST /auth/signup`

Create an account with a workspace and default project. The console receives a browser session cookie. Supply inviteCode when the signup policy is invite.

## Request body

_Required._

- `email` (`signup.email`; string, required)
  - format: `email`
- `password` (`signup.password`; string, required)
  - format: `password` · minLength: `15`
- `workspaceName` (`signup.workspaceName`; string, optional)
  - maxLength: `80` · minLength: `1`
- `inviteCode` (`signup.inviteCode`; string, optional) — Required for invite-only staging signup.
  - format: `password` · maxLength: `256`

## Example request

```json
{
  "email": "user@example.com",
  "password": "pa$$word_qwerty",
  "workspaceName": "string",
  "inviteCode": "pa$$word"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url '<base-url>/auth/signup' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "user@example.com",
  "password": "pa$$word_qwerty",
  "workspaceName": "string",
  "inviteCode": "pa$$word"
}
'
```

### TypeScript

```typescript
const url = '<base-url>/auth/signup';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    email: 'user@example.com',
    password: 'pa$$word_qwerty',
    workspaceName: 'string',
    inviteCode: 'pa$$word'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/auth/signup"

payload = {
    "email": "user@example.com",
    "password": "pa$$word_qwerty",
    "workspaceName": "string",
    "inviteCode": "pa$$word"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 201

Session cookie and new workspace

#### Example

```json
{
  "user": {
    "id": "string",
    "email": "user@example.com"
  },
  "workspace": {
    "id": "string",
    "name": "string"
  },
  "project": {
    "id": "string",
    "name": "string"
  },
  "environment": "production"
}
```

- `user` (`signup.response.201.user`; object, required)
  - `id` (`signup.response.201.user.id`; string, required)
  - `email` (`signup.response.201.user.email`; string, required)
    - format: `email`
- `workspace` (`signup.response.201.workspace`; object, required)
  - `id` (`signup.response.201.workspace.id`; string, required)
  - `name` (`signup.response.201.workspace.name`; string, required)
    - maxLength: `80` · minLength: `1`
- `project` (`signup.response.201.project`; object, required)
  - `id` (`signup.response.201.project.id`; string, required)
  - `name` (`signup.response.201.project.name`; string, required)
    - maxLength: `80` · minLength: `1`
- `environment` (`signup.response.201.environment`; string, required)
  - one of `"production"`, `"development"`

### 400

Invalid input

#### Example

```json
{
  "error": "string"
}
```

- `error` (`signup.response.400.error`; string, required)

### 403

Signup is closed, the access code is missing or invalid, or the request's origin is disallowed

#### Example

```json
{
  "error": "string"
}
```

- `error` (`signup.response.403.error`; string, required)

### 409

Unable to create account

#### Example

```json
{
  "error": "string"
}
```

- `error` (`signup.response.409.error`; string, required)

### 429

Too many attempts

#### Example

```json
{
  "error": "string"
}
```

- `error` (`signup.response.429.error`; string, required)


Source: https://simplcron.dev/docs/api/signup/index.md
