## Register `POST https://getkollek.com/api/register` Create a new user with its own account, and receive an API token for it. The token is named after device_name when provided. This endpoint is limited to 6 requests per minute. ### Body parameters - `first_name` (string, required): The first name of the user. Maximum 100 characters. - `last_name` (string, required): The last name of the user. Maximum 100 characters. - `email` (string, required): The email address of the user. Must be lowercase, unique, and not from a disposable email provider. - `password` (string, required): Minimum 8 characters. The password is checked against known data leaks, and a compromised password is rejected. - `password_confirmation` (string, required): Must match password. - `device_name` (string, optional): A label for the API token that is created, such as the name of your app or device. **Returns:** A confirmation message and the API token to use on subsequent requests. ### Example request ```bash curl https://getkollek.com/api/register \ -X POST \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "first_name": "Monica", "last_name": "Geller", "email": "monica@example.com", "password": "a-very-strong-password", "password_confirmation": "a-very-strong-password", "device_name": "My integration" }' ``` ### Example response `Status: 201` ```json { "message": "Account created", "status": 201, "data": { "token": "1|f9aB2cD3eF4gH5iJ6kL7mN8oP9qR0sT1uV2wX3yZ" } } ```