{
  "service": "atlas_so",
  "displayName": "Atlas.so",
  "categories": [
    "Communication",
    "Productivity"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "atlas_api_key",
      "description": "Atlas.so API key sent as an Authorization Bearer token. Find it in Atlas under App Config > API: https://app.getatlas.io/configuration/external-api."
    }
  ],
  "homepageUrl": "https://atlas.so",
  "actions": [
    {
      "id": "atlas_so.create_customer",
      "service": "atlas_so",
      "name": "create_customer",
      "description": "Create an Atlas customer.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "firstName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's first name."
              },
              {
                "type": "null"
              }
            ]
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's last name."
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's email address.",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's phone number."
              },
              {
                "type": "null"
              }
            ]
          },
          "externalUserId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The external user identifier."
              },
              {
                "type": "null"
              }
            ]
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Custom customer fields keyed by Atlas custom field name."
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultSenders": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "sms": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The default SMS sender value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The default email sender value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "description": "Default sender values for an Atlas customer."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer fields accepted by create and update endpoints."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              "companyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The associated Atlas account ID.",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's email address.",
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom customer fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when the customer was created.",
                "format": "date-time"
              },
              "defaultSenders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sms": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default SMS sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default email sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Default sender values for an Atlas customer."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas customer resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer create response."
      }
    },
    {
      "id": "atlas_so.get_account",
      "service": "atlas_so",
      "name": "get_account",
      "description": "Retrieve a single Atlas account by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Atlas account ID.",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for retrieving an Atlas account."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas account ID.",
                "format": "uuid"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account email address."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account website."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external account identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom account fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas account resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas account retrieve response."
      }
    },
    {
      "id": "atlas_so.get_customer",
      "service": "atlas_so",
      "name": "get_customer",
      "description": "Retrieve a single Atlas customer by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Atlas customer ID.",
            "format": "uuid"
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for retrieving an Atlas customer."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              "companyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The associated Atlas account ID.",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's email address.",
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom customer fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when the customer was created.",
                "format": "date-time"
              },
              "defaultSenders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sms": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default SMS sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default email sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Default sender values for an Atlas customer."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas customer resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer retrieve response."
      }
    },
    {
      "id": "atlas_so.list_accounts",
      "service": "atlas_so",
      "name": "list_accounts",
      "description": "List Atlas accounts visible to the current API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "integer",
            "minimum": 0,
            "description": "The Atlas pagination cursor. Atlas defaults this to 0."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of records to return. Atlas defaults this to 20."
          }
        },
        "additionalProperties": false,
        "description": "Pagination parameters for Atlas list endpoints."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The Atlas account ID.",
                  "format": "uuid"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The account name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The account email address."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "website": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The account website."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "externalId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The external account identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "customFields": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "Custom account fields returned by Atlas."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "An Atlas account resource."
            },
            "description": "The Atlas accounts returned by the API."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of available records when Atlas returns it."
              },
              {
                "type": "null"
              }
            ]
          },
          "cursor": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The cursor returned by Atlas for the current page."
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The page size returned by Atlas."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw Atlas list response payload."
          }
        },
        "additionalProperties": false,
        "description": "Atlas account list response."
      }
    },
    {
      "id": "atlas_so.list_customers",
      "service": "atlas_so",
      "name": "list_customers",
      "description": "List Atlas customers visible to the current API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "integer",
            "minimum": 0,
            "description": "The Atlas pagination cursor. Atlas defaults this to 0."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of records to return. Atlas defaults this to 20."
          }
        },
        "additionalProperties": false,
        "description": "Pagination parameters for Atlas list endpoints."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The Atlas customer ID.",
                  "format": "uuid"
                },
                "companyId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The associated Atlas account ID.",
                      "format": "uuid"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "firstName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The customer's first name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The customer's last name."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The customer's email address.",
                      "format": "email"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phoneNumber": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The customer's phone number."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "externalUserId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "description": "The external user identifier."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "customFields": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "Custom customer fields returned by Atlas."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "description": "The timestamp when the customer was created.",
                  "format": "date-time"
                },
                "defaultSenders": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "sms": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The default SMS sender value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "The default email sender value."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false,
                      "description": "Default sender values for an Atlas customer."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "An Atlas customer resource."
            },
            "description": "The Atlas customers returned by the API."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of available records when Atlas returns it."
              },
              {
                "type": "null"
              }
            ]
          },
          "cursor": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The cursor returned by Atlas for the current page."
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The page size returned by Atlas."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw Atlas list response payload."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer list response."
      }
    },
    {
      "id": "atlas_so.list_sessions",
      "service": "atlas_so",
      "name": "list_sessions",
      "description": "List Atlas session recordings with optional customer and date filters.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "integer",
            "minimum": 0,
            "description": "The Atlas pagination cursor. Atlas defaults this to 0."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "description": "The maximum number of records to return. Atlas defaults this to 20."
          },
          "externalId": {
            "type": "string",
            "description": "The Atlas external session recording ID filter.",
            "format": "uuid"
          },
          "email": {
            "type": "string",
            "description": "The customer email address filter.",
            "format": "email"
          },
          "pageUrl": {
            "type": "string",
            "minLength": 1,
            "description": "The page URL filter."
          },
          "startedBefore": {
            "type": "string",
            "description": "Return sessions that started before this timestamp.",
            "format": "date-time"
          },
          "startedAfter": {
            "type": "string",
            "description": "Return sessions that started after this timestamp.",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "Filters and pagination parameters for listing Atlas session recordings."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "sessions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The Atlas session recording ID.",
                  "format": "uuid"
                },
                "customerId": {
                  "type": "string",
                  "description": "The Atlas customer ID associated with this session.",
                  "format": "uuid"
                },
                "startTime": {
                  "type": "string",
                  "description": "The timestamp when the session started.",
                  "format": "date-time"
                },
                "lastActivity": {
                  "type": "string",
                  "description": "The timestamp of the last recorded session activity.",
                  "format": "date-time"
                },
                "info": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": true,
                      "description": "Atlas session recording metadata."
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "additionalProperties": true,
              "description": "An Atlas session recording resource."
            },
            "description": "The Atlas session recordings returned by the API."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The total number of available records when Atlas returns it."
              },
              {
                "type": "null"
              }
            ]
          },
          "cursor": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The cursor returned by Atlas for the current page."
              },
              {
                "type": "null"
              }
            ]
          },
          "limit": {
            "anyOf": [
              {
                "type": "integer",
                "description": "The page size returned by Atlas."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Raw Atlas list response payload."
          }
        },
        "additionalProperties": false,
        "description": "Atlas session recording list response."
      }
    },
    {
      "id": "atlas_so.lookup_customer",
      "service": "atlas_so",
      "name": "lookup_customer",
      "description": "Retrieve a single Atlas customer by ID, email, phone number, or user ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's email address.",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's phone number."
              },
              {
                "type": "null"
              }
            ]
          },
          "userId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The external user identifier."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Lookup keys for retrieving an Atlas customer.",
        "anyOf": [
          {
            "required": [
              "id"
            ]
          },
          {
            "required": [
              "email"
            ]
          },
          {
            "required": [
              "phoneNumber"
            ]
          },
          {
            "required": [
              "userId"
            ]
          }
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              "companyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The associated Atlas account ID.",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's email address.",
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom customer fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when the customer was created.",
                "format": "date-time"
              },
              "defaultSenders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sms": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default SMS sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default email sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Default sender values for an Atlas customer."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas customer resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer lookup response."
      }
    },
    {
      "id": "atlas_so.update_customer",
      "service": "atlas_so",
      "name": "update_customer",
      "description": "Update an Atlas customer by ID.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Atlas customer ID.",
            "format": "uuid"
          },
          "firstName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's first name."
              },
              {
                "type": "null"
              }
            ]
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's last name."
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's email address.",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's phone number."
              },
              {
                "type": "null"
              }
            ]
          },
          "externalUserId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The external user identifier."
              },
              {
                "type": "null"
              }
            ]
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Custom customer fields keyed by Atlas custom field name."
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultSenders": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "sms": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The default SMS sender value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "The default email sender value."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false,
                "description": "Default sender values for an Atlas customer."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "id"
        ],
        "description": "The input payload for updating an Atlas customer."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              "companyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The associated Atlas account ID.",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's email address.",
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom customer fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when the customer was created.",
                "format": "date-time"
              },
              "defaultSenders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sms": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default SMS sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default email sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Default sender values for an Atlas customer."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas customer resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer update response."
      }
    },
    {
      "id": "atlas_so.upsert_account",
      "service": "atlas_so",
      "name": "upsert_account",
      "description": "Create or update an Atlas account using the account upsert endpoint.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string",
                "description": "The account name."
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "description": "The account email address.",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string",
                "description": "The account website."
              },
              {
                "type": "null"
              }
            ]
          },
          "externalId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The external account identifier."
              },
              {
                "type": "null"
              }
            ]
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Custom account fields keyed by Atlas custom field name."
              },
              {
                "type": "null"
              }
            ]
          },
          "primaryContactId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The primary contact customer ID for the account.",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "accountManagerId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The account manager user ID.",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "secondaryAccountManagerId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The secondary account manager user ID.",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Atlas account fields accepted by the account upsert endpoint."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas account ID.",
                "format": "uuid"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account email address."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "website": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The account website."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external account identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom account fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas account resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas account upsert response."
      }
    },
    {
      "id": "atlas_so.upsert_customer",
      "service": "atlas_so",
      "name": "upsert_customer",
      "description": "Create or update an Atlas customer using the customer upsert endpoint.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ]
          },
          "userId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The external user identifier used by Atlas upsert."
              },
              {
                "type": "null"
              }
            ]
          },
          "firstName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's first name."
              },
              {
                "type": "null"
              }
            ]
          },
          "lastName": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's last name."
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's email address.",
                "format": "email"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "anyOf": [
              {
                "type": "string",
                "description": "The customer's phone number."
              },
              {
                "type": "null"
              }
            ]
          },
          "customFields": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "Custom customer fields keyed by Atlas custom field name."
              },
              {
                "type": "null"
              }
            ]
          },
          "account": {
            "anyOf": [
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "The account payload to associate with this customer."
              },
              {
                "type": "null"
              }
            ]
          },
          "alternatePhoneNumbers": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "description": "An alternate phone number."
                },
                "description": "Alternate phone numbers for this customer."
              },
              {
                "type": "null"
              }
            ]
          },
          "alternateEmails": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "description": "An alternate email.",
                  "format": "email"
                },
                "description": "Alternate email addresses for this customer."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer fields accepted by the customer upsert endpoint."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "customer": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The Atlas customer ID.",
                "format": "uuid"
              },
              "companyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The associated Atlas account ID.",
                    "format": "uuid"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's first name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's last name."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's email address.",
                    "format": "email"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phoneNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The customer's phone number."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The external user identifier."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "customFields": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": true,
                    "description": "Custom customer fields returned by Atlas."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "description": "The timestamp when the customer was created.",
                "format": "date-time"
              },
              "defaultSenders": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sms": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default SMS sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "email": {
                        "anyOf": [
                          {
                            "type": "string",
                            "description": "The default email sender value."
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false,
                    "description": "Default sender values for an Atlas customer."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": true,
            "description": "An Atlas customer resource."
          }
        },
        "additionalProperties": false,
        "description": "Atlas customer upsert response."
      }
    }
  ]
}
