> For the complete documentation index, see [llms.txt](https://micheleriva.gitbook.io/unomi-node/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micheleriva.gitbook.io/unomi-node/api/profile/create.md).

# Create

Create a new Profile

### Usage

```javascript
unomi.profile.create({
  version: <int>,
  properties: { <object> },
  systemProperties: { <object> },
  segments: <string[]>,
  mergedWith: <string>,
  scores: <string | number>
});
```

### Response

```javascript
{
  success: <boolean>,
  status:  <number, HTTP status code>,
  data:    <object>
}
```

### Real World Example

```javascript
async function createProfile(id, properties, version) {

  try {
  
    const profile = await unomi.profile.create({ itemId: id, properties, version });
    console.log(Profile ${profile.data.itemId} successfully created.);
  
  } catch (err) {
    console.error("An error occurred while creating user " + id);
    console.error(err);
  }

}
```
