Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 59% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 33% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 108% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 53% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 50% | 0% |
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.
../auth-tool-cloudbase/SKILL.md../relational-database-mcp-cloudbase/SKILL.md../cloud-functions/SKILL.md or ../cloudrun-development/SKILL.mdUse this skill whenever you need to call CloudBase platform features via raw HTTP APIs, for example:
Do not use this skill for:
@cloudbase/js-sdk (use CloudBase Web skills)@cloudbase/node-sdk (use CloudBase Node skills)env – CloudBase environment IDAuthorization: Bearer <token> header to requests.searchKnowledgeBase tool to get OpenAPI specificationsmode=openapi and specify the apiName:mysqldb - 关系型数据库 RESTful API (MySQL/PostgreSQL)nosql - NoSQL RESTful API (文档型数据库)functions - Cloud Functions APIauth - Authentication APIcloudrun - CloudRun APIstorage - Storage APIai_model - AI 大模型接入 APIsearchKnowledgeBase({ mode: "openapi", apiName: "mysqldb" })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.
⚠️ IMPORTANT: Always use searchKnowledgeBase tool to get OpenAPI Swagger specifications
Before implementing any HTTP API calls, you should:
searchKnowledgeBase tool to get OpenAPI documentation: searchKnowledgeBase({ mode: "openapi", apiName: "<api-name>" })
mysqldb - 关系型数据库 RESTful API (MySQL/PostgreSQL)nosql - NoSQL RESTful API (文档型数据库)functions - Cloud Functions APIauth - Authentication APIcloudrun - CloudRun APIstorage - Storage APIai_model - AI 大模型接入 APIBefore starting, ensure you have:
CloudBase HTTP API requires authentication. Choose the appropriate method based on your use case:
Applicable environments: Client/Server User permissions: Logged-in user permissions
How to get: Use searchKnowledgeBase({ mode: "openapi", apiName: "auth" }) to get the Authentication API specification
Applicable environments: Server User permissions: Administrator permissions
> ⚠️ Warning: Tokens are critical credentials for identity authentication. Keep them secure. API Key must NOT be used in client-side code.
Applicable environments: Client/Server User permissions: Anonymous user permissions
> 💡 Note: Can be exposed in browsers, used for requesting publicly accessible resources, effectively reducing MAU.
CloudBase HTTP API uses unified domain names for API calls. The domain varies based on the environment's region.
For environments in domestic regions like Shanghai (ap-shanghai), use:
texthttps://{your-env}.api.tcloudbasegateway.com
Replace {your-env} with the actual environment ID. For example, if environment ID is cloud1-abc:
texthttps://cloud1-abc.api.tcloudbasegateway.com
For environments in international regions like Singapore (ap-singapore), use:
texthttps://{your-env}.api.intl.tcloudbasegateway.com
Replace {your-env} with the actual environment ID. For example, if environment ID is cloud1-abc:
texthttps://cloud1-abc.api.intl.tcloudbasegateway.com
Add the token to the request header:
httpAuthorization: Bearer <access_token/apikey/publishable_key>
:::warning Note
When making actual calls, replace the entire part including angle brackets (< >) with your obtained key. For example, if the obtained key is eymykey, fill it as:
httpAuthorization: Bearer eymykey
:::
For detailed scenarios, examples, and patterns, read extended-guide.md.
All packaged reference files (required for skill lint reachability):
Other measured skills in the registry, with their headline benchmark lift.