Skip to main content
Version: 12.x

Registration

Apiato supports two default user registration methods:

  1. Register by Credentials
  2. Register by Social Account

You can also extend these methods or add new ones to customize your registration process.

Register by Credentials

To register a new user, send a POST request to the /register endpoint.

api.apiato.test/v1/register
tip

Don't forget to add Accept: application/json header to your request.

The /register endpoint expects a string email address and a string password field.

{
"email": "[email protected]",
"password": "password"
}

You should receive a response similar to the following:

{
"data": {
"object": "User",
"id": "XbPW7awNkzl83LD6",
"name": null,
"email": "[email protected]",
"email_verified_at": null,
"gender": null,
"birth": null
},
"meta": {
"include": [
"roles",
"permissions"
],
"custom": []
}
}

Register by Social Account

(Facebook, Twitter, Google, etc...)

Checkout the Social Authentication documentation.