---
title: "Create an extension"
method: POST
path: "/tel/extensions"
tags: ["Telephony"]
---

# Create an extension

`POST /tel/extensions`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/tel/extensions`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Create an extension in the authenticated user's agency. Requires agencyAdmin permissions.

## Request body

- CreateExtensionRequest
  - `provider` string, required
  - `providerAccountId` string, required
  - `extension` string, required
  - `providerSettings` object
  - `userId` string, uuid
  - `clickToCallDefault` boolean, required
  - `logEnabled` boolean, required

## Response `200`

OK

- TelephonyExtensionValue
  - `tenantId` string, uuid
  - `agencyId` string, uuid
  - `createdDate` string, date-time
  - `createdBy` string, uuid
  - `creatorName` string
  - `lastModifiedDate` string, date-time
  - `lastModifiedBy` string, uuid
  - `version` integer
  - `id` string, uuid
  - `provider` string
  - `providerAccountId` string
  - `extension` string
  - `providerSettings` object
  - `userId` string, uuid
  - `clickToCallDefault` boolean
  - `logEnabled` boolean

---

[API](https://skmtc.dev/surense/apis/telephony-api.md) - [All operations](https://skmtc.dev/surense/apis/telephony-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/telephony-api/revisions/f2a755f3bd29?raw)
