{
  "info": {
    "_postman_id": "5e4d86a0-3d09-5d46-a902-e368f8d8376e",
    "name": "Qlara API - Contacts",
    "description": "The Contacts section of API Reference in the Qlara documentation.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "id": "cadb4826-bda7-5810-a91b-eb0ed8fead76",
      "name": "Create a new contact",
      "request": {
        "name": "Create a new contact",
        "description": {
          "content": "Creates a contact in your account and returns it with its generated ID.\n\n- **Minimum content**: the body must set at least one field other than `gender`. Give a phone number (E.164, such as `+393331234567`) or an email address if the contact must be reachable.\n- **Accepted fields**: those of the request schema, including `customField1`, `customField2`, `customField3`, `tags` and `consents`. Any other property is ignored.\n- **Invalid phone numbers and emails do not fail the call**: the contact is created (`201`), the invalid values stay in `phoneNumbers` and `emailAddresses`, and `errors` lists each of them.\n- **Main values**: `mainEmail` is the first valid address of `emailAddresses`, or the first one if none is valid. An invalid number never becomes `mobilePhoneNumber`, so `isValidMobilePhoneNumber` is false when no valid mobile number is given.\n- **Consents**: `consents` sets one status per channel. The format is on the `consents` field.\n- **Next steps**: add the contact to contact lists with `POST /contacts/list/contacts` to make it a campaign recipient. For bulk imports, use `POST /contacts/upload` or `POST /contacts/upload/vcard`.\n\n> **Consents are shared by the contacts with the same main email** (or the same mobile number, for a contact without an email). If your account already has an older one, its consents prevail, even when it has none, and replace the ones sent here shortly after the `201`. To change the consents of a person already in your account, update the existing contact with `PUT /contacts/{id}`.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": []
        },
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+39 02 1234567\",\n    \"+39 333 1234567\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, Milano\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "id": "205e844f-8716-5d6a-a88a-723ed29c6aa7",
          "name": "Contact created. `errors` lists its invalid phone numbers and email addresses, if any.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Created",
          "code": 201,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"contacts\": [\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8587,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9887,\n        9127\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 2709,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9338,\n        3147\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"errors\": [\n    \"string\",\n    \"string\"\n  ]\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "97fdfcf0-65c8-5ffd-a0c7-a431df965cb7",
          "name": "The body is missing, sets no field other than `gender`, cannot be read (for example a `birthday` in another format), or carries `consents` that cannot be stored: an unknown key, a status other than `OPTIN` or `OPTOUT`, a date in another format or without its status.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "8a8cb4be-0d46-53a1-ae70-14227b8d3723",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "c4388090-1436-525f-ad5e-1c400696da03",
          "name": "Unexpected server error.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "1f65bde9-bc7c-57bf-a70d-020ebe9f89ac",
      "name": "Find contacts",
      "request": {
        "name": "Find contacts",
        "description": {
          "content": "Searches the contacts of your account, with filters, sorting and pagination.\n\n- **Which contacts are searched**: all of them, unless you send one of `listIds`, `notListIds` or `sortPriorityListId`. At most one of the three can be used per call.\n- **Filters add up**: `search`, `gender`, `isValid`, `communicationSupported`, `isTest`, `phoneNumber`, `email` and the consent filters are combined with AND.\n- **Consent filters**: `emailStatus`, `emailTrackingStatus`, `smsStatus`, `waStatus` and `rcsStatus` take comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded). A contact matches if its consent is any of them: `emailStatus=OPTIN,NONE` leaves out the email opt-outs.\n- **Exact lookups**: `phoneNumber` matches the contact's `mobilePhoneNumber` or any of its `phoneNumbers`, in E.164 format with the `+` URL-encoded as `%2B`. `email` matches `mainEmail` or any of the `emailAddresses`, ignoring case.\n- **Pagination and sorting**: `page` is 0-based, `limit` goes from 1 to 1000 (default 10), `sortBy` defaults to `fullName` and `sortOrder` is `asc` or `desc`.\n- **Not supported**: filtering by `id`, `lastContactType` or `lastCampaignType` is refused with `400`. To read one contact, use `GET /contacts/{id}`.\n\n> **With `listIds`, a contact that is in several of the lists is returned once for each of them** and counted as many times in `totalCount`. De-duplicate the results by `id`, or query one list at a time.\n\n<details>\n<summary>How listIds, notListIds and sortPriorityListId choose the contacts</summary>\n\n| Parameter | Contacts returned |\n|---|---|\n| None of them | All the contacts of your account. |\n| `listIds` | The contacts that belong to at least one of those lists. |\n| `notListIds` | The contacts that belong to none of those lists: useful to find the contacts not yet in a target list. |\n| `sortPriorityListId` | All your contacts, with the ones that belong to that list first. |\n\n</details>\n\nFor the contacts of one list, `GET /contacts/list/{listId}/contacts` is simpler.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [
            {
              "disabled": false,
              "key": "communicationSupported",
              "value": "string",
              "description": "Keeps the contacts that can be reached on this channel, for example `SMS`, `RCS` or `WHATSAPP`."
            },
            {
              "disabled": false,
              "key": "email",
              "value": "string",
              "description": "Exact email address, ignoring case. Matches the contact's `mainEmail` or any of its `emailAddresses`."
            },
            {
              "disabled": false,
              "key": "emailStatus",
              "value": "string",
              "description": "Email consent (`consents.email_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
            },
            {
              "disabled": false,
              "key": "emailTrackingStatus",
              "value": "string",
              "description": "Email tracking consent (`consents.email_tracking_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
            },
            {
              "disabled": false,
              "key": "gender",
              "value": "string",
              "description": "Filter by gender."
            },
            {
              "disabled": false,
              "key": "isTest",
              "value": "true",
              "description": "`true` returns only test contacts, `false` only the other contacts."
            },
            {
              "disabled": false,
              "key": "isValid",
              "value": "true",
              "description": "`true` matches the contacts valid on their mobile number or their email, `false` those valid on neither."
            },
            {
              "disabled": false,
              "key": "limit",
              "value": "809",
              "description": "Results per page, from 1 to 1000. Defaults to 10."
            },
            {
              "disabled": false,
              "key": "listIds",
              "value": "string",
              "description": "Comma-separated contact list IDs: only the contacts that belong to at least one of them are returned, once for each of those lists they belong to. Cannot be combined with `notListIds` or `sortPriorityListId`."
            },
            {
              "disabled": false,
              "key": "notListIds",
              "value": "string",
              "description": "Comma-separated contact list IDs: the contacts that belong to any of them are left out. Cannot be combined with `listIds` or `sortPriorityListId`."
            },
            {
              "disabled": false,
              "key": "page",
              "value": "314",
              "description": "Page number, 0-based. Defaults to 0."
            },
            {
              "disabled": false,
              "key": "phoneNumber",
              "value": "string",
              "description": "Exact phone number in E.164 format, such as `+393331234567` (URL-encode the `+` as `%2B`). Matches the contact's `mobilePhoneNumber` or any of its `phoneNumbers`."
            },
            {
              "disabled": false,
              "key": "rcsStatus",
              "value": "string",
              "description": "RCS consent (`consents.rcs_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
            },
            {
              "disabled": false,
              "key": "search",
              "value": "string",
              "description": "Case-insensitive substring match on `fullName`, `firstName`, `lastName`, `mainEmail` and `mobilePhoneNumber`."
            },
            {
              "disabled": false,
              "key": "smsStatus",
              "value": "string",
              "description": "SMS consent (`consents.sms_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
            },
            {
              "disabled": false,
              "key": "sortBy",
              "value": "string",
              "description": "Field to sort by. Defaults to `fullName`."
            },
            {
              "disabled": false,
              "key": "sortOrder",
              "value": "asc",
              "description": "Sort order: `asc` or `desc` (case-insensitive). Defaults to `asc`. Any other value is refused with `400`."
            },
            {
              "disabled": false,
              "key": "sortPriorityListId",
              "value": "5145",
              "description": "Puts first the contacts that belong to this list. Cannot be combined with `listIds` or `notListIds`."
            },
            {
              "disabled": false,
              "key": "waStatus",
              "value": "string",
              "description": "WhatsApp consent (`consents.wa_status`). Comma-separated values among `OPTIN`, `OPTOUT` and `NONE` (no consent recorded for the channel), case-insensitive. A contact matches if its consent is any of the values given: `OPTIN,NONE` leaves out the opt-outs."
            }
          ],
          "variable": []
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "d36bd348-ac19-5e0b-a2ff-7f1c436bf261",
          "name": "One page of the contacts that match the filters.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "communicationSupported",
                  "value": "string"
                },
                {
                  "key": "email",
                  "value": "string"
                },
                {
                  "key": "emailStatus",
                  "value": "string"
                },
                {
                  "key": "emailTrackingStatus",
                  "value": "string"
                },
                {
                  "key": "gender",
                  "value": "string"
                },
                {
                  "key": "isTest",
                  "value": "true"
                },
                {
                  "key": "isValid",
                  "value": "true"
                },
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "listIds",
                  "value": "string"
                },
                {
                  "key": "notListIds",
                  "value": "string"
                },
                {
                  "key": "page",
                  "value": "314"
                },
                {
                  "key": "phoneNumber",
                  "value": "string"
                },
                {
                  "key": "rcsStatus",
                  "value": "string"
                },
                {
                  "key": "search",
                  "value": "string"
                },
                {
                  "key": "smsStatus",
                  "value": "string"
                },
                {
                  "key": "sortBy",
                  "value": "string"
                },
                {
                  "key": "sortOrder",
                  "value": "asc"
                },
                {
                  "key": "sortPriorityListId",
                  "value": "5145"
                },
                {
                  "key": "waStatus",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"data\": [\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 884,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        4100,\n        8016\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8298,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": true,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        6711,\n        8997\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"page\": 0,\n  \"limit\": 10,\n  \"totalCount\": 42,\n  \"totalPages\": 5\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "49e1d432-eb07-58b9-af7b-4a0366a4d2d5",
          "name": "A parameter is invalid: more than one of `listIds`, `notListIds` and `sortPriorityListId`, a list ID that is not a positive integer, a `sortOrder` other than `asc` or `desc`, a `page` below 0, a `limit` outside 1-1000, a consent filter value other than `OPTIN`, `OPTOUT` or `NONE`, or an unsupported filter. The response body names the parameter.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "communicationSupported",
                  "value": "string"
                },
                {
                  "key": "email",
                  "value": "string"
                },
                {
                  "key": "emailStatus",
                  "value": "string"
                },
                {
                  "key": "emailTrackingStatus",
                  "value": "string"
                },
                {
                  "key": "gender",
                  "value": "string"
                },
                {
                  "key": "isTest",
                  "value": "true"
                },
                {
                  "key": "isValid",
                  "value": "true"
                },
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "listIds",
                  "value": "string"
                },
                {
                  "key": "notListIds",
                  "value": "string"
                },
                {
                  "key": "page",
                  "value": "314"
                },
                {
                  "key": "phoneNumber",
                  "value": "string"
                },
                {
                  "key": "rcsStatus",
                  "value": "string"
                },
                {
                  "key": "search",
                  "value": "string"
                },
                {
                  "key": "smsStatus",
                  "value": "string"
                },
                {
                  "key": "sortBy",
                  "value": "string"
                },
                {
                  "key": "sortOrder",
                  "value": "asc"
                },
                {
                  "key": "sortPriorityListId",
                  "value": "5145"
                },
                {
                  "key": "waStatus",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "5c9b9a4c-a9a8-5913-ad36-ae0cc2431d5e",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "communicationSupported",
                  "value": "string"
                },
                {
                  "key": "email",
                  "value": "string"
                },
                {
                  "key": "emailStatus",
                  "value": "string"
                },
                {
                  "key": "emailTrackingStatus",
                  "value": "string"
                },
                {
                  "key": "gender",
                  "value": "string"
                },
                {
                  "key": "isTest",
                  "value": "true"
                },
                {
                  "key": "isValid",
                  "value": "true"
                },
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "listIds",
                  "value": "string"
                },
                {
                  "key": "notListIds",
                  "value": "string"
                },
                {
                  "key": "page",
                  "value": "314"
                },
                {
                  "key": "phoneNumber",
                  "value": "string"
                },
                {
                  "key": "rcsStatus",
                  "value": "string"
                },
                {
                  "key": "search",
                  "value": "string"
                },
                {
                  "key": "smsStatus",
                  "value": "string"
                },
                {
                  "key": "sortBy",
                  "value": "string"
                },
                {
                  "key": "sortOrder",
                  "value": "asc"
                },
                {
                  "key": "sortPriorityListId",
                  "value": "5145"
                },
                {
                  "key": "waStatus",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "62014705-6f69-559d-a045-a68d98de0476",
          "name": "Unexpected server error.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "communicationSupported",
                  "value": "string"
                },
                {
                  "key": "email",
                  "value": "string"
                },
                {
                  "key": "emailStatus",
                  "value": "string"
                },
                {
                  "key": "emailTrackingStatus",
                  "value": "string"
                },
                {
                  "key": "gender",
                  "value": "string"
                },
                {
                  "key": "isTest",
                  "value": "true"
                },
                {
                  "key": "isValid",
                  "value": "true"
                },
                {
                  "key": "limit",
                  "value": "809"
                },
                {
                  "key": "listIds",
                  "value": "string"
                },
                {
                  "key": "notListIds",
                  "value": "string"
                },
                {
                  "key": "page",
                  "value": "314"
                },
                {
                  "key": "phoneNumber",
                  "value": "string"
                },
                {
                  "key": "rcsStatus",
                  "value": "string"
                },
                {
                  "key": "search",
                  "value": "string"
                },
                {
                  "key": "smsStatus",
                  "value": "string"
                },
                {
                  "key": "sortBy",
                  "value": "string"
                },
                {
                  "key": "sortOrder",
                  "value": "asc"
                },
                {
                  "key": "sortPriorityListId",
                  "value": "5145"
                },
                {
                  "key": "waStatus",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "197bacd2-29fc-540a-ac0f-a681f31e27b3",
      "name": "Get contact by ID",
      "request": {
        "name": "Get contact by ID",
        "description": {
          "content": "Returns one contact of your account by its ID, test contacts included.\n\n- **In the response**: the standard fields (name, phone numbers, email addresses, gender, validity, supported channels, `customField1` to `customField3`, `tags`), the consent of each channel (`consents`) and the IDs of the contact lists the contact belongs to (`listIds`).\n- **Not returned**: the dynamic fields, that is the additional fields defined for your account in the platform.\n- **Typical use**: read a contact before updating it with `PUT /contacts/{id}`, or check it after creating it.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts",
            ":id"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": [
            {
              "disabled": false,
              "type": "any",
              "value": "5145",
              "key": "id",
              "description": "(Required) ID of the contact to retrieve."
            }
          ]
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "GET",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "f7fa4f95-fb41-5629-abec-ea0ebac78cf3",
          "name": "The contact.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to retrieve."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"id\": 12345,\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"string\",\n  \"gender\": \"string\",\n  \"nickname\": \"string\",\n  \"phoneNumbers\": [\n    \"+39333123456\"\n  ],\n  \"emailAddresses\": [\n    \"mario@example.com\"\n  ],\n  \"mainEmail\": \"mario@example.com\",\n  \"addresses\": [\n    \"string\",\n    \"string\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"string\",\n  \"organization\": \"string\",\n  \"website\": \"string\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"string\",\n  \"companyId\": 4618,\n  \"companyName\": \"string\",\n  \"companyMail\": \"string\",\n  \"companyPhone\": \"string\",\n  \"companyFax\": \"string\",\n  \"completeCompanyAddress\": \"string\",\n  \"fiscalCode\": \"string\",\n  \"sector\": \"string\",\n  \"referenceContact\": \"string\",\n  \"isValidMobilePhoneNumber\": true,\n  \"isValidEmail\": true,\n  \"mobilePhoneNumber\": \"+39333123456\",\n  \"city\": \"Milano\",\n  \"source\": \"string\",\n  \"leadType\": \"string\",\n  \"stage\": \"string\",\n  \"channel\": \"string\",\n  \"owner\": \"string\",\n  \"tags\": [\n    \"string\",\n    \"string\"\n  ],\n  \"numCampaignSent\": 6984,\n  \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastContactType\": \"string\",\n  \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n  \"lastCampaignType\": \"string\",\n  \"communicationSupported\": [\n    \"string\",\n    \"string\"\n  ],\n  \"customField1\": \"string\",\n  \"customField2\": \"string\",\n  \"customField3\": \"string\",\n  \"isTest\": false,\n  \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n  \"listIds\": [\n    1981,\n    187\n  ],\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"email_tracking_status\": \"OPTIN\"\n  }\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "b285c20e-b396-50c6-a796-d9021bb68ba5",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to retrieve."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "382aed5a-92a8-514c-a8e6-3fc914f21fa1",
          "name": "No contact with this ID in your account.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to retrieve."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "54e28170-987b-50cb-a1bd-24411279ec92",
          "name": "Unexpected server error.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to retrieve."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "GET",
            "body": {}
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "e364a80d-2693-5b8b-a2a2-345b951ca5cd",
      "name": "Update a contact",
      "request": {
        "name": "Update a contact",
        "description": {
          "content": "Updates a contact of your account. Only the fields you send change, with the exceptions below.\n\n- **Partial update**: a field you leave out keeps its stored value. Properties outside the request schema are ignored.\n- **Names are recomputed together**: to change a name, send `fullName`, `firstName`, `middleName` and `lastName` together. The rules are on the `fullName` field.\n- **Consents**: only the channels you send change, and the `consents` returned by `GET /contacts/{id}` can be sent back as they are. The rules are on the `consents` field.\n- **Invalid phone numbers and emails do not fail the call**: the contact is updated (`200`) and `errors` lists every invalid value of the contact, including those stored before this request.\n- **A new phone number** can change the contact's validity and the channels that reach it: it might not support RCS, for example.\n- **List memberships are not changed**: manage them with the `/contacts/list/contacts` endpoints.\n\n> **Every update erases the contact's dynamic fields**, the additional fields defined for your account in the platform, which this API neither returns nor accepts.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts",
            ":id"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [],
          "variable": [
            {
              "disabled": false,
              "type": "any",
              "value": "5145",
              "key": "id",
              "description": "(Required) ID of the contact to update."
            }
          ]
        },
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "PUT",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+39 02 1234567\",\n    \"+39 333 1234567\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, Milano\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"email_status\": \"OPTIN\",\n    \"sms_status\": \"OPTOUT\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      },
      "response": [
        {
          "id": "fe06a128-272e-5a42-a133-d6910402fcfb",
          "name": "Contact updated. `errors` lists the invalid phone numbers and email addresses of the contact, if any.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to update."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"contacts\": [\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 8587,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9887,\n        9127\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    },\n    {\n      \"id\": 12345,\n      \"fullName\": \"Mario Rossi\",\n      \"firstName\": \"Mario\",\n      \"lastName\": \"Rossi\",\n      \"middleName\": \"string\",\n      \"gender\": \"string\",\n      \"nickname\": \"string\",\n      \"phoneNumbers\": [\n        \"+39333123456\"\n      ],\n      \"emailAddresses\": [\n        \"mario@example.com\"\n      ],\n      \"mainEmail\": \"mario@example.com\",\n      \"addresses\": [\n        \"string\",\n        \"string\"\n      ],\n      \"country\": \"Italy\",\n      \"jobTitle\": \"string\",\n      \"organization\": \"string\",\n      \"website\": \"string\",\n      \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n      \"notes\": \"string\",\n      \"companyId\": 4618,\n      \"companyName\": \"string\",\n      \"companyMail\": \"string\",\n      \"companyPhone\": \"string\",\n      \"companyFax\": \"string\",\n      \"completeCompanyAddress\": \"string\",\n      \"fiscalCode\": \"string\",\n      \"sector\": \"string\",\n      \"referenceContact\": \"string\",\n      \"isValidMobilePhoneNumber\": true,\n      \"isValidEmail\": true,\n      \"mobilePhoneNumber\": \"+39333123456\",\n      \"city\": \"Milano\",\n      \"source\": \"string\",\n      \"leadType\": \"string\",\n      \"stage\": \"string\",\n      \"channel\": \"string\",\n      \"owner\": \"string\",\n      \"tags\": [\n        \"string\",\n        \"string\"\n      ],\n      \"numCampaignSent\": 2709,\n      \"lastContactDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastContactType\": \"string\",\n      \"lastCampaignDate\": \"2026-09-01 10:17:53.200+0000\",\n      \"lastCampaignType\": \"string\",\n      \"communicationSupported\": [\n        \"string\",\n        \"string\"\n      ],\n      \"customField1\": \"string\",\n      \"customField2\": \"string\",\n      \"customField3\": \"string\",\n      \"isTest\": false,\n      \"createdAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"updatedAt\": \"2026-09-01 10:17:53.200+0000\",\n      \"listIds\": [\n        9338,\n        3147\n      ],\n      \"consents\": {\n        \"email_status\": \"OPTIN\",\n        \"email_tracking_status\": \"OPTIN\"\n      }\n    }\n  ],\n  \"errors\": [\n    \"string\",\n    \"string\"\n  ]\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "ac181cc2-9e0c-5d80-ad05-34f9f30dd9c6",
          "name": "The body is missing, cannot be read (for example a `birthday` in another format), or carries `consents` that cannot be stored: an unknown key, a status other than `OPTIN` or `OPTOUT`, a date in another format or without its status.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to update."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "92dc0e4b-e6b9-5cac-a2ad-2562b5c441ae",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to update."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "22bcf1a2-188e-5671-a4f6-b2789c2ca969",
          "name": "No contact with this ID in your account.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to update."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "09f2beb1-aa93-594b-ace7-7c9427f7f9c7",
          "name": "Unexpected server error.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                ":id"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": [
                {
                  "disabled": false,
                  "type": "any",
                  "value": "5145",
                  "key": "id",
                  "description": "(Required) ID of the contact to update."
                }
              ]
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "PUT",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"fullName\": \"Mario Rossi\",\n  \"firstName\": \"Mario\",\n  \"lastName\": \"Rossi\",\n  \"middleName\": \"Luigi\",\n  \"gender\": \"M\",\n  \"nickname\": \"Mari\",\n  \"phoneNumbers\": [\n    \"+393331234567\",\n    \"+390212345678\"\n  ],\n  \"emailAddresses\": [\n    \"mario.rossi@email.com\",\n    \"mario.rossi@work.com\"\n  ],\n  \"addresses\": [\n    \"Via Roma 1, 20121 Milano, IT\"\n  ],\n  \"country\": \"Italy\",\n  \"jobTitle\": \"Software Engineer\",\n  \"organization\": \"Acme S.r.l.\",\n  \"website\": \"https://www.mariorossi.it\",\n  \"birthday\": \"1990-05-15 00:00:00.000+0000\",\n  \"notes\": \"VIP customer — high priority\",\n  \"companyName\": \"Acme S.r.l.\",\n  \"companyMail\": \"info@acme.it\",\n  \"companyPhone\": \"+39 02 9876543\",\n  \"companyFax\": \"+39 02 9876544\",\n  \"city\": \"Milano\",\n  \"completeCompanyAddress\": \"Via Montenapoleone 1, 20121 Milano, Italy\",\n  \"fiscalCode\": \"RSSMRA90E15F205Z\",\n  \"sector\": \"Technology\",\n  \"referenceContact\": \"Giuseppe Verdi\",\n  \"source\": \"manual\",\n  \"leadType\": \"inbound\",\n  \"stage\": \"qualified\",\n  \"channel\": \"email\",\n  \"owner\": \"agent@acme.it\",\n  \"tags\": [\n    \"vip\",\n    \"newsletter\",\n    \"q4-promo\"\n  ],\n  \"customField1\": \"value1\",\n  \"customField2\": \"value2\",\n  \"customField3\": \"value3\",\n  \"consents\": {\n    \"sms_status\": \"OPTOUT\",\n    \"sms_status_date\": \"2026-10-09T08:15:30Z\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "9530422e-ee87-550a-a39e-526b0b0c3867",
      "name": "Upload and parse a contact list file",
      "request": {
        "name": "Upload and parse a contact list file",
        "description": {
          "content": "Imports the rows of a CSV, text or Excel file as contacts of your account.\n\n- **How to send it**: as `multipart/form-data`, with the file in `file` and its original name in `fileName`. The format is detected from the extension of `fileName`.\n- **Formats**: `.csv` and `.txt` files delimited by commas, semicolons, pipes or tabs (detected automatically), and Excel `.xls` and `.xlsx` files. For VCard files, use `POST /contacts/upload/vcard`.\n- **Columns** are mapped automatically from the header names the platform recognises, such as `firstName`, `lastName`, `phoneNumber` and `email`. Send `removeHead=true` when the first row holds column headers, so that it is not imported as a contact.\n- **Create or update**: new contacts are created, and a contact already in your account, matched by mobile phone number or by email address (compared after normalisation), is updated. If the phone number and the email match two different contacts, the one matched by email is updated.\n- **List**: with `listId`, every contact imported is added to that contact list.\n- **Consents**: the file cannot carry consents. The optional `consents` form field gives the same consents to every imported contact; the rules are on the field.\n\n> **Large files are imported in the background.** For 50,000 rows or more (a lower threshold applies in test environments) the call answers `200` at once with `numContact`, `addedContact`, `updatedContact` and `numError` set to `-1` and `listId` and `listName` null. The final counts arrive only in the import-completed email sent to the user the API key belongs to. Do not upload the file again when you get `-1`: that would run the import a second time.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts",
            "upload"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [
            {
              "disabled": false,
              "key": "listId",
              "value": "5145",
              "description": "ID of the contact list the imported contacts are added to."
            },
            {
              "disabled": false,
              "key": "removeHead",
              "value": "true",
              "description": "If `true`, the first row of the file (the header) is not imported."
            }
          ],
          "variable": []
        },
        "header": [
          {
            "key": "Content-Type",
            "value": "multipart/form-data"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "description": "The file to import."
            },
            {
              "key": "fileName",
              "value": "string",
              "type": "text",
              "description": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it."
            },
            {
              "key": "consents",
              "value": "string",
              "type": "text",
              "description": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact."
            }
          ]
        }
      },
      "response": [
        {
          "id": "5bebaef5-1723-537d-a8cb-7d360bf8a1f7",
          "name": "File imported: the counts of added, updated and failed contacts, all `-1` when the import continues in the background.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                },
                {
                  "key": "removeHead",
                  "value": "true"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"numContact\": 100,\n  \"addedContact\": 80,\n  \"updatedContact\": 15,\n  \"listId\": 726,\n  \"listName\": \"string\",\n  \"numError\": 5\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "373c7f4b-c8c6-5edb-af1a-c76f882b68de",
          "name": "`file` or `fileName` is missing, the file is empty, the extension of `fileName` is not `csv`, `txt`, `xls` or `xlsx`, or `consents` is not a JSON object or carries consents that cannot be stored.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                },
                {
                  "key": "removeHead",
                  "value": "true"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "77dbc196-0ac8-54b4-a260-59d11dac3494",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                },
                {
                  "key": "removeHead",
                  "value": "true"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "7b283d0c-3a55-5733-a119-aec6475c0350",
          "name": "`listId` is not a contact list of your account.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                },
                {
                  "key": "removeHead",
                  "value": "true"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "e3d01916-8116-5f69-add0-844e4a8c292e",
          "name": "Unexpected server error during the import, including a file whose content cannot be parsed.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                },
                {
                  "key": "removeHead",
                  "value": "true"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file, with its extension: `csv`, `txt`, `xls` or `xlsx`. The format is detected from it.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "a3271916-0932-5402-a260-878e4843deb8",
      "name": "Upload and parse a VCard file",
      "request": {
        "name": "Upload and parse a VCard file",
        "description": {
          "content": "Imports the entries of a VCard (`.vcf`) file as contacts of your account: for example an export from a phone address book, Outlook, Google Contacts or a CRM.\n\n- **How to send it**: as `multipart/form-data`, with the file in `file` and its original name, ending in `.vcf`, in `fileName`.\n- **Content**: one or more vCard entries, each mapped to a contact from the standard vCard fields (`FN`, `TEL`, `EMAIL` and so on). A file with no vCard entry imports nothing.\n- **Create or update**: new contacts are created, and a contact already in your account, matched by mobile phone number or by email address (compared after normalisation), is updated. If the phone number and the email match two different contacts, the one matched by email is updated.\n- **List**: with `listId`, every contact imported is added to that contact list.\n- **Consents**: the VCard cannot carry consents. The optional `consents` form field gives the same consents to every imported contact; the rules are on the field.\n\n> **Large files are imported in the background.** For 50,000 entries or more (a lower threshold applies in test environments) the call answers `200` at once with `numContact`, `addedContact`, `updatedContact` and `numError` set to `-1` and `listId` and `listName` null. The final counts arrive only in the import-completed email sent to the user the API key belongs to. Do not upload the file again when you get `-1`: that would run the import a second time.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts",
            "upload",
            "vcard"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [
            {
              "disabled": false,
              "key": "listId",
              "value": "5145",
              "description": "ID of the contact list the imported contacts are added to."
            }
          ],
          "variable": []
        },
        "header": [
          {
            "key": "Content-Type",
            "value": "multipart/form-data"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "POST",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        },
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "file",
              "type": "file",
              "description": "The file to import."
            },
            {
              "key": "fileName",
              "value": "string",
              "type": "text",
              "description": "Original name of the file. It must end with `.vcf`."
            },
            {
              "key": "consents",
              "value": "string",
              "type": "text",
              "description": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact."
            }
          ]
        }
      },
      "response": [
        {
          "id": "2e4a174e-6b16-597d-aaac-751789c5e2da",
          "name": "VCard file imported: the counts of added, updated and failed contacts, all `-1` when the import continues in the background.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload",
                "vcard"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file. It must end with `.vcf`.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "{\n  \"numContact\": 100,\n  \"addedContact\": 80,\n  \"updatedContact\": 15,\n  \"listId\": 726,\n  \"listName\": \"string\",\n  \"numError\": 5\n}",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "2e7e8977-ad93-5aca-abba-11d6e301cb80",
          "name": "`file` or `fileName` is missing, the file is empty, `fileName` does not end in `.vcf`, or `consents` is not a JSON object or carries consents that cannot be stored.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload",
                "vcard"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file. It must end with `.vcf`.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "77fa4566-1fba-522c-adb7-9bbc2310955e",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload",
                "vcard"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file. It must end with `.vcf`.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "6a105bf4-b5af-5411-a97f-719d4dc804a3",
          "name": "`listId` is not a contact list of your account.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload",
                "vcard"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file. It must end with `.vcf`.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Not Found",
          "code": 404,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "fe58cc0a-3a8c-5fe3-ac6e-0f09a71f7c81",
          "name": "Unexpected server error during the import.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts",
                "upload",
                "vcard"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "listId",
                  "value": "5145"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "description": {
                    "content": "The file to import.",
                    "type": "text/plain"
                  },
                  "key": "file",
                  "type": "file"
                },
                {
                  "description": {
                    "content": "Original name of the file. It must end with `.vcf`.",
                    "type": "text/plain"
                  },
                  "key": "fileName",
                  "value": "string",
                  "type": "text"
                },
                {
                  "description": {
                    "content": "Marketing consents given to every imported contact, as a JSON object such as `{\"email_status\":\"OPTIN\",\"sms_status\":\"OPTOUT\"}`, in the format of the `consents` of `POST /contacts`.\n\n- **Contacts the import updates** take these consents in place of their own, and lose their consents when none are sent.\n- **New contacts** with the same main email (or, without one, the same mobile number) as an older contact of your account take the consents of the older contact.",
                    "type": "text/plain"
                  },
                  "key": "consents",
                  "value": "string",
                  "type": "text"
                }
              ]
            }
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    },
    {
      "id": "1b1774cc-0b2f-5998-ae7b-9d75b586b372",
      "name": "Delete contacts",
      "request": {
        "name": "Delete contacts",
        "description": {
          "content": "Deletes contacts of your account, permanently. One of `ids` and `notIds` is required.\n\n- **Delete specific contacts**: send `ids`, a comma-separated list of contact IDs. When `ids` is present, `notIds` is ignored.\n- **Delete all except some**: send `notIds`, the IDs of the contacts to keep. Every other non-test contact of your account is deleted.\n- **At most 200 IDs** in the list used: to delete more contacts, split them over several calls.\n- **Skipped without an error**: test contacts (`isTest` true) are never deleted, in either mode, and IDs that do not exist in your account are ignored.\n- **What goes with a contact**: its contact list memberships, so it is no longer a recipient of future campaigns. The delivery history of past campaigns is kept.\n- **The response is always `true`**: it does not tell how many contacts were deleted, and it is `true` even when none was.\n\n> **`notIds` can empty your address book in one call.** It deletes every contact you do not list, so check the list before you send it.",
          "type": "text/plain"
        },
        "url": {
          "path": [
            "api",
            "partner-gateway",
            "contacts"
          ],
          "host": [
            "{{baseUrl}}"
          ],
          "query": [
            {
              "disabled": false,
              "key": "ids",
              "value": "string",
              "description": "Comma-separated contact IDs to delete, at most 200. When present, `notIds` is ignored. One of `ids` and `notIds` is required."
            },
            {
              "disabled": false,
              "key": "notIds",
              "value": "string",
              "description": "Comma-separated contact IDs to keep, at most 200: every other non-test contact is deleted. Used only when `ids` is absent."
            }
          ],
          "variable": []
        },
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "method": "DELETE",
        "auth": {
          "type": "apikey",
          "apikey": [
            {
              "key": "key",
              "value": "X-API-Key"
            },
            {
              "key": "value",
              "value": "{{apiKey}}"
            },
            {
              "key": "in",
              "value": "header"
            }
          ]
        }
      },
      "response": [
        {
          "id": "47a35602-1db0-5fb7-ae70-6fb105ffcd7e",
          "name": "`true`. The number of contacts deleted is not returned.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "string"
                },
                {
                  "key": "notIds",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "body": {}
          },
          "status": "OK",
          "code": 200,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "c4fcd445-7833-5a61-aab9-9dce09dfcaaf",
          "name": "Neither `ids` nor `notIds` is sent, or the list used is empty, has more than 200 IDs or contains a value that is not a positive integer. Nothing is deleted.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "string"
                },
                {
                  "key": "notIds",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "body": {}
          },
          "status": "Bad Request",
          "code": 400,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "f735a769-2159-5098-ac7c-538e22733de9",
          "name": "The API key is missing, invalid, or lacks the `CONTACTS` operation.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "string"
                },
                {
                  "key": "notIds",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "body": {}
          },
          "status": "Unauthorized",
          "code": 401,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        },
        {
          "id": "be6ce162-4221-581a-ae43-773314c0f569",
          "name": "Unexpected server error.",
          "originalRequest": {
            "url": {
              "path": [
                "api",
                "partner-gateway",
                "contacts"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [
                {
                  "key": "ids",
                  "value": "string"
                },
                {
                  "key": "notIds",
                  "value": "string"
                }
              ],
              "variable": []
            },
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "DELETE",
            "body": {}
          },
          "status": "Internal Server Error",
          "code": 500,
          "header": [
            {
              "key": "Content-Type",
              "value": "application/json"
            }
          ],
          "body": "\"\"",
          "cookie": [],
          "_postman_previewlanguage": "json"
        }
      ],
      "event": [],
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      }
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-Api-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.qlara.ai",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ]
}
