{
  "openapi": "3.0.0",
  "info": {
    "title": "Contacts API",
    "version": "1",
    "description": "Find contact lists, page through their records, and manage contact items."
  },
  "servers": [
    {
      "url": "https://backend.snapaddy.com/contact"
    }
  ],
  "paths": {
    "/v1/contact-list/user": {
      "get": {
        "operationId": "ContactListManagementController_getContactListsForUser",
        "summary": "List accessible contact lists",
        "description": "Find lists you own or can access through a user or group assignment. Set includeCount to include the number of contacts in each list.",
        "parameters": [
          {
            "name": "includeCount",
            "required": false,
            "in": "query",
            "description": "Include the count of contacts in each contact list.",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Contact lists retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetContactListResponseDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-list/shared": {
      "get": {
        "operationId": "ContactListManagementController_getSharedContactLists",
        "summary": "List organization-wide shared contact lists",
        "description": "List the current organization’s shared lists. Requires the DataAgents Manager role. Use includeAssignments to return assigned users and groups or includeCount to return contact counts.",
        "parameters": [
          {
            "name": "includeCount",
            "required": false,
            "in": "query",
            "description": "Include the count of contacts in each contact list.",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          },
          {
            "name": "includeAssignments",
            "required": false,
            "in": "query",
            "description": "Include the assigned user ids and group ids for each contact list.",
            "schema": {
              "nullable": true,
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shared contact lists retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GetSharedContactListResponseDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access shared contact lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-list": {
      "post": {
        "operationId": "ContactListManagementController_createContactList",
        "summary": "Create a private or shared contact list",
        "description": "Creates a new contact list. Shared contact lists can only be created by administrators.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Contact list created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetContactListResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "If the authorization cannot be granted. If a shared contact list was to be created, the user has to be an administrator.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContactListRequestDto"
              },
              "example": {
                "name": "Partner leads",
                "isShared": true,
                "flags": [
                  "is_visible_in_lead_research",
                  "is_visible_in_business_cards"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/contact-list/{contactListId}/assign": {
      "patch": {
        "operationId": "ContactListManagementController_assignToContactList",
        "summary": "Set user or group access to a shared list",
        "description": "Replace assignments on a shared list. Each supplied userIds or groupIds array replaces that category. An empty array clears that category. Omit a category to preserve its assignments. Requires the DataAgents Manager role.",
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            },
            "description": "ID of the contact list. Find it in the contactListId field when listing accessible lists."
          }
        ],
        "responses": {
          "200": {
            "description": "Access was granted."
          },
          "403": {
            "description": "The requesting user has no access to the given contact list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact list with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssignContactListRequestDto"
              },
              "example": {
                "userIds": [
                  "ExampleUser00001"
                ]
              }
            }
          }
        }
      }
    },
    "/v1/contact-list/my/business-card/contact-items": {
      "get": {
        "operationId": "ContactListManagementController_getContactItemsForMyBusinessCardList",
        "summary": "List your business card contacts",
        "description": "Page through contacts collected in your own BusinessCards list.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "searchText",
            "required": false,
            "in": "query",
            "description": "The search text to filter by. If provided, the search will be performed on email, organization and full name. The minimum length of the search text is 3 characters.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          },
          {
            "name": "orderBy",
            "required": false,
            "in": "query",
            "description": "Field to order the contact items by.",
            "schema": {
              "default": "listMemberOrdinal",
              "type": "string",
              "enum": [
                "listMemberOrdinal",
                "email",
                "organization",
                "firstName",
                "lastName",
                "fullName",
                "startDate",
                "updatedAt"
              ]
            }
          },
          {
            "name": "sortOrder",
            "required": false,
            "in": "query",
            "description": "Sort order direction for the selected orderBy field.",
            "schema": {
              "default": "ASC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Contact items retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ContactItemForBusinessCardResponseDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the Business Card list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The Business Card list does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-list/{contactListId}/contact-items": {
      "get": {
        "operationId": "ContactListManagementController_getContactItemsForContactList",
        "summary": "List contact items",
        "description": "Read a page of contact items in an accessible list. Use limit and offset to page and searchText to narrow the results.",
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            },
            "description": "ID of the contact list. Find it in the contactListId field when listing accessible lists."
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "searchText",
            "required": false,
            "in": "query",
            "description": "The search text to filter by. If provided, the search will be performed on email, organization and full name. The minimum length of the search text is 3 characters.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          },
          {
            "name": "orderBy",
            "required": false,
            "in": "query",
            "description": "Field to order the contact items by.",
            "schema": {
              "default": "listMemberOrdinal",
              "type": "string",
              "enum": [
                "listMemberOrdinal",
                "email",
                "organization",
                "firstName",
                "lastName",
                "fullName",
                "startDate",
                "updatedAt"
              ]
            }
          },
          {
            "name": "sortOrder",
            "required": false,
            "in": "query",
            "description": "Sort order direction for the selected orderBy field.",
            "schema": {
              "default": "ASC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of contact items. Use each item’s id to request its full details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ListContactItemResponseDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the given contact list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact list with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-list/{contactListId}/contact-item-ids": {
      "get": {
        "operationId": "ContactListManagementController_getContactItemIdsForContactList",
        "summary": "List all contact item IDs in a list",
        "description": "Read all current contact item IDs in one request to compare list membership with your own records.",
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            },
            "description": "ID of the contact list. Find it in the contactListId field when listing accessible lists."
          }
        ],
        "responses": {
          "200": {
            "description": "An object containing the ids array. Use these IDs to compare list membership with your local records.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetContactItemIdsForContactListResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the given contact list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact list with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-list/{contactListId}/contact-item-count": {
      "get": {
        "operationId": "ContactListManagementController_getContactItemCountForContactList",
        "summary": "Count contact items",
        "description": "Retrieves the total number of (non-deleted) contact items for a given contact list.",
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            },
            "description": "ID of the contact list. Find it in the contactListId field when listing accessible lists."
          }
        ],
        "responses": {
          "200": {
            "description": "Contact item count retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetContactItemCountForContactListResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the given contact list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact list with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/contact-item": {
      "post": {
        "operationId": "ContactItemController_createContactItem",
        "summary": "Create a contact item",
        "description": "Creates a new contact and its contact item within the provided contact list.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Contact created successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactItemResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the given contact list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact list with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateContactItemRequestDto"
              },
              "example": {
                "contactListId": "ExampleList00001",
                "firstName": "Alex",
                "lastName": "Morgan",
                "email": "alex@example.com"
              }
            }
          }
        }
      }
    },
    "/v1/contact-item/{contactItemId}": {
      "get": {
        "operationId": "ContactItemController_getContactItem",
        "summary": "Get a contact item and its attachments",
        "description": "Retrieves a single contact item by its ID.",
        "parameters": [
          {
            "name": "contactItemId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleContact01"
            },
            "description": "ID of the individual contact record. Find it in the id field when listing contact items."
          }
        ],
        "responses": {
          "200": {
            "description": "Contact item retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactItemResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the contact item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact item with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      },
      "patch": {
        "operationId": "ContactItemController_updateContactItem",
        "summary": "Update a contact item",
        "description": "Updates a contact item.",
        "parameters": [
          {
            "name": "contactItemId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleContact01"
            },
            "description": "ID of the individual contact record. Find it in the id field when listing contact items."
          }
        ],
        "responses": {
          "200": {
            "description": "Contact item updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactItemResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access the contact item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact item with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateContactItemRequestDto"
              },
              "example": {
                "position": "Sales Manager"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "ContactItemController_deleteContactItem",
        "summary": "Delete a contact item",
        "description": "Deletes a contact item.",
        "parameters": [
          {
            "name": "contactItemId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "ExampleContact01"
            },
            "description": "ID of the individual contact record. Find it in the id field when listing contact items."
          }
        ],
        "responses": {
          "200": {
            "description": "Contact item deleted successfully."
          },
          "403": {
            "description": "The account cannot access the contact item.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The contact item with the given ID does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "GetContactListResponseDto": {
        "type": "object",
        "properties": {
          "contactListId": {
            "type": "string",
            "description": "Use this list ID to read its contact items or add a new item.",
            "nullable": false
          },
          "organizationId": {
            "type": "string",
            "description": "Unique identifier of the organization",
            "nullable": false
          },
          "name": {
            "type": "string",
            "description": "Name of the contact list",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "isMain": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is the main list of a user",
            "nullable": false,
            "default": false
          },
          "isShared": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is shared in the organization",
            "nullable": false,
            "default": false
          },
          "isVisible": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is visible (a real contact list, not e.g. a list for inventory data)",
            "nullable": false,
            "default": false
          },
          "isGlobal": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is a global list",
            "nullable": false,
            "default": false
          },
          "client": {
            "type": "string",
            "description": "I don't know",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "settings": {
            "type": "object",
            "description": "Settings of the contact list",
            "nullable": false
          },
          "maxLength": {
            "type": "number",
            "description": "Maximum length of the contact list",
            "nullable": false
          },
          "flags": {
            "type": "array",
            "description": "Additional flags of the contact list",
            "nullable": false,
            "items": {
              "type": "string",
              "enum": [
                "is_visible_in_lead_research",
                "is_visible_in_data_agents",
                "is_visible_in_business_cards"
              ]
            }
          },
          "count": {
            "type": "number",
            "description": "Number of contacts in the contact list"
          }
        },
        "required": [
          "contactListId",
          "organizationId",
          "name",
          "isMain",
          "isShared",
          "isVisible",
          "isGlobal",
          "client",
          "settings",
          "flags"
        ],
        "title": "Contact list"
      },
      "GetSharedContactListResponseDto": {
        "type": "object",
        "properties": {
          "contactListId": {
            "type": "string",
            "description": "Unique identifier of the contact list",
            "nullable": false
          },
          "organizationId": {
            "type": "string",
            "description": "Unique identifier of the organization",
            "nullable": false
          },
          "name": {
            "type": "string",
            "description": "Name of the contact list",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "isMain": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is the main list of a user",
            "nullable": false,
            "default": false
          },
          "isShared": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is shared in the organization",
            "nullable": false,
            "default": false
          },
          "isVisible": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is visible (a real contact list, not e.g. a list for inventory data)",
            "nullable": false,
            "default": false
          },
          "isGlobal": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is a global list",
            "nullable": false,
            "default": false
          },
          "client": {
            "type": "string",
            "description": "I don't know",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "settings": {
            "type": "object",
            "description": "Settings of the contact list",
            "nullable": false
          },
          "maxLength": {
            "type": "number",
            "description": "Maximum length of the contact list",
            "nullable": false
          },
          "flags": {
            "type": "array",
            "description": "Additional flags of the contact list",
            "nullable": false,
            "items": {
              "type": "string",
              "enum": [
                "is_visible_in_lead_research",
                "is_visible_in_data_agents",
                "is_visible_in_business_cards"
              ]
            }
          },
          "count": {
            "type": "number",
            "description": "Number of contacts in the contact list"
          },
          "assignedUsers": {
            "description": "Ids of users that are assigned / have access to the contact list",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "assignedGroups": {
            "description": "Ids of groups that are assigned / have access to the contact list",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "contactListId",
          "organizationId",
          "name",
          "isMain",
          "isShared",
          "isVisible",
          "isGlobal",
          "client",
          "settings",
          "flags"
        ],
        "title": "Get Shared Contact List Response"
      },
      "ErrorArrayDto": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "Holds one or more errors that occurred.",
            "items": {
              "$ref": "#/components/schemas/ErrorDto"
            }
          }
        },
        "required": [
          "errors"
        ],
        "title": "Error Array"
      },
      "ErrorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short, technical ID of the occurred error"
          },
          "message": {
            "type": "string",
            "description": "A longer, more detailed error cause explanation"
          }
        },
        "required": [
          "id",
          "message"
        ],
        "title": "Error"
      },
      "CreateContactListRequestDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the contact list",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "isMain": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is the main list of a user",
            "nullable": false,
            "default": false
          },
          "isShared": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is shared",
            "nullable": false,
            "default": false
          },
          "isVisible": {
            "type": "boolean",
            "description": "Flag indicating that the contact list is visible",
            "nullable": false,
            "default": true
          },
          "client": {
            "type": "string",
            "description": "I don't know",
            "nullable": false,
            "maxLength": 255,
            "default": ""
          },
          "settings": {
            "type": "object",
            "description": "Settings for the contact list",
            "nullable": false,
            "default": {}
          },
          "flags": {
            "type": "array",
            "description": "Flags that are active for the given contact list",
            "nullable": false,
            "default": [],
            "items": {
              "type": "string",
              "enum": [
                "is_visible_in_lead_research",
                "is_visible_in_data_agents",
                "is_visible_in_business_cards"
              ]
            }
          }
        },
        "title": "Create Contact List Request"
      },
      "AssignContactListRequestDto": {
        "type": "object",
        "properties": {
          "userIds": {
            "description": "Ids of users with access to the contact list. Only these users will have access to the contact list. Access for missing users will be removed.",
            "nullable": false,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "groupIds": {
            "description": "Ids of groups with access to the contact list. Only these groups will have access to the contact list. Access for missing groups will be removed.",
            "nullable": false,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "title": "Assign Contact List Request"
      },
      "ContactItemForBusinessCardResponseDto": {
        "type": "object",
        "properties": {
          "actualCreatorId": {
            "type": "string",
            "description": "ID of the actual creator of this contact",
            "nullable": true
          },
          "bcChecked": {
            "type": "boolean",
            "description": "Whether the business card has been verified",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Contact's city",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "Company size",
            "nullable": true
          },
          "contactListId": {
            "type": "string",
            "description": "ID of the contact list this contact belongs to",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Contact's country",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "description": "ID of the user who created this contact",
            "nullable": true
          },
          "customFields": {
            "type": "object",
            "description": "Custom fields of the contact",
            "nullable": true,
            "additionalProperties": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax number",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "First name",
            "nullable": true
          },
          "gender": {
            "type": "number",
            "description": "Gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "enum": [
              -1,
              0,
              1
            ]
          },
          "id": {
            "type": "string",
            "description": "Unique contact ID"
          },
          "industry": {
            "type": "string",
            "description": "Industry",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name",
            "nullable": true
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL",
            "nullable": true
          },
          "meta": {
            "type": "object",
            "description": "Additional metadata",
            "nullable": true,
            "additionalProperties": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile phone number",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Additional notes",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company name",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box for the contact",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "revenue": {
            "type": "string",
            "description": "Company revenue",
            "nullable": true
          },
          "source": {
            "type": "string",
            "description": "Source of contact",
            "nullable": true
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the contact was created"
          },
          "listMemberOrdinal": {
            "format": "date-time",
            "type": "string",
            "description": "Ordinal timestamp of the contact within the contact list"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Timestamp when the contact item was last updated"
          },
          "state": {
            "type": "string",
            "description": "Contact's state or province",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "Value-added tax (VAT) number",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "xing": {
            "type": "string",
            "description": "Xing profile URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Postal code",
            "nullable": true
          },
          "avatar": {
            "description": "Profile image for the contact's avatar.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          },
          "attachmentsUrls": {
            "description": "Attachments related to the contact.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SignedFileResponseDto"
            }
          },
          "bcFront": {
            "description": "Frontside of the contact's scanned business card.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          },
          "bcBack": {
            "description": "Backside of the contact's scanned business card.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          },
          "externalNote": {
            "type": "string",
            "description": "Additional notes added by an external source (e.g. by the contact itself)",
            "nullable": true
          }
        },
        "required": [
          "actualCreatorId",
          "bcChecked",
          "city",
          "companySize",
          "contactListId",
          "country",
          "createdByUserId",
          "customFields",
          "email",
          "fax",
          "firstName",
          "gender",
          "id",
          "industry",
          "lastName",
          "linkedin",
          "meta",
          "mobile",
          "note",
          "organization",
          "phone",
          "poBox",
          "position",
          "revenue",
          "source",
          "startDate",
          "listMemberOrdinal",
          "updatedAt",
          "state",
          "street",
          "street2",
          "title",
          "vat",
          "website",
          "xing",
          "zip",
          "avatar",
          "attachmentsUrls",
          "bcFront",
          "bcBack",
          "externalNote"
        ],
        "title": "Contact Item For Business Card Response"
      },
      "SignedFileResponseDto": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "S3 key of the file",
            "nullable": false
          },
          "url": {
            "type": "string",
            "description": "Pre-signed URL to view or downloading the file directly from S3.",
            "nullable": false
          }
        },
        "required": [
          "key",
          "url"
        ],
        "title": "Signed File Response"
      },
      "ListContactItemResponseDto": {
        "type": "object",
        "properties": {
          "actualCreatorId": {
            "type": "string",
            "description": "ID of the actual creator of this contact",
            "nullable": true
          },
          "bcChecked": {
            "type": "boolean",
            "description": "Whether the business card has been verified",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Contact's city",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "Company size",
            "nullable": true
          },
          "contactListId": {
            "type": "string",
            "description": "ID of the contact list this contact belongs to",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Contact's country",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "description": "ID of the user who created this contact",
            "nullable": true
          },
          "customFields": {
            "type": "object",
            "description": "Custom fields of the contact",
            "nullable": true,
            "additionalProperties": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax number",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "First name",
            "nullable": true
          },
          "gender": {
            "type": "number",
            "description": "Gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "enum": [
              -1,
              0,
              1
            ]
          },
          "id": {
            "type": "string",
            "description": "Contact item ID. Use it to retrieve the full record or update a field."
          },
          "industry": {
            "type": "string",
            "description": "Industry",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name",
            "nullable": true
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL",
            "nullable": true
          },
          "meta": {
            "type": "object",
            "description": "Additional metadata",
            "nullable": true,
            "additionalProperties": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile phone number",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Additional notes",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company name",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box for the contact",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "revenue": {
            "type": "string",
            "description": "Company revenue",
            "nullable": true
          },
          "source": {
            "type": "string",
            "description": "Source of contact",
            "nullable": true
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the contact was created"
          },
          "listMemberOrdinal": {
            "format": "date-time",
            "type": "string",
            "description": "Ordinal timestamp of the contact within the contact list"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Timestamp when the contact item was last updated"
          },
          "state": {
            "type": "string",
            "description": "Contact's state or province",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "Value-added tax (VAT) number",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "xing": {
            "type": "string",
            "description": "Xing profile URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Postal code",
            "nullable": true
          },
          "avatar": {
            "description": "Profile image for the contact's avatar.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          }
        },
        "required": [
          "actualCreatorId",
          "bcChecked",
          "city",
          "companySize",
          "contactListId",
          "country",
          "createdByUserId",
          "customFields",
          "email",
          "fax",
          "firstName",
          "gender",
          "id",
          "industry",
          "lastName",
          "linkedin",
          "meta",
          "mobile",
          "note",
          "organization",
          "phone",
          "poBox",
          "position",
          "revenue",
          "source",
          "startDate",
          "listMemberOrdinal",
          "updatedAt",
          "state",
          "street",
          "street2",
          "title",
          "vat",
          "website",
          "xing",
          "zip",
          "avatar"
        ],
        "title": "Contact list item"
      },
      "GetContactItemIdsForContactListResponseDto": {
        "type": "object",
        "properties": {
          "ids": {
            "description": "IDs of the current items in this list. An empty list returns an empty array.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "ids"
        ],
        "title": "Get Contact Item Ids For Contact List Response"
      },
      "GetContactItemCountForContactListResponseDto": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "description": "Number of contact items in the selected list."
          }
        },
        "required": [
          "count"
        ],
        "title": "Get Contact Item Count For Contact List Response"
      },
      "ContactItemResponseDto": {
        "type": "object",
        "properties": {
          "actualCreatorId": {
            "type": "string",
            "description": "ID of the actual creator of this contact",
            "nullable": true
          },
          "bcChecked": {
            "type": "boolean",
            "description": "Whether the business card has been verified",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Contact's city",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "Company size",
            "nullable": true
          },
          "contactListId": {
            "type": "string",
            "description": "ID of the contact list this contact belongs to",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Contact's country",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "description": "ID of the user who created this contact",
            "nullable": true
          },
          "customFields": {
            "type": "object",
            "description": "Custom fields of the contact",
            "nullable": true,
            "additionalProperties": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax number",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "First name",
            "nullable": true
          },
          "gender": {
            "type": "number",
            "description": "Gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "enum": [
              -1,
              0,
              1
            ]
          },
          "id": {
            "type": "string",
            "description": "Contact item ID. Keep it when linking this record to a record in your system."
          },
          "industry": {
            "type": "string",
            "description": "Industry",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name",
            "nullable": true
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL",
            "nullable": true
          },
          "meta": {
            "type": "object",
            "description": "Additional metadata",
            "nullable": true,
            "additionalProperties": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile phone number",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Additional notes",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company name",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box for the contact",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "revenue": {
            "type": "string",
            "description": "Company revenue",
            "nullable": true
          },
          "source": {
            "type": "string",
            "description": "Source of contact",
            "nullable": true
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the contact was created"
          },
          "listMemberOrdinal": {
            "format": "date-time",
            "type": "string",
            "description": "Ordinal timestamp of the contact within the contact list"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Timestamp when the contact item was last updated"
          },
          "state": {
            "type": "string",
            "description": "Contact's state or province",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "Value-added tax (VAT) number",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "xing": {
            "type": "string",
            "description": "Xing profile URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Postal code",
            "nullable": true
          },
          "avatar": {
            "description": "Profile image for the contact's avatar.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          },
          "attachmentsUrls": {
            "description": "Attachments related to the contact.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SignedFileResponseDto"
            }
          },
          "bcFront": {
            "description": "Frontside of the contact's scanned business card.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          },
          "bcBack": {
            "description": "Backside of the contact's scanned business card.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SignedFileResponseDto"
              }
            ]
          }
        },
        "required": [
          "actualCreatorId",
          "bcChecked",
          "city",
          "companySize",
          "contactListId",
          "country",
          "createdByUserId",
          "customFields",
          "email",
          "fax",
          "firstName",
          "gender",
          "id",
          "industry",
          "lastName",
          "linkedin",
          "meta",
          "mobile",
          "note",
          "organization",
          "phone",
          "poBox",
          "position",
          "revenue",
          "source",
          "startDate",
          "listMemberOrdinal",
          "updatedAt",
          "state",
          "street",
          "street2",
          "title",
          "vat",
          "website",
          "xing",
          "zip",
          "avatar",
          "attachmentsUrls",
          "bcFront",
          "bcBack"
        ],
        "title": "Contact details"
      },
      "CreateContactItemRequestDto": {
        "type": "object",
        "properties": {
          "contactListId": {
            "type": "string",
            "description": "ID of the contact list the contact item belongs to",
            "nullable": false
          },
          "bcChecked": {
            "type": "boolean",
            "description": "Whether the business card has been verified",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Contact's city",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "Company size",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Contact's country",
            "nullable": true
          },
          "customFields": {
            "type": "object",
            "description": "Custom fields of the contact",
            "nullable": true,
            "additionalProperties": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax number",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "First name",
            "nullable": true
          },
          "gender": {
            "type": "number",
            "description": "Gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "nullable": true,
            "enum": [
              -1,
              0,
              1
            ]
          },
          "lastName": {
            "type": "string",
            "description": "Last name",
            "nullable": true
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL",
            "nullable": true
          },
          "listMemberOrdinal": {
            "format": "date-time",
            "type": "string",
            "description": "Ordinal timestamp of the contact within the contact list",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "description": "Industry",
            "nullable": true
          },
          "meta": {
            "type": "object",
            "description": "Additional metadata",
            "nullable": true,
            "additionalProperties": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile phone number",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Additional notes",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company name",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box for the contact",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "revenue": {
            "type": "string",
            "description": "Company revenue",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true,
            "description": "Source of contact"
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Creation date of the contact item. If not provided, the current date will be used.",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "Contact's state or province",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "Value-added tax (VAT) number",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "xing": {
            "type": "string",
            "description": "Xing profile URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Postal code",
            "nullable": true
          }
        },
        "required": [
          "contactListId"
        ],
        "title": "Create Contact Item Request"
      },
      "UpdateContactItemRequestDto": {
        "type": "object",
        "properties": {
          "bcChecked": {
            "type": "boolean",
            "description": "Whether the business card has been verified",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "Contact's city",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "Company size",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Contact's country",
            "nullable": true
          },
          "customFields": {
            "type": "object",
            "description": "Custom fields of the contact",
            "nullable": true,
            "additionalProperties": true
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax number",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "First name",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Last name",
            "nullable": true
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL",
            "nullable": true
          },
          "listMemberOrdinal": {
            "format": "date-time",
            "type": "string",
            "description": "Ordinal timestamp of the contact within the contact list",
            "nullable": true
          },
          "industry": {
            "type": "string",
            "description": "Industry",
            "nullable": true
          },
          "meta": {
            "type": "object",
            "description": "Additional metadata",
            "nullable": true,
            "additionalProperties": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile phone number",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Additional notes",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company name",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box for the contact",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "revenue": {
            "type": "string",
            "description": "Company revenue",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true,
            "description": "Source of contact"
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Creation date of the contact item. If not provided, the current date will be used.",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "Contact's state or province",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "vat": {
            "type": "string",
            "description": "Value-added tax (VAT) number",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "xing": {
            "type": "string",
            "description": "Xing profile URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Postal code",
            "nullable": true
          },
          "contactListId": {
            "type": "string",
            "description": "ID of the contact list the contact item belongs to",
            "nullable": false
          },
          "gender": {
            "type": "number",
            "description": "Gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "nullable": false,
            "enum": [
              -1,
              0,
              1
            ]
          }
        },
        "title": "Update Contact Item Request"
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Use a [personal API token](/authentication/#personal-api-token)."
      }
    }
  }
}
