{
  "supportedAuthenticationConfigurations" : [
    {
      "apiKeyHeader" : "x-api-key",
      "authenticationMethod" : "OAUTH2_CLIENT_CREDENTIALS",
      "tokenEndpoint" : "{Connection.AUTH_URL}/oauth/token",
      "grantType" : "client_credentials",
      "contentType" : "application/x-www-form-urlencoded",
      "audienceLabel" : "Audience",
      "assertionFieldName" : "client_assertion",
      "audienceLabelRequired" : false,
      "subjectLabel" : "Subject",
      "subjectLabelRequired" : false,
      "issuerLabel" : "Issuer",
      "issuerLabelRequired" : false,
      "enableCustomJwtHeaders" : false,
      "customJwtHeaders" : [ ],
      "enableCustomJwtClaims" : false,
      "customJwtClaims" : [ ],
      "enableCustomHeaders" : false,
      "customHeaders" : [ ],
      "signatureAlgorithm" : "HS256",
      "customAuthenticationMethodConfiguration" : {
        "authenticationRequest" : true,
        "authenticationRequestHeaders" : [ ],
        "endpointHeaders" : [ ],
        "url" : "",
        "httpMethod" : "GET",
        "requestParameters" : { },
        "bodyFormat" : "XWWWFORMURLENCODED",
        "contentType" : "JSON",
        "content" : "",
        "formParams" : { },
        "responseTokenKey" : "",
        "requestTokenHeader" : "",
        "requestTokenPrefix" : ""
      },
      "useBodyForOAuth" : false,
      "useBodyForClientCredentialsAndResourceOwner" : true,
      "enableCustomField" : false,
      "customFields" : [ ]
    }
  ],
  "connectionParameters" : [
    {
      "name" : "API URL",
      "placeholder" : "API_URL",
      "defaultValue" : "https://api.emporix.io",
      "mandatory" : true
    },
    {
      "name" : "AUTH_URL",
      "placeholder" : "AUTH_URL",
      "defaultValue" : "https://api.emporix.io",
      "confidential" : false,
      "mandatory" : false
    }
  ],
  "supportedFilteringSyntaxes" : [ ],
  "endpoints" : [
    {
      "id" : "05efa538-9d81-465c-81b3-4c2d45208791",
      "dependsOn" : "",
      "name" : "Get Magic Links",
      "type" : "DEFAULT",
      "httpMethod" : "GET",
      "bodyFormat" : "XWWWFORMURLENCODED",
      "url" : "{Connection.API_URL}/copb-api/v0/magic-links",
      "requestParameters" : [ ],
      "headers" : { },
      "formParams" : { },
      "contentType" : "JSON",
      "pagination" : {
        "paginationMethod" : "PAGE_BY_PAGE_PAGINATION",
        "paginationData" : {
          "pageParameter" : "pageNumber",
          "pageSize" : "pageSize",
          "defaultPageSize" : 100,
          "defaultFirstPageIndex" : 1,
          "nextPageUrlRequiresEncoding" : false
        }
      },
      "response" : {
        "tableName" : "magic_link",
        "responseType" : "JSON",
        "columns" : [
          {
            "name" : "id",
            "type" : "STRING",
            "primaryKey" : true
          },
          {
            "name" : "name",
            "type" : "STRING"
          },
          {
            "name" : "expirationDate",
            "type" : "STRING"
          },
          {
            "name" : "stylesheet",
            "type" : "STRING"
          },
          {
            "name" : "submissionEventType",
            "type" : "STRING"
          },
          {
            "name" : "canBeSubmittedOnlyOnce",
            "type" : "BOOLEAN"
          },
          {
            "name" : "instanceId",
            "type" : "STRING"
          },
          {
            "name" : "scheduleId",
            "type" : "STRING"
          },
          {
            "name" : "recipient$company$id",
            "path" : [
              "recipient",
              "company",
              "id"
            ],
            "type" : "STRING"
          },
          {
            "name" : "recipient$company$name",
            "path" : [
              "recipient",
              "company",
              "name"
            ],
            "type" : "STRING"
          }
        ],
        "nestedTables" : [
          {
            "name" : "magic_link$recipient$contacts",
            "path" : [
              "recipient",
              "contacts"
            ],
            "columns" : [
              {
                "name" : "id",
                "type" : "STRING",
                "primaryKey" : true
              },
              {
                "name" : "name",
                "type" : "STRING"
              },
              {
                "name" : "value",
                "type" : "STRING"
              },
              {
                "name" : "language",
                "type" : "STRING"
              },
              {
                "name" : "magic_link_id",
                "type" : "STRING",
                "primaryKey" : true,
                "foreignKey" : true
              }
            ],
            "nestedTables" : [ ]
          },
          {
            "name" : "magic_link$forms",
            "path" : [
              "forms"
            ],
            "columns" : [
              {
                "name" : "id",
                "type" : "STRING",
                "primaryKey" : true
              },
              {
                "name" : "magic_link_id",
                "type" : "STRING",
                "primaryKey" : true,
                "foreignKey" : true
              }
            ],
            "nestedTables" : [ ]
          },
          {
            "name" : "magic_link$submissions",
            "path" : [
              "submissions"
            ],
            "columns" : [
              {
                "name" : "submittedAt",
                "type" : "STRING",
                "primaryKey" : true
              },
              {
                "name" : "magic_link_id",
                "type" : "STRING",
                "primaryKey" : true,
                "foreignKey" : true
              }
            ],
            "nestedTables" : [ ]
          },
          {
            "name" : "magic_link$customAttributes",
            "path" : [
              "customAttributes"
            ],
            "columns" : [
              {
                "name" : "name",
                "type" : "STRING",
                "primaryKey" : true
              },
              {
                "name" : "magic_link_id",
                "type" : "STRING",
                "primaryKey" : true,
                "foreignKey" : true
              }
            ],
            "nestedTables" : [
              {
                "name" : "magic_link$customAttributes$values",
                "path" : [
                  "values"
                ],
                "columns" : [
                  {
                    "name" : "values",
                    "type" : "STRING"
                  },
                  {
                    "name" : "magic_link$customAttributes_name",
                    "type" : "STRING",
                    "primaryKey" : true,
                    "foreignKey" : true
                  },
                  {
                    "name" : "magic_link$customAttributes_magic_link_id",
                    "type" : "STRING",
                    "primaryKey" : true,
                    "foreignKey" : true
                  }
                ],
                "nestedTables" : [ ],
                "primitiveArray" : true
              }
            ]
          }
        ]
      },
      "errorHandlingRules" : [ ],
      "useForConnectionTest" : true
    }
  ]
}