## Create user

`client.users.create(UserCreateParamsparams, RequestOptionsoptions?): UserCreateResponse`

**post** `/api/v1/users`

Create user

### Parameters

- `params: UserCreateParams`

  - `email: string`

    Body param

  - `first_name: string`

    Body param

  - `last_name: string`

    Body param

  - `password: string`

    Body param

  - `xEnvironment: "sandbox" | "production"`

    Header param

    - `"sandbox"`

    - `"production"`

### Returns

- `UserCreateResponse`

  - `status: string`

  - `user_id: string`

### Example

```typescript
import Rails from 'railsinfra';

const client = new Rails({
  apiKey: process.env['RAILS_API_KEY'], // This is the default and can be omitted
});

const user = await client.users.create({
  email: 'dev@stainless.com',
  first_name: 'first_name',
  last_name: 'last_name',
  password: 'password',
  'X-Environment': 'sandbox',
});

console.log(user.user_id);
```

#### Response

```json
{
  "status": "status",
  "user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```
