Skip to main content
POST
/
v1
/
auth
/
register
Register a new account
curl --request POST \
  --url https://api.shelv.dev/v1/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "jsmith@example.com",
  "name": "<string>",
  "password": "<string>"
}
'
import requests

url = "https://api.shelv.dev/v1/auth/register"

payload = {
    "email": "jsmith@example.com",
    "name": "<string>",
    "password": "<string>"
}
headers = {"Content-Type": "application/json"}

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

print(response.text)
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({email: 'jsmith@example.com', name: '<string>', password: '<string>'})
};

fetch('https://api.shelv.dev/v1/auth/register', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({email: 'jsmith@example.com', name: '<string>', password: '<string>'})
};

fetch('https://api.shelv.dev/v1/auth/register', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "message": "<string>"
}
{
  "code": "<string>",
  "message": "<string>",
  "details": "<unknown>"
}

Body

application/json
email
string<email>
required
name
string
required
Minimum string length: 1
password
string
required
Minimum string length: 8

Response

Email sent

message
string
required