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:

  • countryId

  • timezone

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:

  • language should be only it | en we don't accept any other language which will eventually fallback to English one

  • customerType should be only author | publisher the endpoint will fail with error if you try to send any other string

  • penName and companyName are conditionally exclusive based on customerType (if it is author then penName is required, if it's publisher then companyName is required)

The remaining payload params are simple strings up to your user (email, firstname, lastname)

Last updated

Was this helpful?