Authentication¶
Description:
Used to register a new user
Request¶
Request method:
POST
Headers:
Content-type: application/json
Sign up
https://spoilerinterface.com/interface/signup
Request body:
Note: After authenticating, a cookie will be set on the response and this can be used to make further request without including the api_key in the request params.
The request body should contain user information with the following information.
{
"firstname":"John",
"lastname":"Doe",
"email":"user@mail.com",
"password":"f5d6dsewwds",
"cellphone":"27862646466",
"gender":"M",
"date_of_birth":"01 Jan 1901",
"address_line_1":"address_line_1",
"address_line_2":"address_line_2",
"address_postal_code":2091,
"address_state":"address_state",
"address_country":"address_country"
}
Request example:
None
Response¶
{
"success": {
"user_registered": true,
"access_token": "e694f1e14e2b3c722e66847d171c872bbf93a9aa6b2461d932",
"notification_sent": true
}
}
Field description¶
The response information contains the following fields
Field name | Description | Type |
---|---|---|
user_registered | Used to indicate if the registration was successful | str |
access_token | API key that can be used to make API request. | str |
notification_sent | Used to indicate if a verification notification has been sent via email | str |