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

## 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.Email.Added](https://public.qa.archbee.co/crossriver-apis/customer-management/webhook-events-customer-management#corecustomeremailadded)&#x20;

## API reference

Adds an email address to the customer record.

:::ApiMethodV2
```json
{
  "name": "Endpoint: /core/v1/cm/customers/{customerId}/emails",
  "method": "POST",
  "url": "https://sandbox.crbcos.com/core/v1/cm/customers/{customerId}/emails",
  "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/emails' ^\n--data-raw '{\n  \"isPrimary\": true,\n  \"emailType\": \"Work\",\n  \"emailAddress\": \"bsanderson2@crossriver.com\"\n}\n\n'",
        "customLabel": ""
      },
      {
        "id": "M8UW6kpZkfUBriicsGKAe",
        "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/emails',\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  \\\"emailType\\\": \\\"Work\\\",\\r\\n  \\\"emailAddress\\\": \\\"bsanderson2@crossriver.com\\\"\\r\\n}\\r\\n\\r\\n\";\n\nreq.write(postData);\n\nreq.end();",
        "customLabel": ""
      },
      {
        "id": "NODX906lIJhvoJponVP4L",
        "language": "python",
        "code": "import requests\n\nurl = \"https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/emails\"\n\npayload = \"{\\r\\n  \\\"isPrimary\\\": true,\\r\\n  \\\"emailType\\\": \\\"Work\\\",\\r\\n  \\\"emailAddress\\\": \\\"bsanderson2@crossriver.com\\\"\\r\\n}\\r\\n\\r\\n\"\nheaders = {}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "UhYAJ4U8DKsESN6jyBmfx",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"https://sandbox.crbcos.com/core/v1/cm/customers/bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887/emails\")\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  \\\"emailType\\\": \\\"Work\\\",\\r\\n  \\\"emailAddress\\\": \\\"bsanderson2@crossriver.com\\\"\\r\\n}\\r\\n\\r\\n\"\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "Fa3Ra4Qu_Jp9UzBxNEP3d",
        "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/emails\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{`+\"\n\"+`\n  \"isPrimary\": true,`+\"\n\"+`\n  \"emailType\": \"Work\",`+\"\n\"+`\n  \"emailAddress\": \"bsanderson2@crossriver.com\"`+\"\n\"+`\n}`+\"\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",
        "customLabel": "",
        "code": "{\n    \"id\": \"5dbc6a02-f7c8-4eee-9fe3-b30400c236e5\",\n    \"customerId\": \"bbe09f0a-f38b-4daa-a0a2-b2ff00f4e887\",\n    \"isPrimary\": true,\n    \"status\": \"Active\",\n    \"emailType\": \"Work\",\n    \"emailAddress\": \"bsanderson2@crossriver.com\",\n    \"createdAt\": \"2025-06-22T07:47:06.7861023-04:00\",\n    \"lastModifiedAt\": \"2025-06-22T07:47:06.7861023-04:00\",\n    \"partnerId\": \"1101a33d-fbd9-4b9e-b169-b29500f12407\"\n}"
      },
      {
        "id": "xQQCnFiJEX8NYnws8SLeG",
        "language": "400",
        "code": "{\n    \"errors\": [\n        {\n            \"code\": 2227,\n            \"message\": \"Email address already exists\"\n        }\n    ]\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "xQQCnFiJEX8NYnws8SLeG"
  },
  "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 email record for this customer. Otherwise, false."
      },
      {
        "name": "emailType",
        "kind": "required",
        "type": "string",
        "description": "Email address type is:\n- Personal\n- Work\n- Other"
      },
      {
        "name": "emailAddress",
        "kind": "required",
        "type": "string",
        "description": "Customer's primary email address. This must be a minimum of 6 characters, and a maximum of 255."
      }
    ],
    "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 customerId of the customer record being updated",
      "children": []
    },
    {
      "name": "isPrimary",
      "kind": "optional",
      "type": "boolean",
      "description": "True if this is the primary email record for this customer. Otherwise, false.",
      "children": []
    },
    {
      "name": "status",
      "kind": "optional",
      "type": "string",
      "description": "Status of the customer record:\n- Inactive\n- Active",
      "children": []
    },
    {
      "name": "emailType",
      "kind": "optional",
      "type": "string",
      "description": "Email address type is:\n- Personal\n- Work\n- Other",
      "children": []
    },
    {
      "name": "emailAddress",
      "kind": "optional",
      "type": "string",
      "description": "Customer's primary email address",
      "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-corev1cmcustomerscustomeridemails",
  "legacyHash": "Z2UswgK_wZ756ERa8KUqx"
}
```
:::

