{
  "service": "asin_data_api",
  "displayName": "ASIN Data API",
  "categories": [
    "Data",
    "Marketing"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "ASIN Data API Key",
      "placeholder": "ASIN_DATA_API_KEY",
      "description": "ASIN Data API key sent as the api_key query parameter. Find or manage it in the ASIN Data API dashboard: https://app.asindataapi.com/.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://www.asindataapi.com",
  "actions": [
    {
      "id": "asin_data_api.clear_collection_requests",
      "service": "asin_data_api",
      "name": "clear_collection_requests",
      "description": "Delete multiple requests from a collection by their request IDs in ASIN Data API.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_ids": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "description": "Unique identifier of a collection request."
            },
            "description": "Array of request ID strings to delete. Use list_collection_requests to get valid request IDs for a collection.",
            "minItems": 1
          },
          "collection_id": {
            "type": "string",
            "minLength": 1,
            "description": "Unique identifier of the collection to clear requests from. Use ASIN Data API collection listings to get valid collection IDs."
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for deleting multiple collection requests."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    },
    {
      "id": "asin_data_api.delete_destination",
      "service": "asin_data_api",
      "name": "delete_destination",
      "description": "Delete a destination from the ASIN Data API account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "destination_id": {
            "type": "string",
            "minLength": 1,
            "description": "The unique identifier of the destination to delete. Can be obtained from the list_destinations action."
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for deleting an ASIN Data API destination."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    },
    {
      "id": "asin_data_api.get_collection",
      "service": "asin_data_api",
      "name": "get_collection",
      "description": "Get details of a specific ASIN Data API collection including status and request counts.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "collection_id": {
            "type": "string",
            "minLength": 1,
            "description": "Unique identifier of the collection to retrieve. Can be obtained from ASIN Data API collection listings."
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for getting an ASIN Data API collection."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    },
    {
      "id": "asin_data_api.list_collection_requests",
      "service": "asin_data_api",
      "name": "list_collection_requests",
      "description": "List requests in an ASIN Data API collection by page.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "Page number for pagination, starting at 1. Each page returns up to 1000 requests."
          },
          "collection_id": {
            "type": "string",
            "minLength": 1,
            "description": "Unique identifier of the collection whose requests are to be listed. Can be obtained from ASIN Data API collection listings."
          }
        },
        "additionalProperties": false,
        "required": [
          "collection_id"
        ],
        "description": "Input parameters for listing ASIN Data API collection requests."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    },
    {
      "id": "asin_data_api.list_destinations",
      "service": "asin_data_api",
      "name": "list_destinations",
      "description": "List destinations configured on the ASIN Data API account with optional filtering and sorting.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "minimum": 1,
            "description": "Page number for pagination, starting at 1."
          },
          "sort_by": {
            "type": "string",
            "enum": [
              "type",
              "name"
            ],
            "description": "Sort criteria for destinations."
          },
          "search_term": {
            "type": "string",
            "minLength": 1,
            "description": "Filter destinations by name."
          },
          "sort_direction": {
            "type": "string",
            "enum": [
              "ascending",
              "descending"
            ],
            "description": "Sort order for destinations."
          }
        },
        "additionalProperties": false,
        "description": "Input parameters for listing ASIN Data API destinations."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    },
    {
      "id": "asin_data_api.update_destination",
      "service": "asin_data_api",
      "name": "update_destination",
      "description": "Update an existing ASIN Data API destination configuration. Only include fields you want to update.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "destination_id": {
            "type": "string",
            "minLength": 1,
            "description": "The unique identifier of the destination."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "New name for the destination."
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the destination should be enabled or disabled."
          },
          "oss_region_id": {
            "type": "string",
            "minLength": 1,
            "description": "Alibaba Cloud OSS region ID."
          },
          "gcs_access_key": {
            "type": "string",
            "minLength": 1,
            "description": "Google Cloud Storage access key for GCS authentication."
          },
          "gcs_secret_key": {
            "type": "string",
            "minLength": 1,
            "description": "Google Cloud Storage secret key for GCS authentication."
          },
          "oss_access_key": {
            "type": "string",
            "minLength": 1,
            "description": "Alibaba Cloud OSS access key for OSS authentication."
          },
          "oss_secret_key": {
            "type": "string",
            "minLength": 1,
            "description": "Alibaba Cloud OSS secret key for OSS authentication."
          },
          "s3_bucket_name": {
            "type": "string",
            "minLength": 1,
            "description": "AWS S3 bucket name for S3-type destinations."
          },
          "s3_path_prefix": {
            "type": "string",
            "minLength": 1,
            "description": "Path prefix within the S3 bucket where files will be stored."
          },
          "gcs_bucket_name": {
            "type": "string",
            "minLength": 1,
            "description": "Google Cloud Storage bucket name for GCS destinations."
          },
          "gcs_path_prefix": {
            "type": "string",
            "minLength": 1,
            "description": "Path prefix within the GCS bucket."
          },
          "oss_bucket_name": {
            "type": "string",
            "minLength": 1,
            "description": "Alibaba Cloud OSS bucket name for OSS destinations."
          },
          "oss_path_prefix": {
            "type": "string",
            "minLength": 1,
            "description": "Path prefix within the OSS bucket."
          },
          "s3_access_key_id": {
            "type": "string",
            "minLength": 1,
            "description": "AWS access key ID for S3 authentication."
          },
          "azure_account_key": {
            "type": "string",
            "minLength": 1,
            "description": "Azure storage account key for Azure authentication."
          },
          "azure_path_prefix": {
            "type": "string",
            "minLength": 1,
            "description": "Path prefix within the Azure container."
          },
          "azure_account_name": {
            "type": "string",
            "minLength": 1,
            "description": "Azure storage account name for Azure destinations."
          },
          "azure_container_name": {
            "type": "string",
            "minLength": 1,
            "description": "Azure container name where files will be stored."
          },
          "s3_secret_access_key": {
            "type": "string",
            "minLength": 1,
            "description": "AWS secret access key for S3 authentication."
          }
        },
        "additionalProperties": false,
        "required": [
          "destination_id"
        ],
        "description": "Input parameters for updating an ASIN Data API destination.",
        "anyOf": [
          {
            "required": [
              "name"
            ]
          },
          {
            "required": [
              "enabled"
            ]
          },
          {
            "required": [
              "oss_region_id"
            ]
          },
          {
            "required": [
              "gcs_access_key"
            ]
          },
          {
            "required": [
              "gcs_secret_key"
            ]
          },
          {
            "required": [
              "oss_access_key"
            ]
          },
          {
            "required": [
              "oss_secret_key"
            ]
          },
          {
            "required": [
              "s3_bucket_name"
            ]
          },
          {
            "required": [
              "s3_path_prefix"
            ]
          },
          {
            "required": [
              "gcs_bucket_name"
            ]
          },
          {
            "required": [
              "gcs_path_prefix"
            ]
          },
          {
            "required": [
              "oss_bucket_name"
            ]
          },
          {
            "required": [
              "oss_path_prefix"
            ]
          },
          {
            "required": [
              "s3_access_key_id"
            ]
          },
          {
            "required": [
              "azure_account_key"
            ]
          },
          {
            "required": [
              "azure_path_prefix"
            ]
          },
          {
            "required": [
              "azure_account_name"
            ]
          },
          {
            "required": [
              "azure_container_name"
            ]
          },
          {
            "required": [
              "s3_secret_access_key"
            ]
          }
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The ASIN Data API response payload returned by the action."
          },
          "error": {
            "type": "string",
            "description": "Error if any occurred during the action execution."
          },
          "successful": {
            "type": "boolean",
            "description": "Whether the action execution was successful."
          }
        },
        "additionalProperties": false,
        "required": [
          "data",
          "successful"
        ],
        "description": "The ASIN Data API action result."
      }
    }
  ]
}
