{
  "openapi": "3.0.0",
  "info": {
    "title": "BusinessCards API",
    "version": "1",
    "description": "Create a digital business card, find a colleague’s shareable card, or save a card to a phone."
  },
  "servers": [
    {
      "url": "https://backend.snapaddy.com/digital-card"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "DigitalCardController_getDigitalCards",
        "summary": "List your digital cards",
        "description": "Read the digitalCards array for the current user and organization. Each card has a digitalCardId and may have a publicLink.",
        "parameters": [],
        "responses": {
          "200": {
            "description": "The digitalCards array contains the current user’s cards in this organization.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDigitalCardsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case search parameters are invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      },
      "post": {
        "operationId": "DigitalCardController_createDigitalCard",
        "summary": "Create your digital card",
        "description": "Create a digital card for the current user. Use the returned card ID to identify the card and its publicLink to share it when available.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "The digital card has been successfully created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDigitalCardResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case your provided body is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "The account must belong to the organization. Advanced card styling requires paid BusinessCards access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "The user has reached the maximum number of digital cards (`MAX_CARD_LIMIT_REACHED`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "The digital card to be persisted.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDigitalCardRequestDto"
              },
              "example": {
                "firstName": "Alex",
                "lastName": "Morgan",
                "email": "alex@example.com",
                "primaryColor": "#19624B"
              }
            }
          }
        }
      }
    },
    "/digital-card-management/find": {
      "get": {
        "operationId": "DigitalCardManagementController_findDigitalCards",
        "summary": "List organization digital cards",
        "description": "Search the organization’s card inventory as a BusinessCards Manager or administrator with paid BusinessCards access. Read digitalCards and total to page through matches.",
        "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": "sortOrder",
            "required": false,
            "in": "query",
            "description": "The sort order of digital cards.",
            "schema": {
              "default": "ASC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "sortBy",
            "required": false,
            "in": "query",
            "description": "The field to sort digital cards by.",
            "schema": {
              "default": "FIRST_NAME",
              "type": "string",
              "enum": [
                "CREATED_DATE",
                "EMAIL",
                "FIELDS_FILLED",
                "NAME",
                "FIRST_NAME",
                "LAST_NAME",
                "POLICIES_APPLIED_DATE",
                "UPDATED_DATE"
              ]
            }
          },
          {
            "name": "filterByManagedStatus",
            "required": false,
            "in": "query",
            "description": "The filtering option for the managed status.",
            "schema": {
              "type": "string",
              "enum": [
                "MANAGED",
                "UNMANAGED"
              ]
            }
          },
          {
            "name": "filterByPoliciesAppliedStatus",
            "required": false,
            "in": "query",
            "description": "The filtering option for the policies applied status.",
            "schema": {
              "type": "string",
              "enum": [
                "UP_TO_DATE",
                "OUTDATED",
                "NOT_APPLIED"
              ]
            }
          },
          {
            "name": "filterByShareabilityStatus",
            "required": false,
            "in": "query",
            "description": "The filtering option for the sharing status.",
            "schema": {
              "type": "string",
              "enum": [
                "SHAREABLE",
                "NOT_SHAREABLE"
              ]
            }
          },
          {
            "name": "searchText",
            "required": false,
            "in": "query",
            "description": "The search text to filter the digital cards by. The text will be matched against the owner's username, firstname and lastname. Minimum length is 3 characters.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          },
          {
            "name": "digitalCardTemplateId",
            "required": false,
            "in": "query",
            "description": "The digital card template ID to filter the digital cards by. If the value is 'none', digital cards without a template will be returned.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          },
          {
            "name": "excludeDigitalCardTemplateId",
            "required": false,
            "in": "query",
            "description": "The digital card template ID to exclude from the search results. Must be empty if 'digitalCardTemplateId' is set.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          },
          {
            "name": "groupId",
            "required": false,
            "in": "query",
            "description": "The group ID to filter the digital cards by. If the value is 'none', digital cards owned by users without a group will be returned.",
            "schema": {
              "nullable": false,
              "type": "string",
              "example": "33333333-3333-4333-8333-333333333333"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The digital cards were found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FoundDigitalCardsResponseDto"
                }
              }
            }
          },
          "403": {
            "description": "Requires a BusinessCards Manager or administrator with paid BusinessCards access.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/digital-card-sharing/list": {
      "get": {
        "operationId": "DigitalCardSharingController_getShareableCardList",
        "summary": "Find shareable team cards",
        "description": "Find shareable team cards when organization sharing is enabled. Requires access to paid BusinessCards features. Use limit and offset to page through shareableCards.",
        "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": "sortOrder",
            "required": false,
            "in": "query",
            "description": "The sort order of digital cards.",
            "schema": {
              "default": "ASC",
              "type": "string",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "sortBy",
            "required": false,
            "in": "query",
            "description": "The field to sort digital cards by.",
            "schema": {
              "default": "FIRST_NAME",
              "type": "string",
              "enum": [
                "FIRST_NAME",
                "LAST_NAME"
              ]
            }
          },
          {
            "name": "searchText",
            "required": false,
            "in": "query",
            "description": "The search text to filter the digital cards by. The text will be matched against the owner's firstname and lastname. Minimum length is 3 characters.",
            "schema": {
              "nullable": false,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Shareable cards.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListShareableCardsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case of invalid or unprocessable data."
          },
          "401": {
            "description": "The API key is missing or invalid."
          },
          "403": {
            "description": "Your account lacks access to this operation."
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/digital-card-sharing/card/{cardId}": {
      "get": {
        "operationId": "DigitalCardSharingController_getShareableCard",
        "summary": "Get a team card’s public link",
        "description": "Use a card ID from the shareable cards list to retrieve the card and its public link. The organization must have card sharing enabled.",
        "parameters": [
          {
            "name": "cardId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "example": "33333333-3333-4333-8333-333333333333"
            },
            "description": "Digital card ID returned in the shareable cards list."
          }
        ],
        "responses": {
          "200": {
            "description": "Shareable card.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetShareableCardResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case of invalid or unprocessable data."
          },
          "401": {
            "description": "The API key is missing or invalid."
          },
          "403": {
            "description": "Your account lacks access to this operation."
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/{id}/downloads/apple-wallet": {
      "get": {
        "operationId": "DownloadController_getAppleWalletDownload",
        "summary": "Download an Apple Wallet pass",
        "description": "Use the digital card ID to download its Apple Wallet pass directly.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "The ID of the digital card.",
            "schema": {
              "type": "string",
              "example": "33333333-3333-4333-8333-333333333333"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "An Apple Wallet pass (.pkpass). Save the response body as a binary file.",
            "content": {
              "application/vnd.apple.pkpass": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "In case search parameters are invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the digital card was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/{id}/redirects/google-wallet": {
      "get": {
        "operationId": "RedirectController_redirectToGoogleWalletPreview",
        "summary": "Open a card in Google Wallet",
        "description": "Share this URL with the recipient to open the card in Google Wallet.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "The ID of the digital card.",
            "schema": {
              "type": "string",
              "example": "33333333-3333-4333-8333-333333333333"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirect to the Google Wallet save URL.",
            "headers": {
              "Location": {
                "description": "Google Wallet save URL.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "In case search parameters are invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the digital card was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/{id}/downloads/vcard": {
      "get": {
        "operationId": "DownloadController_getVCardDownload",
        "summary": "Download a vCard contact file",
        "description": "Use the digital card ID to download its vCard file directly.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "The ID of the digital card.",
            "schema": {
              "type": "string",
              "example": "33333333-3333-4333-8333-333333333333"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A vCard (.vcf) contact file. Save the response body or import it into a contact app.",
            "content": {
              "text/vcard": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "In case search parameters are invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the digital card was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "GetDigitalCardsResponseDto": {
        "type": "object",
        "properties": {
          "digitalCards": {
            "type": "array",
            "description": "Digital cards owned by the current user in the current organization.",
            "items": {
              "$ref": "#/components/schemas/GetDigitalCardResponseDto"
            },
            "nullable": false
          }
        },
        "required": [
          "digitalCards"
        ],
        "title": "Your digital cards"
      },
      "GetDigitalCardResponseDto": {
        "type": "object",
        "properties": {
          "digitalCardId": {
            "type": "string",
            "description": "ID of the digital card",
            "nullable": false
          },
          "digitalCardTemplateId": {
            "type": "string",
            "description": "ID of the digital card template driving card's appearance and behavior",
            "nullable": true
          },
          "digitalCardTemplatePolicyId": {
            "type": "string",
            "description": "ID of the template policy applied to the digital card",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the digital card owner",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Lastname of the digital card owner",
            "nullable": true
          },
          "legalUrl": {
            "type": "string",
            "description": "Custom legal URL of the card",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company of the digital card owner",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job title of the digital card owner",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "The phone number of the digital card owner",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile of the digital card owner",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax of the digital card owner",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email of the digital card owner",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website of the digital card owner",
            "nullable": true
          },
          "nameSuffix": {
            "type": "string",
            "description": "Name suffix of the digital card owner",
            "nullable": true
          },
          "division": {
            "type": "string",
            "description": "Division of the digital card owner",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department of the digital card owner",
            "nullable": true
          },
          "customTags": {
            "type": "string",
            "description": "Custom tags (accreditations) of the digital card owner",
            "nullable": true
          },
          "infoHeading": {
            "type": "string",
            "description": "Info heading of the digital card owner",
            "nullable": true
          },
          "infoContent": {
            "type": "string",
            "description": "Info content of the digital card owner",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "The street of the digital card owner",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Additional street information of the digital card owner",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box of the digital card owner",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the digital card owner",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Zip of the digital card owner",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State of the digital card owner",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the digital card owner",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "description": "The color of the digital card",
            "nullable": false
          },
          "secondaryColor": {
            "type": "string",
            "description": "The color of the digital card",
            "nullable": true
          },
          "avatar": {
            "type": "string",
            "description": "The storage link to avatar of the digital card",
            "nullable": true
          },
          "logo": {
            "type": "string",
            "description": "The storage link to logo of the digital card",
            "nullable": true
          },
          "hero": {
            "type": "string",
            "description": "The storage link to hero of the digital card",
            "nullable": true
          },
          "publicLink": {
            "type": "string",
            "description": "The URL link under which the digital card is publicly available",
            "nullable": true
          },
          "canOthersSharePublicLink": {
            "type": "boolean",
            "description": "Whether the digital card can be shared with others",
            "nullable": true
          },
          "links": {
            "type": "array",
            "description": "Array of custom links of the digital card",
            "items": {
              "$ref": "#/components/schemas/DigitalCardLinkResponseDto"
            },
            "nullable": false
          },
          "fontFamily": {
            "type": "string",
            "description": "The font family of the digital card",
            "nullable": false
          },
          "cornerRadius": {
            "type": "number",
            "description": "The corner radius of the digital card",
            "nullable": false
          },
          "iconSize": {
            "type": "string",
            "description": "The icon size of the digital card",
            "enum": [
              "small",
              "medium",
              "large"
            ],
            "nullable": false
          },
          "backgroundStyle": {
            "type": "string",
            "description": "Background style of the digital card",
            "enum": [
              "gradient",
              "solid"
            ],
            "nullable": false
          },
          "logoPosition": {
            "type": "string",
            "description": "The position of the logo on the digital card",
            "enum": [
              "left",
              "right"
            ],
            "nullable": false
          },
          "walletColor": {
            "type": "string",
            "description": "The color of the card in the google/apple wallet",
            "nullable": false
          },
          "walletLogo": {
            "type": "string",
            "description": "The storage link to logo of the digital card in the google/apple wallet",
            "nullable": true
          },
          "created": {
            "type": "string",
            "description": "The date the digital card was created",
            "format": "date-time",
            "nullable": false
          },
          "updated": {
            "type": "string",
            "description": "The date the digital card was updated",
            "format": "date-time",
            "nullable": false
          },
          "templatePoliciesAppliedAt": {
            "type": "string",
            "description": "Date when the restriction policies of template were last applied",
            "format": "date-time",
            "nullable": true
          },
          "cardName": {
            "type": "string",
            "description": "Internal name of the digital card",
            "nullable": true
          }
        },
        "required": [
          "digitalCardId",
          "digitalCardTemplateId",
          "digitalCardTemplatePolicyId",
          "title",
          "firstName",
          "lastName",
          "legalUrl",
          "organization",
          "position",
          "phone",
          "mobile",
          "fax",
          "email",
          "website",
          "nameSuffix",
          "division",
          "department",
          "customTags",
          "infoHeading",
          "infoContent",
          "street",
          "street2",
          "poBox",
          "city",
          "zip",
          "state",
          "country",
          "primaryColor",
          "secondaryColor",
          "avatar",
          "logo",
          "hero",
          "publicLink",
          "canOthersSharePublicLink",
          "links",
          "fontFamily",
          "cornerRadius",
          "iconSize",
          "backgroundStyle",
          "logoPosition",
          "walletColor",
          "walletLogo",
          "created",
          "updated",
          "templatePoliciesAppliedAt",
          "cardName"
        ],
        "title": "Digital business card"
      },
      "DigitalCardLinkResponseDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the custom link",
            "enum": [
              "LINK",
              "PHONE",
              "EMAIL"
            ],
            "nullable": false
          },
          "icon": {
            "type": "string",
            "description": "FontAwesome icon to use for this link",
            "nullable": false
          },
          "isShortcut": {
            "type": "boolean",
            "description": "Flag driving UI representation of the custom link",
            "nullable": false
          },
          "link": {
            "type": "string",
            "description": "The link of the custom link",
            "nullable": false
          },
          "label": {
            "type": "string",
            "description": "The label of the custom link. Max length is 255 characters",
            "nullable": false
          }
        },
        "required": [
          "type",
          "icon",
          "isShortcut",
          "link",
          "label"
        ],
        "title": "Digital Card Link 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"
      },
      "CreateDigitalCardResponseDto": {
        "type": "object",
        "properties": {
          "digitalCardId": {
            "type": "string",
            "description": "ID of the digital card",
            "nullable": false
          },
          "digitalCardTemplateId": {
            "type": "string",
            "description": "ID of the digital card template driving card's appearance and behavior",
            "nullable": true
          },
          "digitalCardTemplatePolicyId": {
            "type": "string",
            "description": "ID of the template policy applied to the digital card",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title of the digital card owner",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Lastname of the digital card owner",
            "nullable": true
          },
          "legalUrl": {
            "type": "string",
            "description": "Custom legal URL of the card",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Company of the digital card owner",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job title of the digital card owner",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "The phone number of the digital card owner",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile of the digital card owner",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Fax of the digital card owner",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email of the digital card owner",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website of the digital card owner",
            "nullable": true
          },
          "nameSuffix": {
            "type": "string",
            "description": "Name suffix of the digital card owner",
            "nullable": true
          },
          "division": {
            "type": "string",
            "description": "Division of the digital card owner",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department of the digital card owner",
            "nullable": true
          },
          "customTags": {
            "type": "string",
            "description": "Custom tags (accreditations) of the digital card owner",
            "nullable": true
          },
          "infoHeading": {
            "type": "string",
            "description": "Info heading of the digital card owner",
            "nullable": true
          },
          "infoContent": {
            "type": "string",
            "description": "Info content of the digital card owner",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "The street of the digital card owner",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Additional street information of the digital card owner",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "PO Box of the digital card owner",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "City of the digital card owner",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "Zip of the digital card owner",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State of the digital card owner",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country of the digital card owner",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "description": "The color of the digital card",
            "nullable": false
          },
          "secondaryColor": {
            "type": "string",
            "description": "The color of the digital card",
            "nullable": true
          },
          "avatar": {
            "type": "string",
            "description": "The storage link to avatar of the digital card",
            "nullable": true
          },
          "logo": {
            "type": "string",
            "description": "The storage link to logo of the digital card",
            "nullable": true
          },
          "hero": {
            "type": "string",
            "description": "The storage link to hero of the digital card",
            "nullable": true
          },
          "publicLink": {
            "type": "string",
            "description": "The URL link under which the digital card is publicly available",
            "nullable": true
          },
          "canOthersSharePublicLink": {
            "type": "boolean",
            "description": "Whether the digital card can be shared with others",
            "nullable": true
          },
          "links": {
            "type": "array",
            "description": "Array of custom links of the digital card",
            "items": {
              "$ref": "#/components/schemas/DigitalCardLinkResponseDto"
            },
            "nullable": false
          },
          "fontFamily": {
            "type": "string",
            "description": "The font family of the digital card",
            "nullable": false
          },
          "cornerRadius": {
            "type": "number",
            "description": "The corner radius of the digital card",
            "nullable": false
          },
          "iconSize": {
            "type": "string",
            "description": "The icon size of the digital card",
            "enum": [
              "small",
              "medium",
              "large"
            ],
            "nullable": false
          },
          "backgroundStyle": {
            "type": "string",
            "description": "Background style of the digital card",
            "enum": [
              "gradient",
              "solid"
            ],
            "nullable": false
          },
          "logoPosition": {
            "type": "string",
            "description": "The position of the logo on the digital card",
            "enum": [
              "left",
              "right"
            ],
            "nullable": false
          },
          "walletColor": {
            "type": "string",
            "description": "The color of the card in the google/apple wallet",
            "nullable": false
          },
          "walletLogo": {
            "type": "string",
            "description": "The storage link to logo of the digital card in the google/apple wallet",
            "nullable": true
          },
          "created": {
            "type": "string",
            "description": "The date the digital card was created",
            "format": "date-time",
            "nullable": false
          },
          "updated": {
            "type": "string",
            "description": "The date the digital card was updated",
            "format": "date-time",
            "nullable": false
          },
          "templatePoliciesAppliedAt": {
            "type": "string",
            "description": "Date when the restriction policies of template were last applied",
            "format": "date-time",
            "nullable": true
          },
          "cardName": {
            "type": "string",
            "description": "Internal name of the digital card",
            "nullable": true
          }
        },
        "required": [
          "digitalCardId",
          "digitalCardTemplateId",
          "digitalCardTemplatePolicyId",
          "title",
          "firstName",
          "lastName",
          "legalUrl",
          "organization",
          "position",
          "phone",
          "mobile",
          "fax",
          "email",
          "website",
          "nameSuffix",
          "division",
          "department",
          "customTags",
          "infoHeading",
          "infoContent",
          "street",
          "street2",
          "poBox",
          "city",
          "zip",
          "state",
          "country",
          "primaryColor",
          "secondaryColor",
          "avatar",
          "logo",
          "hero",
          "publicLink",
          "canOthersSharePublicLink",
          "links",
          "fontFamily",
          "cornerRadius",
          "iconSize",
          "backgroundStyle",
          "logoPosition",
          "walletColor",
          "walletLogo",
          "created",
          "updated",
          "templatePoliciesAppliedAt",
          "cardName"
        ],
        "title": "Create Digital Card Response"
      },
      "CreateDigitalCardRequestDto": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "The title of the digital card owner",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "The firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "The lastname of the digital card owner",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "The company of the digital card owner",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "The job title of the digital card owner",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "The phone number of the digital card owner",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "description": "The mobile number of the digital card owner",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "The fax number of the digital card owner",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "The email of the digital card owner",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "The website of the digital card owner",
            "nullable": true
          },
          "nameSuffix": {
            "type": "string",
            "description": "The name suffix of the digital card owner",
            "nullable": true
          },
          "division": {
            "type": "string",
            "description": "The division of the digital card owner",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "The department of the digital card owner",
            "nullable": true
          },
          "customTags": {
            "type": "string",
            "description": "The custom tags (accreditations) of the digital card owner. Separate tags with a semicolon.",
            "nullable": true
          },
          "infoHeading": {
            "type": "string",
            "description": "The info heading of the digital card owner",
            "nullable": true
          },
          "infoContent": {
            "type": "string",
            "description": "The info content of the digital card owner",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "The street of the digital card owner",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Additional street information of the digital card owner",
            "nullable": true
          },
          "poBox": {
            "type": "string",
            "description": "The pobox of the digital card owner",
            "nullable": true
          },
          "city": {
            "type": "string",
            "description": "The city of the digital card owner",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "The zip of the digital card owner",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "The state of the digital card owner",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "The country of the digital card owner",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "description": "The primary color of the digital card. Validated by regex /^#([0-9A-F]{3}){1,2}$/i",
            "nullable": false
          },
          "secondaryColor": {
            "type": "string",
            "description": "The secondary color of the digital card. Validated by regex /^#([0-9A-F]{3}){1,2}$/i",
            "nullable": true
          },
          "links": {
            "description": "Array of custom links of the digital card",
            "nullable": false,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DigitalCardLinkRequestDto"
            }
          },
          "fontFamily": {
            "type": "string",
            "description": "The font family of the digital card",
            "nullable": false
          },
          "cornerRadius": {
            "type": "number",
            "description": "The corner radius of the digital card. Maximum supported value is 64px and minimum is 0px",
            "nullable": false
          },
          "iconSize": {
            "type": "string",
            "description": "The icon size of the digital card",
            "enum": [
              "small",
              "medium",
              "large"
            ],
            "nullable": false
          },
          "backgroundStyle": {
            "type": "string",
            "description": "Background style of the digital card",
            "enum": [
              "gradient",
              "solid"
            ],
            "nullable": false
          },
          "logoPosition": {
            "type": "string",
            "description": "The position of the logo on the digital card",
            "enum": [
              "left",
              "right"
            ],
            "nullable": false
          },
          "walletColor": {
            "type": "string",
            "description": "The color of the card in the google/apple wallet. Validated by regex /^#([0-9A-F]{3}){1,2}$/i",
            "nullable": false
          },
          "cardName": {
            "type": "string",
            "description": "Digital card name. Readable differentiator because user can have multiple cards.",
            "nullable": true
          },
          "hero": {
            "type": "string",
            "description": "The storage link to the hero of the digital card. If deletion of the hero image is desired, use the DELETE /:id/hero endpoint.",
            "nullable": true
          }
        },
        "required": [
          "primaryColor"
        ],
        "title": "Create Digital Card Request"
      },
      "DigitalCardLinkRequestDto": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The type of the custom link",
            "enum": [
              "LINK",
              "PHONE",
              "EMAIL"
            ],
            "nullable": false
          },
          "isShortcut": {
            "type": "boolean",
            "description": "Flag driving UI representation of the custom link",
            "nullable": false
          },
          "icon": {
            "type": "string",
            "description": "FontAwesome icon to use for this link",
            "nullable": false
          },
          "link": {
            "type": "string",
            "description": "The link of the custom link",
            "nullable": false
          },
          "label": {
            "type": "string",
            "description": "The label of the custom link. Max length is 255 characters",
            "nullable": false
          }
        },
        "required": [
          "type",
          "isShortcut",
          "icon",
          "link",
          "label"
        ],
        "title": "Digital Card Link Request"
      },
      "FoundDigitalCardsResponseDto": {
        "type": "object",
        "properties": {
          "digitalCards": {
            "type": "array",
            "description": "The digital cards found by the search query",
            "items": {
              "$ref": "#/components/schemas/FoundDigitalCardDto"
            },
            "nullable": false
          },
          "total": {
            "type": "number",
            "description": "The total amount of digital cards found by the search query",
            "nullable": false
          }
        },
        "required": [
          "digitalCards",
          "total"
        ],
        "title": "Found Digital Cards Response"
      },
      "FoundDigitalCardDto": {
        "type": "object",
        "properties": {
          "digitalCardId": {
            "type": "string",
            "description": "ID of the digital card",
            "nullable": false
          },
          "digitalCardTemplateId": {
            "type": "string",
            "description": "ID of the digital card template driving card's appearance and behavior",
            "nullable": true
          },
          "digitalCardTemplatePolicyId": {
            "type": "string",
            "description": "ID of the template policy applied to the digital card",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Lastname of the digital card owner",
            "nullable": true
          },
          "legalUrl": {
            "type": "string",
            "description": "Custom legal URL of the card",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job title of the digital card owner",
            "nullable": true
          },
          "avatar": {
            "type": "string",
            "description": "The storage link to avatar of the digital card",
            "nullable": true
          },
          "publicLink": {
            "type": "string",
            "description": "The URL link under which the digital card is publicly available",
            "nullable": true
          },
          "canOthersSharePublicLink": {
            "type": "boolean",
            "description": "Whether the digital card can be shared with others",
            "nullable": true
          },
          "created": {
            "type": "string",
            "description": "The date the digital card was created",
            "format": "date-time",
            "nullable": false
          },
          "updated": {
            "type": "string",
            "description": "The date the digital card was updated",
            "format": "date-time",
            "nullable": false
          },
          "templatePoliciesAppliedAt": {
            "type": "string",
            "description": "Date when the restriction policies of template were last applied",
            "format": "date-time",
            "nullable": true
          },
          "cardName": {
            "type": "string",
            "description": "Internal name of the digital card",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "description": "The ID of the user owning the digital card",
            "nullable": false
          },
          "email": {
            "type": "string",
            "description": "The email of the user owning the digital card. Do not mix this with digital card's email contact field. This the username of the user they use to sign in.",
            "nullable": false
          },
          "managed": {
            "type": "boolean",
            "description": "Whether the organization member has paid BusinessCards access.",
            "nullable": false
          },
          "filledFieldsCount": {
            "type": "number",
            "description": "Number of fields filled by the user",
            "nullable": false
          },
          "policiesAppliedStatus": {
            "type": "string",
            "description": "Policy applied status of the digital card",
            "enum": [
              "UP_TO_DATE",
              "OUTDATED",
              "NOT_APPLIED"
            ],
            "nullable": false
          }
        },
        "required": [
          "digitalCardId",
          "digitalCardTemplateId",
          "digitalCardTemplatePolicyId",
          "firstName",
          "lastName",
          "legalUrl",
          "position",
          "avatar",
          "publicLink",
          "canOthersSharePublicLink",
          "created",
          "updated",
          "templatePoliciesAppliedAt",
          "cardName",
          "userId",
          "email",
          "managed",
          "filledFieldsCount",
          "policiesAppliedStatus"
        ],
        "title": "Found Digital Card"
      },
      "ListShareableCardsResponseDto": {
        "type": "object",
        "properties": {
          "shareableCards": {
            "description": "The pageinated shareable cards found by the search query",
            "nullable": false,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ShareableCardListItemDto"
            }
          },
          "total": {
            "type": "number",
            "description": "The total amount of shareable cards found by the search query",
            "nullable": false
          }
        },
        "required": [
          "shareableCards",
          "total"
        ],
        "title": "List Shareable Cards Response"
      },
      "ShareableCardListItemDto": {
        "type": "object",
        "properties": {
          "digitalCardId": {
            "type": "string",
            "description": "ID of the digital card",
            "nullable": false
          },
          "title": {
            "type": "string",
            "description": "Title of the digital card owner",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Lastname of the digital card owner",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job title of the digital card owner",
            "nullable": true
          },
          "avatar": {
            "type": "string",
            "description": "The storage link to avatar of the digital card",
            "nullable": true
          }
        },
        "required": [
          "digitalCardId",
          "title",
          "firstName",
          "lastName",
          "position",
          "avatar"
        ],
        "title": "Shareable Card List Item"
      },
      "GetShareableCardResponseDto": {
        "type": "object",
        "properties": {
          "digitalCardId": {
            "type": "string",
            "description": "ID of the digital card",
            "nullable": false
          },
          "title": {
            "type": "string",
            "description": "Title of the digital card owner",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "Firstname of the digital card owner",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Lastname of the digital card owner",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job title of the digital card owner",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "The phone number of the digital card owner",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "description": "Mobile of the digital card owner",
            "nullable": true
          },
          "avatar": {
            "type": "string",
            "description": "The storage link to avatar of the digital card",
            "nullable": true
          },
          "publicLink": {
            "type": "string",
            "description": "Recipient-facing card URL, when available. Use this value for a share button or QR code.",
            "nullable": true
          }
        },
        "required": [
          "digitalCardId",
          "title",
          "firstName",
          "lastName",
          "position",
          "phone",
          "mobile",
          "avatar",
          "publicLink"
        ],
        "title": "Get Shareable Card Response"
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Use a [personal API token](/authentication/#personal-api-token)."
      }
    }
  }
}
