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>"
}Auth
Register a new account
Create a new Shelv account with email and password. Sends a verification code for new accounts, or an informational email if the address is already registered.
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>"
}⌘I
