Sign up for a staging account
/auth/signupBearer tokenSelf-serve signup. Creates the account and sends a verification code. On staging the code is also returned in the response so the flow can be completed without an inbox; in production it is email-only.
Request body
- emailstring (email)required
- passwordstringrequired
Requires upper, lower, number and special characters.
- firstNamestringrequired
- lastNamestringrequired
- companyNamestring
- intendedUseCasestring
- waitlistReasonstring
Responses
201Account created; verification code issued
Response follows the unified success / data / meta / error envelope.
400Validation failed
Response follows the unified success / data / meta / error envelope.
409An account with that email already exists
Response follows the unified success / data / meta / error envelope.
curl -X POST https://core-staging.coinbax.com/auth/signup \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "developer@example.com",
"password": "string",
"firstName": "string",
"lastName": "string",
"companyName": "string",
"intendedUseCase": "string",
"waitlistReason": "string"
}'const response = await fetch('https://core-staging.coinbax.com/auth/signup', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.ACCESS_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"email": "developer@example.com",
"password": "string",
"firstName": "string",
"lastName": "string",
"companyName": "string",
"intendedUseCase": "string",
"waitlistReason": "string"
}),
});
const result = await response.json();