{
  "service": "autom",
  "displayName": "Autom",
  "categories": [
    "Data",
    "Developer Tools",
    "Marketing"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "AUTOM_API_KEY",
      "description": "Autom API key sent with the x-api-key header. Create or copy it from the Autom dashboard API Keys page: https://app.autom.dev/"
    }
  ],
  "homepageUrl": "https://www.autom.dev",
  "actions": [
    {
      "id": "autom.find_google_countries",
      "service": "autom",
      "name": "find_google_countries",
      "description": "Search supported Google countries in Autom and return matching country codes.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text used to filter Autom finder results."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Input parameters for an Autom finder lookup."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "countries": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "country_code": {
                  "type": "string",
                  "description": "The Google country code."
                },
                "country_name": {
                  "type": "string",
                  "description": "The Google country name."
                }
              },
              "additionalProperties": false,
              "required": [
                "country_code",
                "country_name"
              ],
              "description": "One Google country supported by Autom."
            },
            "description": "The matching Google countries."
          }
        },
        "additionalProperties": false,
        "required": [
          "countries"
        ],
        "description": "Matching Google countries returned by Autom."
      }
    },
    {
      "id": "autom.find_google_languages",
      "service": "autom",
      "name": "find_google_languages",
      "description": "Search supported Google languages in Autom and return matching language codes.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text used to filter Autom finder results."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Input parameters for an Autom finder lookup."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "languages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "language_code": {
                  "type": "string",
                  "description": "The Google language code."
                },
                "language_name": {
                  "type": "string",
                  "description": "The Google language name."
                }
              },
              "additionalProperties": false,
              "required": [
                "language_code",
                "language_name"
              ],
              "description": "One Google language supported by Autom."
            },
            "description": "The matching Google languages."
          }
        },
        "additionalProperties": false,
        "required": [
          "languages"
        ],
        "description": "Matching Google languages returned by Autom."
      }
    },
    {
      "id": "autom.find_google_locations",
      "service": "autom",
      "name": "find_google_locations",
      "description": "Search supported Google locations in Autom and return matching location IDs.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "description": "Search text used to filter Autom finder results."
          }
        },
        "additionalProperties": false,
        "required": [
          "query"
        ],
        "description": "Input parameters for an Autom finder lookup."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The Autom location identifier."
                },
                "gps": {
                  "type": "array",
                  "items": {
                    "type": "number",
                    "description": "One GPS coordinate."
                  },
                  "description": "The location GPS coordinates as latitude and longitude."
                },
                "name": {
                  "type": "string",
                  "description": "The location name."
                },
                "reach": {
                  "type": "integer",
                  "description": "The estimated Google reach for the location."
                },
                "google_id": {
                  "type": "integer",
                  "description": "The Google location identifier."
                },
                "target_type": {
                  "type": "string",
                  "description": "The Google target type."
                },
                "country_code": {
                  "type": "string",
                  "description": "The Google country code for the location."
                },
                "canonical_name": {
                  "type": "string",
                  "description": "The canonical Google location name."
                }
              },
              "additionalProperties": false,
              "required": [
                "id",
                "gps",
                "name",
                "reach",
                "google_id",
                "target_type",
                "country_code",
                "canonical_name"
              ],
              "description": "One Google location supported by Autom."
            },
            "description": "The matching Google locations."
          }
        },
        "additionalProperties": false,
        "required": [
          "locations"
        ],
        "description": "Matching Google locations returned by Autom."
      }
    },
    {
      "id": "autom.get_usage",
      "service": "autom",
      "name": "get_usage",
      "description": "Get current Autom credit usage, subscription quota, rate limits, account metadata, and API key metadata.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input parameters for getting Autom usage."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "remaining": {
            "type": "integer",
            "description": "Credits available right now."
          },
          "total_used": {
            "type": "integer",
            "description": "Credits consumed in the current billing period."
          },
          "renewal_date": {
            "type": "string",
            "description": "The ISO 8601 date when the subscription renews."
          },
          "period": {
            "type": "object",
            "properties": {
              "start": {
                "type": "string",
                "description": "The start date of the current billing period."
              },
              "end": {
                "type": "string",
                "description": "The end date of the current billing period."
              }
            },
            "additionalProperties": false,
            "required": [
              "start",
              "end"
            ],
            "description": "The current Autom billing period."
          },
          "subscription": {
            "type": "object",
            "properties": {
              "used": {
                "type": "integer",
                "description": "The number of subscription calls used in the current billing period."
              },
              "total": {
                "type": "integer",
                "description": "The subscription call quota for the current billing period."
              },
              "remaining": {
                "type": "integer",
                "description": "The number of subscription calls remaining."
              },
              "percent_used": {
                "type": "number",
                "description": "The percentage of subscription quota consumed."
              }
            },
            "additionalProperties": false,
            "required": [
              "used",
              "total",
              "remaining",
              "percent_used"
            ],
            "description": "Autom subscription quota usage."
          },
          "credits": {
            "type": "object",
            "properties": {
              "given": {
                "type": "integer",
                "description": "The number of extra credits added to the account."
              },
              "consumed": {
                "type": "integer",
                "description": "The number of extra credits consumed."
              },
              "remaining": {
                "type": "integer",
                "description": "The number of extra credits remaining."
              },
              "percent_used": {
                "type": "number",
                "description": "The percentage of extra credits consumed when returned."
              }
            },
            "additionalProperties": true,
            "required": [
              "given",
              "consumed",
              "remaining"
            ],
            "description": "Autom extra credit usage."
          },
          "rate_limit": {
            "type": "object",
            "properties": {
              "per_minute": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The requests-per-minute limit, or null when unlimited."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "per_second": {
                "anyOf": [
                  {
                    "type": "integer",
                    "description": "The requests-per-second limit, or null when unlimited."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": [
              "per_minute",
              "per_second"
            ],
            "description": "Autom account rate limits."
          },
          "account": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The Autom account name."
              },
              "slug": {
                "type": "string",
                "description": "The Autom account slug."
              }
            },
            "additionalProperties": false,
            "required": [
              "name",
              "slug"
            ],
            "description": "Autom account metadata."
          },
          "api_key": {
            "type": "object",
            "properties": {
              "alias": {
                "type": "string",
                "description": "The friendly API key alias."
              },
              "active": {
                "type": "boolean",
                "description": "Whether the API key is active."
              },
              "category": {
                "type": "string",
                "description": "The API key category."
              },
              "expires": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "The API key expiry date, or null when it never expires."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "quotas": {
                "type": "object",
                "properties": {
                  "total": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "description": "The configured per-key quota, or null when unlimited."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "daily": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "description": "The configured per-key quota, or null when unlimited."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "weekly": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "description": "The configured per-key quota, or null when unlimited."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "monthly": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "description": "The configured per-key quota, or null when unlimited."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": true,
                "description": "Custom per-key quotas."
              }
            },
            "additionalProperties": false,
            "required": [
              "alias",
              "active",
              "category",
              "expires",
              "quotas"
            ],
            "description": "Autom API key metadata."
          }
        },
        "additionalProperties": false,
        "required": [
          "remaining",
          "total_used",
          "renewal_date",
          "period",
          "subscription",
          "credits",
          "rate_limit",
          "account",
          "api_key"
        ],
        "description": "Autom usage, account, and API key details."
      }
    }
  ]
}
