---
title: Add phone
slug: crossriver-apis/customer-management/apis/add-customer-phone-number
description: Add a customer's phone number via POST /core/v1/cm/customers/{customerid}/phones, specifying customer ID, phone type, number, and primary status.
icon: {"apiMethod":"POST"}
createdAt: 2026-09-29T15:33:37.345Z
---

## Relevant webhooks

For this endpoint be sure you have [registered](https://public.qa.archbee.co/crossriver-apis/webhooks/cos-webhooks) for this webhook:

- [Core.Customer.Phone.Added](https://public.qa.archbee.co/crossriver-apis/customer-management/webhook-events-customer-management#corecustomerphoneadded)&#x20;

## API reference

Adds a phone number to the customer record.

:::ApiMethodV2
```json
{
  "name": "Endpoint: /core/v1/cm/customers/{customerId}/phones",
  "method": "POST",
  "url": "https://sandbox.crbcos.com/core/v1/cm/customers/{customerId}/phones",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "xK0mDfrnuxTC3HLNjR8-M",
        "language": "curl",
        "code": "curl -L 'https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/phones' ^\n-d '{\n  \"isPrimary\": true,\n  \"phoneType\": \"Work\",\n  \"phoneNumber\": \"2015551212\",\n  \"extension\": \"123\"\n}\n'",
        "customLabel": ""
      },
      {
        "id": "IKn-PxxWeTvuu7Ts0a1vg",
        "language": "nodejs",
        "code": "var https = require('follow-redirects').https;\nvar fs = require('fs');\n\nvar options = {\n  'method': 'POST',\n  'hostname': 'sandbox.crbcos.com',\n  'path': '/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/phones',\n  'headers': {\n  },\n  'maxRedirects': 20\n};\n\nvar req = https.request(options, function (res) {\n  var chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function (chunk) {\n    var body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n\n  res.on(\"error\", function (error) {\n    console.error(error);\n  });\n});\n\nvar postData =  \"{\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"phoneType\\\": \\\"Work\\\",\\r\\n  \\\"phoneNumber\\\": \\\"2015551212\\\",\\r\\n  \\\"extension\\\": \\\"123\\\"\\r\\n}\\r\\n\";\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "-paRfLEtWtmccFPoP6PJ7",
        "language": "python",
        "code": "import requests\n\nurl = \"https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/phones\"\n\npayload = \"{\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"phoneType\\\": \\\"Work\\\",\\r\\n  \\\"phoneNumber\\\": \\\"2015551212\\\",\\r\\n  \\\"extension\\\": \\\"123\\\"\\r\\n}\\r\\n\"\nheaders = {}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "3FTL4k3m64eg39sFIS-SA",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/phones\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest.body = \"{\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"phoneType\\\": \\\"Work\\\",\\r\\n  \\\"phoneNumber\\\": \\\"2015551212\\\",\\r\\n  \\\"extension\\\": \\\"123\\\"\\r\\n}\\r\\n\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "jcYn64Ted91iFNXMbDDWM",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io\"\n)\n\nfunc main() {\n\n  url := \"https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/phones\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n  \"isPrimary\": true,`+\"\n\"+`\n  \"phoneType\": \"Work\",`+\"\n\"+`\n  \"phoneNumber\": \"2015551212\",`+\"\n\"+`\n  \"extension\": \"123\"`+\"\n\"+`\n}`+\"\n\"+`\n`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := io.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "xK0mDfrnuxTC3HLNjR8-M"
  },
  "results": {
    "languages": [
      {
        "id": "zuoamZSUzJOVAnQseRBuz",
        "language": "200",
        "code": "{\n    \"id\": \"a25e3529-bccd-4699-8386-b30400bf7e63\",\n    \"customerId\": \"bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887\",\n    \"status\": \"Active\",\n    \"phoneType\": \"Work\",\n    \"isPrimary\": true,\n    \"phoneNumber\": \"2015551212\",\n    \"extension\": \"123\",\n    \"createdAt\": \"2025-06-22T07:37:12.4331184-04:00\",\n    \"lastModifiedAt\": \"2025-06-22T07:37:12.4331184-04:00\",\n    \"partnerId\": \"1101a33d-fbd9-4b9e-b169-b29500f12407\"\n}",
        "customLabel": ""
      },
      {
        "id": "qba0R7XRwObMUX7S30mb7",
        "language": "400",
        "code": "{\n    \"errors\": [\n        {\n            \"code\": 2230,\n            \"message\": \"Phone number already exists\"\n        }\n    ]\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "zuoamZSUzJOVAnQseRBuz"
  },
  "request": {
    "pathParameters": [
      {
        "name": "customerId",
        "kind": "required",
        "type": "string",
        "description": "The customer ID of the customer record to update"
      }
    ],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "isPrimary",
        "kind": "required",
        "type": "boolean",
        "description": "True if this is the primary phone record for this customer. Otherwise, false."
      },
      {
        "name": "phoneType",
        "kind": "required",
        "type": "string",
        "description": "The phone number calls a:\n- Home\n- Mobile\n- Work\n- Fax"
      },
      {
        "name": "phoneNumber",
        "kind": "required",
        "type": "string",
        "description": "Phone number with no spaces or other characters. Minimum 10 characters, maximum 20."
      },
      {
        "name": "extension",
        "kind": "optional",
        "type": "string",
        "description": "If the phone rings a switchboard, the entity's direct extension. 20 character maximum."
      },
      {
        "name": "notes",
        "kind": "optional",
        "type": "string",
        "description": "Additional phone information. 255 character maximum."
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "response": [
    {
      "name": "id",
      "kind": "optional",
      "type": "string",
      "description": "COS ID for the record, in GUID format"
    },
    {
      "name": "customerId",
      "kind": "optional",
      "type": "string",
      "description": "The COS customer ID of the customer record being updated",
      "children": []
    },
    {
      "name": "status",
      "kind": "optional",
      "type": "string",
      "description": "Status of the customer record:\n- Inactive\n- Active",
      "children": []
    },
    {
      "name": "phoneType",
      "kind": "optional",
      "type": "string",
      "description": "The phone number calls a:\n- Home\n- Mobile\n- Work\n- Fax",
      "children": []
    },
    {
      "name": "isPrimary",
      "kind": "optional",
      "type": "boolean",
      "description": "True if this is the primary address record for this customer. Otherwise, false.",
      "children": []
    },
    {
      "name": "phoneNumber",
      "kind": "optional",
      "type": "string",
      "description": "Phone number with no spaces or other characters. Minimum 10 characters, maximum 20.",
      "children": []
    },
    {
      "name": "extension",
      "kind": "optional",
      "type": "string",
      "description": "If the phone rings a switchboard, the entity's direct extension. 20 character maximum.",
      "children": []
    },
    {
      "name": "notes",
      "kind": "optional",
      "type": "string",
      "description": "Additional phone information. 255 character maximum.",
      "children": []
    },
    {
      "name": "createdAt",
      "kind": "optional",
      "type": "string",
      "description": "Date and time the record was created. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm]",
      "children": []
    },
    {
      "name": "lastModifiedAt",
      "kind": "optional",
      "type": "string",
      "description": "Internal Cross River value. Date and time the database entry was last modified. In this case, the date and time are in this format: yyyy-mm-ddThh:mm:ss[.mmm]",
      "children": []
    },
    {
      "name": "partnerId",
      "kind": "optional",
      "type": "string",
      "description": "Your unique ID in the Cross River system. This ID is in GUID format.",
      "children": []
    }
  ],
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "endpoint-corev1cmcustomerscustomeridphones",
  "legacyHash": "NyU7IE8Zo5TJFk3YzYdTu"
}
```
:::

