---
title: "Create a contact phone number (v2)"
method: POST
path: "/v2/contact-phone-numbers/{contactId}"
tags: ["contact-phone-numbers"]
---

# Create a contact phone number (v2)

`POST /v2/contact-phone-numbers/{contactId}`

## Request

- Base URL: `https://api.prod.getdex.com`
- URL: `https://api.prod.getdex.com/v2/contact-phone-numbers/{contactId}`
- Auth: HTTP bearer

Add a phone number to a contact, optionally with a label. **Requires `Idempotency-Key`.** Returns the created row: `{ data: { contact_phone_number: {...} } }`, status 201.

## Path parameters

- `contactId` string, uuid, required

## Request body

- object
  - `phone_number` string, required
  - `label` string
  - `ranking` integer
  - `country_code` string
  - `phone_number_sanitized` string

## Response `201`

Created

- object
  - `data` object, required
    - `phoneNumber` object, required
      - `id` string, uuid, required
      - `contact_id` string, uuid, required
      - `user_id` string
      - `workspace_id` string, uuid, nullable
      - `phone_number` string, required
      - `label` string, nullable
      - `ranking` integer, required
      - `country_code` string, nullable
      - `phone_number_sanitized` string, nullable
      - `created_at` union, required
        - string, date-time
        - unknown
      - `updated_at` union, required
        - string, date-time
        - unknown

## Other responses

- `400`: Request body failed validation.
- `401`: Missing or invalid API key.
- `403`: Valid key, insufficient permission.
- `404`: Resource does not exist.
- `409`: Request conflicts with the current state of the resource.
- `429`: Rate limit exceeded.
- `500`: Unexpected server error.

## Changes

- **2026-09-18** `7e2de6306b09`: 1 info
  - added the optional property `data/phoneNumber/workspace_id` to the response with the `201` status
- **2026-08-27** `a2f71a243839`: 1 info
  - api operation id `createContactPhoneNumberV2` was added

[Operation history](https://skmtc.dev/getdex/apis/dex-public-api/changes/v2/contact-phone-numbers/:contactId/post.md)

---

[API](https://skmtc.dev/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.dev/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getdex/apis/dex-public-api/revisions/657247ddcf7c?raw)
