POST
/
api
/
v1
/
auth
/
signup
Create a new User
const url = 'https://api.gnosispay.com/api/v1/auth/signup';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"authEmail":"jsmith@example.com","otp":"<string>","referralCouponCode":"<string>","marketingCampaign":"<string>","partnerId":"<string>"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "id": "<string>",
  "token": "<string>",
  "hasSignedUp": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

User was created successfully

The response is of type object.