generate_direct_api_code
Create code to integrate BaaS API for SMS/MMS features by fetching templates from CDN. Supports multiple languages and frameworks, includes examples, and automatically injects API keys for secure production deployments.
Instructions
Generate code that directly calls BaaS API by fetching templates from CDN
Perfect for: Production deployments, custom integrations, framework-specific implementations
Token-optimized: Fetches maintained templates from CDN instead of generating locally
Args:
language: Programming language (javascript, python, php, java, go, csharp)
framework: Optional framework (react, vue, django, laravel, fastapi, spring, etc.)
include_examples: Include usage examples and configuration templates
Returns:
Dictionary with code fetched from CDN, filename, and integration instructions
Code directly calls https://api.aiapp.link/api/message/ with X-API-KEY header authentication
If MCP server has BAAS_API_KEY set, it will be automatically injected into code
Input Schema
Name | Required | Description | Default |
---|---|---|---|
framework | No | ||
include_examples | No | ||
language | No | javascript |
Input Schema (JSON Schema)
{
"properties": {
"framework": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Framework"
},
"include_examples": {
"default": true,
"title": "Include Examples",
"type": "boolean"
},
"language": {
"default": "javascript",
"title": "Language",
"type": "string"
}
},
"title": "generate_direct_api_codeArguments",
"type": "object"
}