---
title: "Create"
method: POST
path: "/api/cp/did(.{ext(csv))}"
tags: ["Did"]
---

# Create

`POST /api/cp/did(.{ext(csv))}`

Create a new Did record.

## Path parameters

- `ext(csv))` string, required

## Request body

- DidInput
  - `id` integer — Id
  - `account_id` integer — Account Id (references account.id)
  - `customer_id` integer — Customer Id (references company.id)
  - `provider_id` integer — Provider Id (references company.id)
  - `did` string — Did
  - `provider_card_id` string — Provider Card Id
  - `customer_card_id` string — Customer Card Id
  - `destination` string, required — Destination
  - `destination_type` string — Destination Type
  - `destination2` string — Destination 2
  - `destination2_type` string — Destination 2 Type
  - `destination3` string — Destination 3
  - `destination3_type` string — Destination 3 Type
  - `notes` string — Notes
  - `channels` integer — Channels
  - `cps` integer — Cps
  - `max_duration` integer — Max Duration
  - `rtp_proxy` integer, required — Rtp Proxy
  - `rtp_mode` 'Relaxed' | 'Strict' — Rtp Mode
  - `timeout` string[] — Timeout
  - `cost` number — Cost
  - `retail` number — Retail
  - `start_date` string, date-time — Start Date
  - `tags` string — Tags
  - `p_asserted_identity` 'default' | 'remove' — P Asserted Identity
  - `package_id` integer — Package Id
  - `recording` integer, required — Recording
  - `transcoding` integer — Transcoding
  - `created_date` string, date-time — Created Date
  - `assigned_date` string, date-time — Assigned Date
  - `enabled` integer, required — Enabled
  - `sandbox_id` integer — Sandbox Id
  - `scriptforge_timeout` number — Scriptforge Timeout
  - `scriptforge_timeout_action` string — Scriptforge Timeout Action
  - `vars` string — Vars
  - `retain_display_name` integer — Retain Display Name
  - `min_days` integer — Min Days
  - `ftc_reported` integer, required — Ftc Reported
  - `rtp_codec` object — Rtp Codec
  - `stir_shaken_min_attest` 'A' | 'B' | 'C' — Stir Shaken Min Attest
  - `spam_score` integer — Spam Score
  - `ipqs` integer — Ipqs
  - `flags` string, required — Flags
  - `last_called` string, date-time, nullable — Last Called
  - `block_source_type` string — Block Source Type
  - `spam_scout` integer — Spam Scout

## Response `200`

Successful response

- CreateResponse
  - `id` union — The ID of the newly created record
    - integer
    - string
  - `status` string — Operation status

## Other responses

- `400` — Bad Request - Invalid parameters or request body
- `401` — Authentication information is missing or invalid
- `403` — Access denied - insufficient permissions or dependency access failure
- `409` — Conflict - foreign key or unique constraint violation on write
- `500` — Internal server error

---

[API](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api.md) · [All operations](https://skmtc.dev/connexcs/apis/connexcs-control-panel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/connexcs/connexcs-control-panel-api/revisions/54bc2ed6edae/schema)
