## Create a SIP profile

`sip_profiles.create(SipProfileCreateParams**kwargs)  -> SipProfile`

**post** `/v3/sip-profiles`

## SIP configuration

Your Linq representative provides the signaling and media IP ranges and
ports to allow through your firewall during onboarding.

Set `primary_uri` to your endpoint as scheme + host — `sips:` for TLS or
`sip:` for UDP, with no user part (we add it). Each call arrives at your
endpoint as:

```
sip:<called-number>@<your-host>
```

so you can route on the dialed number. The caller's number is in the
`From` header in E.164.

---

Create a SIP routing profile for your inbound calls, then assign it to a
phone number to start routing calls to its SIP URI.

### Parameters

- `name: str`

- `primary_uri: str`

  Your SIP endpoint as scheme + host, e.g. `sips:sip.partner.example`. Must start with `sip:` (UDP) or `sips:` (TLS) — the scheme sets the transport. Do not include a user part: we set it to the called number on each call (`sip:<called-number>@<your-host>`). A bare host with no scheme is rejected.

- `backup_uri: Optional[str]`

  Optional failover SIP URI

### Returns

- `class SipProfile: …`

  - `id: str`

    Unique identifier for the SIP profile

  - `assigned_number_count: int`

    How many phone numbers reference this profile

  - `created_at: datetime`

  - `name: str`

    Human-readable name

  - `primary_uri: str`

    Your SIP endpoint as scheme + host (`sip:` UDP / `sips:` TLS); no user part — we set it to the called number on each call.

  - `updated_at: datetime`

  - `version: int`

    Monotonic version, incremented on each update

  - `backup_uri: Optional[str]`

    Optional failover SIP URI. Null when unset.

### Example

```python
import os
from linq import LinqAPIV3

client = LinqAPIV3(
    api_key=os.environ.get("LINQ_API_V3_API_KEY"),  # This is the default and can be omitted
)
sip_profile = client.sip_profiles.create(
    name="byoc-primary",
    primary_uri="sips:sip.partner.example",
)
print(sip_profile.id)
```

#### Response

```json
{
  "id": "sip_8a3f9c2b1d4e4f5a9b8c7d6e5f4a3b2c",
  "assigned_number_count": 0,
  "created_at": "2026-10-29T10:30:00Z",
  "name": "byoc-primary",
  "primary_uri": "sips:sip.partner.example",
  "updated_at": "2026-10-29T10:30:00Z",
  "version": 1,
  "backup_uri": null
}
```
