How to signup a new user
The easy steps to get the needed data to create a new StreetLib user
To create a new user you will need some information you have to get from your user.
The email param will be used as username too, you can't pass a custom username, the email will be the username.
There are some params you have to give us as we need:
countryIdtimezone
You can get the corresponding data calling respectively the two endpoints:
/countries/timezones
These will give you the full list of supported countries and timezones from StreetLib, we suggest to use these lists to populate the frontend selects to let choose your users their correct data.
For the countryId use the relative endpoint id key.
For the timezone use the relative endpoint tz key.
Furthermore we need some other parametric params:
languageshould be onlyit | enwe don't accept any other language which will eventually fallback to English onecustomerTypeshould be onlyauthor | publisherthe endpoint will fail with error if you try to send any other stringpenNameandcompanyNameare conditionally exclusive based oncustomerType(if it isauthorthenpenNameis required, if it'spublisherthencompanyNameis required)
The remaining payload params are simple strings up to your user (email, firstname, lastname)
Last updated
Was this helpful?