> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/membership/users/save-phone-user.md).

# Save Phone User

A **contact** (user) is a person in your project's membership directory, with one or more linked logins (identities). Membership manages their profile, identities, roles, and lifecycle. This method creates the phone user; the response returns its id.

This method is on the runtime **API** surface (`norbix.api.membership`) — call it from your app.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.api.membership.savePhoneUser({
  phone: '+14155550123',
  ignoreUserRegistersAsRole: true,
  databaseIntegrationId: 'int_4kX9mQvR2tYw7ZbC1dFgHj',
  userGeneralInfo: { firstName: 'Alice', lastName: 'Nguyen', primaryEmail: 'alice@example.com' },
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Api;

using var client = new NorbixClient();

var result = await client.Membership.SavePhoneUserAsync(new SavePhoneUser
{
    Phone = "+14155550123",
    IgnoreUserRegistersAsRole = true,
    DatabaseIntegrationId = "int_4kX9mQvR2tYw7ZbC1dFgHj",
    UserGeneralInfo = new UserGeneralInfoDto { FirstName = "Alice", LastName = "Nguyen", PrimaryEmail = "alice@example.com" },
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixApi

norbix = NorbixApi()

result = norbix.membership.save_phone_user(
    phone="+14155550123",
    ignoreUserRegistersAsRole=True,
    databaseIntegrationId="int_4kX9mQvR2tYw7ZbC1dFgHj",
    userGeneralInfo={"firstName": "Alice", "lastName": "Nguyen", "primaryEmail": "alice@example.com"},
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.API.Membership.SavePhoneUser(ctx, map[string]any{
	"phone": "+14155550123",
	"ignoreUserRegistersAsRole": true,
	"databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
	"userGeneralInfo": map[string]any{"firstName": "Alice", "lastName": "Nguyen", "primaryEmail": "alice@example.com"},
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_api.dart';

final api = NorbixApi();

final result = await api.membership.savePhoneUser(body: {
  'phone': '+14155550123',
  'ignoreUserRegistersAsRole': true,
  'databaseIntegrationId': 'int_4kX9mQvR2tYw7ZbC1dFgHj',
  'userGeneralInfo': {'firstName': 'Alice', 'lastName': 'Nguyen', 'primaryEmail': 'alice@example.com'},
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.api.membership.savePhoneUser([
    "phone": "+14155550123",
    "ignoreUserRegistersAsRole": true,
    "databaseIntegrationId": "int_4kX9mQvR2tYw7ZbC1dFgHj",
    "userGeneralInfo": ["firstName": "Alice", "lastName": "Nguyen", "primaryEmail": "alice@example.com"],
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.api.NorbixApi

val api = NorbixApi()

val result = api.membership.savePhoneUser(mapOf(
    "phone" to "+14155550123",
    "ignoreUserRegistersAsRole" to true,
    "databaseIntegrationId" to "int_4kX9mQvR2tYw7ZbC1dFgHj",
    "userGeneralInfo" to mapOf("firstName" to "Alice", "lastName" to "Nguyen", "primaryEmail" to "alice@example.com"),
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix raw '/{version}/membership/auth/register/phone' --api -X POST --body '{"phone":"+14155550123","ignoreUserRegistersAsRole":true,"databaseIntegrationId":"int_4kX9mQvR2tYw7ZbC1dFgHj","userGeneralInfo":{"firstName":"Alice","lastName":"Nguyen","primaryEmail":"alice@example.com"}}'
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Membership → Users](/norbix-cloud/membership/users.md).

## API reference

Full request and response for this endpoint: [Save Phone User](/api-reference/membership/users/save-phone-user.md).
