doctype
Retrieve a list of supported file formats or map a file extension to its document type.
Args: apiKey (str): The API key for authentication. Falls back to TWEEKIT_API_KEY when omitted. apiSecret (str): The API secret for authentication. Falls back to TWEEKIT_API_SECRET when omitted. extension (str): The file extension to query (e.g., 'jpg', 'pdf') or leave off or use '*' to return all supported input formats.
Returns: Dict[str, Any]: A dictionary containing the supported file formats or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | TweekIT API key passed via the ApiKey header. Defaults to the TWEEKIT_API_KEY environment variable when omitted. | |
| apiSecret | No | TweekIT API secret paired with the apiKey. Defaults to the TWEEKIT_API_SECRET environment variable when omitted. | |
| extension | No | File extension to inspect; use '*' to list all supported inputs. | * |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||