> For the complete documentation index, see [llms.txt](https://developer.myazur.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.myazur.app/models/user.md).

# User

<table><thead><tr><th width="173">Field</th><th width="122">Type</th><th>Notes</th></tr></thead><tbody><tr><td>code </td><td>String(48)</td><td>Firebase UID</td></tr><tr><td>firstname</td><td>String(35)</td><td></td></tr><tr><td>surname</td><td>String(35)</td><td></td></tr><tr><td>email</td><td>String(255)</td><td></td></tr></tbody></table>

## Create a new user (Sign up)

To create a new user you need a firebase token.&#x20;

Firebase token must be passed in the Authorization header:

```javascript
Authorization: Bearer <Firebase Token>
```

Each firebase token can create **at most** one user.&#x20;

Firstname and Surname are mandatory.&#x20;

![My Azur Sign Up](https://1871886970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYCFtTQBLcw5O9QcwHz5%2Fuploads%2Fjo4KdC14IzHXCsIQwUX3%2FScreenshot%202022-07-14%20at%2017.48.59.png?alt=media\&token=8df05002-01bc-449c-8d71-f115591cbe70)

If a user already exists for the firebase token provided you'll get a status code 422.&#x20;

You can determine that a user already exists (already signed up ) you can call the endpoint /apps/azur/users/me&#x20;

![Get info about My Azur user](https://1871886970-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYCFtTQBLcw5O9QcwHz5%2Fuploads%2FXhRtZ7eNV7iEheD5IAF7%2FScreenshot%202022-07-14%20at%2019.15.52.png?alt=media\&token=aee69191-4409-4ece-ab92-21e925adf874)
