> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a SIP endpoint for the Vobiz Flutter SDK

> Create the Vobiz SIP endpoint your Flutter app signs in as: open Voice > Endpoints in the Vobiz Console, fill in the alias, username, password, and application, then copy the SIP username into the SDK.

Your app signs in to Vobiz as a **SIP endpoint**: a username and password that registers with the Vobiz registrar. This page creates one in the Vobiz Console and shows where each value goes in the SDK.

> [!NOTE]
>
> Signing in with an [access token](https://www.vobiz.ai/docs/integrations/flutter-sdk/sign-in.md#access-tokens) needs no endpoint. Create one only if you sign in with a username and password.

## Before you start

* A Vobiz account. Sign up at [console.vobiz.ai](https://console.vobiz.ai).
* An [application](https://www.vobiz.ai/docs/platform/voice/applications.md) whose Answer URL handles the calls your app places. You can attach it while you create the endpoint, or later.

## Create the endpoint

**1. Open the Console and go to Voice**

Sign in to the [Vobiz Console](https://console.vobiz.ai). You land on the **Dashboard**. In the left menu, under **Communication**, click **Voice**.

![Vobiz Console dashboard with quick actions, business metrics, and wallet balance, and the Voice item highlighted in the left menu under Communication](https://mintcdn.com/vobizai/HLZsLPcvGUAOcdFi/images/flutter-sdk/console-dashboard_blur.png?fit=max\&auto=format\&n=HLZsLPcvGUAOcdFi\&q=85\&s=0d0df7797368b00d72ba11782fd3bbf2)

The Vobiz Console dashboard. Open Voice in the left menu.

**2. Open Endpoints**

**Voice** expands. Click **Endpoints**.

![Expanded Voice menu listing Overview, Applications, Endpoints, Call Logs, Recordings, Push Notifications, Campaigns, Campaign Agents, and Campaign Call Logs, with Endpoints highlighted](https://mintcdn.com/vobizai/HLZsLPcvGUAOcdFi/images/flutter-sdk/console-voice-endpoints_blur.png?fit=max\&auto=format\&n=HLZsLPcvGUAOcdFi\&q=85\&s=7fabaf1d691413e835246ecd2aeb9c69)

Voice > Endpoints in the left menu.

**3. Click Create endpoint**

The **Endpoints** page lists your SIP endpoints, the application each one uses, whether it is registered, and its SIP username. Click **Create endpoint** at the top right.

![Endpoints page with a search box, All endpoints, Registered, and Not linked tabs, a table with Endpoint, Application, Status, and SIP username columns, and the Create endpoint button highlighted at the top right](https://mintcdn.com/vobizai/HLZsLPcvGUAOcdFi/images/flutter-sdk/console-endpoints-list_blur.png?fit=max\&auto=format\&n=HLZsLPcvGUAOcdFi\&q=85\&s=2ae50f780e8cbba4ae2c5030cb34ce1a)

The Endpoints page. Create endpoint is at the top right.

**4. Fill in the endpoint details**

The **Create SIP Endpoint** panel opens.

![Create SIP Endpoint panel with numbered fields: 1 Alias, 2 Username, 3 Password, and 4 Application (optional) set to None, and the Create Endpoint button highlighted](https://mintcdn.com/vobizai/HLZsLPcvGUAOcdFi/images/flutter-sdk/console-create-endpoint_blur.png?fit=max\&auto=format\&n=HLZsLPcvGUAOcdFi\&q=85\&s=00cd517849b0aedc18a318c12696acea)

Create SIP Endpoint. The numbers match the table below.

| # | Field | Required | What to enter |
| - | - | - | - |
| 1 | **Alias** | Yes | A friendly name you recognise, such as the user's name. Shown only in the Console. |
| 2 | **Username** | Yes | Letters and digits only. Vobiz adds digits to make it unique, so the final SIP username is longer than what you type. |
| 3 | **Password** | Yes | Lowercase letters and digits only. Store it securely: your app signs in with it. |
| 4 | **Application** | For outbound calls | The application whose Answer URL handles the calls this endpoint places. Without one, calls from the app fail. Calls *to* the endpoint don't need it. |

**5. Create the endpoint**

Click **Create Endpoint**. The endpoint appears in the list. Copy its full username from the **SIP USERNAME** column: that, not the username you typed, is what the SDK signs in with.

## Where the values go in the SDK

| Console value | SDK | Notes |
| - | - | - |
| SIP username (from the list) | `CredentialConfig.username` | Includes the digits Vobiz added. |
| Password (what you typed) | `CredentialConfig.password` | |
| Domain | `SdkConfig.sipServer` | `registrar.vobiz.ai`. This is the default; you don't set it. |
| WebSocket | `SdkConfig.wsUrl` | `wss://registrar.vobiz.ai:5063/`. This is the default; you don't set it. |

```dart theme={null}
final credentials = CredentialConfig(
  username: 'YOUR_SIP_USERNAME', // full value from the SIP USERNAME column
  password: 'YOUR_SIP_PASSWORD',
);
await client.connectWithCredentials(credentials);
```

Once the app signs in, the endpoint shows **Registered** in the **Status** column.

## Route calls to and from the endpoint

**Outbound.** When the app calls a number, Vobiz requests the Answer URL of the endpoint's application with the dialled number in `To`. Return VobizXML that dials it, with a caller ID your account owns:

```xml theme={null}
<Response>
  <Dial callerId="+91YYYYYYYYYY">
    <Number>+91XXXXXXXXXX</Number>
  </Dial>
</Response>
```

**Inbound.** Ring the app from the application linked to your Vobiz number:

```xml theme={null}
<Response>
  <Dial>
    <User>sip:YOUR_SIP_USERNAME@registrar.vobiz.ai</User>
  </Dial>
</Response>
```

Each SIP username has one active registration: if the same username signs in on a second device, the newest sign-in replaces the older one, and only that device rings. Create one endpoint per user or device.

## Production: one endpoint per user

Creating endpoints by hand suits testing. In production, your backend creates an endpoint for each user with the [Create endpoint API](https://www.vobiz.ai/docs/endpoint/create-endpoint.md), keeps its password, and hands it to the app after authenticating the user. The SDK fetches it through a [credentials provider](https://www.vobiz.ai/docs/integrations/flutter-sdk/sign-in.md#credentials-provider). Alternatively, use [access tokens](https://www.vobiz.ai/docs/integrations/flutter-sdk/sign-in.md#access-tokens), which need no endpoint at all.

## Next steps

* [Install the SDK](https://www.vobiz.ai/docs/integrations/flutter-sdk/installation.md)
* [Sign in](https://www.vobiz.ai/docs/integrations/flutter-sdk/sign-in.md)
* [Endpoints in the Console](https://www.vobiz.ai/docs/platform/voice/endpoints.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.