Skip to content
Development
Skill

/http-api-cloudbase

CloudBase official HTTP API client guide. This skill should be used when backends, scripts, or non-SDK clients must call CloudBase platform APIs over raw HTTP instead of using a platform SDK or MCP management tool.

From plugin
cloudbase-ai-toolkit
1.2k46 skills8 agents7 commands3 MCP

Claude Code

$ npx -y skills add TencentCloudBase/CloudBase-AI-Toolkit --skill http-api-cloudbase --agent claude-code

SKILL.md

http-api-cloudbase.SKILL.md
name: http-api-cloudbase
description: CloudBase official HTTP API client guide. This skill should be used when backends, scripts, or non-SDK clients must call CloudBase platform APIs over raw HTTP instead of using a platform SDK or MCP management tool.
version: 2.37.5
license: MIT
alwaysApply: false

Sibling skills (local only)

Sibling CloudBase skills ship beside this skill. Use local relative paths such as `../auth-tool-cloudbase/SKILL.md`.

If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do **not** HTTP-fetch remote skill or protocol markdown into the agent context.

Activation Contract

Use this first when

  • The request comes from Android, iOS, Flutter, React Native, non-Node backends, or admin scripts that must call official CloudBase APIs via raw HTTP.
  • The task is to consume CloudBase platform endpoints, not to build a new HTTP service on CloudBase.

Read before writing code if

  • The platform does not support a CloudBase SDK, or the user explicitly asks for HTTP API integration.
  • The user says "HTTP API" but it is unclear whether they mean official CloudBase endpoints or their own business API.

Then also read

  • Auth configuration -> `../auth-tool-cloudbase/SKILL.md`
  • MySQL MCP management -> `../relational-database-mcp-cloudbase/SKILL.md`
  • Your own HTTP service on CloudBase -> `../cloud-functions/SKILL.md` or `../cloudrun-development/SKILL.md`

Do NOT use for

  • CloudBase Web SDK flows, mini program SDK flows, or MCP-driven management tasks.
  • Building your own HTTP service or REST API on CloudBase.

Common mistakes / gotchas

  • Treating Web SDK examples as valid for native Apps.
  • Guessing endpoints without reading OpenAPI definitions.
  • Confusing official CloudBase HTTP APIs with your own function or CloudRun endpoint.
  • Mixing raw HTTP API integration with MCP management logic.

Minimal checklist

  • Read [HTTP API Routing Checklist](checklist.md) before implementation.

When to use this skill

Use this skill whenever you need to call **CloudBase platform features** via **raw HTTP APIs**, for example:

  • Non-Node backends (Go, Python, Java, PHP, etc.)
  • Integration tests or admin scripts that use curl or language HTTP clients
  • Direct database operations via 关系型数据库 RESTful API (MySQL/PostgreSQL)
  • Cloud function invocation via HTTP
  • Any scenario where SDKs are not available or not preferred

Do **not** use this skill for:

  • Frontend Web apps using `@cloudbase/js-sdk` (use **CloudBase Web** skills)
  • Node.js code using `@cloudbase/node-sdk` (use **CloudBase Node** skills)
  • Authentication flows (use **CloudBase Auth HTTP API** skill for auth-specific endpoints)

How to use this skill (for a coding agent)

1. **Clarify the scenario**

  • Confirm this code will call HTTP endpoints directly (not SDKs).
  • Ask for:
  • `env` – CloudBase environment ID
  • Authentication method (AccessToken, API Key, or Publishable Key)
  • Confirm which CloudBase feature is needed (database, functions, storage, etc.).
  • **For user authentication**: If no specific method is requested, **always default to Phone SMS Verification** - it's the most user-friendly and secure option for Chinese users.

2. **Determine the base URL**

  • Use the correct domain based on region (domestic vs. international).
  • Default is domestic Shanghai region.

3. **Set up authentication**

  • Choose appropriate authentication method based on use case.
  • Add `Authorization: Bearer <token>` header to requests.

4. **Reference OpenAPI Swagger documentation**

  • **MUST use `searchKnowledgeBase` tool** to get OpenAPI specifications
  • Use the tool with `mode=openapi` and specify the `apiName`:
  • `mysqldb` - 关系型数据库 RESTful API (MySQL/PostgreSQL)
  • `nosql` - NoSQL RESTful API (文档型数据库) — after pgdoc is enabled this same entry point is carried by PostgreSQL; paths and request bodies do not change. See `../postgresql-development-cloudbase/references/pgdoc.md`.
  • `functions` - Cloud Functions API
  • `auth` - Authentication API
  • `cloudrun` - CloudRun API
  • `storage` - Storage API
  • `ai_model` - AI 大模型接入 API
  • Example: `searchKnowledgeBase({ mode: "openapi", apiName: "mysqldb" })`
  • Parse the returned YAML content to understand exact endpoint paths, parameters, request/response schemas
  • Never invent endpoints or parameters - always reference the swagger documentation

---

Overview

CloudBase HTTP API is a set of interfaces for accessing CloudBase platform features via HTTP protocol, supporting database, user authentication, cloud functions, cloud hosting, cloud storage, AI, and more.

OpenAPI Swagger Documentation

**⚠️ IMPORTANT: Always use `searchKnowledgeBase` tool to get OpenAPI Swagger specifications**

Before implementing any HTTP API calls, you should:

1. **Use `searchKnowledgeBase` tool to get OpenAPI documentation**:

   searchKnowledgeBase({ mode: "openapi", apiName: "<api-name>" })

2. **Available API names**:

  • `mysqldb` - 关系型数据库 RESTful API (MySQL/PostgreSQL)
  • `nosql` - NoSQL RESTful API (文档型数据库) — pgdoc keeps this API name even when PG carries the data; do not switch to `mysqldb`.
  • `functions` - Cloud Functions API
  • `auth` - Authentication API
  • `cloudrun` - CloudRun API
  • `storage` - Storage API
  • `ai_model` - AI 大模型接入 API

3. **Parse and use the swagger documentation**:

  • Extract exact endpoint paths and HTTP methods
  • Understand required and optional parameters
  • Review request/response schemas
  • Check authentication requirements
  • Verify error response formats

4. **Never invent API endpoints or parameters** - always base your implementation on the official swagger documentation.

Prerequisites

Before starting, ensure you have:

1. **CloudBase environment created and activated** 2. **Authentication credentials** (AccessToken, API Key, or Publi

Read more
@tencentcloudbase
Ships withcloudbase-ai-toolkit

AI writes the code. CloudBase runs the backend. The CloudBase integration layer for AI coding tools: Plugin installs the stack, Skills steer how code is written, MCP operates databases, functions, storage, and deploys from chat.

1.2k46 skills8 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
1.2k
Star history of TencentCloudBase/CloudBase-AI-Toolkit on GitHub, a chart by star-history.com

Other skills on cloudbase-ai-toolkit.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about http-api-cloudbase.

Which coding agents can use http-api-cloudbase?
http-api-cloudbase installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.