# API接口

## 认证

Cloud 使用 API 密钥进行身份验证。API 密钥是客户端在进行 API 调用时提供的令牌。密钥应作为名为 X-API-Key 的请求标头发送：

📚 如何获取我的 API 密钥？[在这里](https://www.ycloud.com/console/#/app/developers/apikey?)\
获取您的 api 密钥

📙如果您更喜欢SDK，我们提供多种语言。在这里下载我们的[SDK](https://github.com/ycloud-developers)。

## 测试API

这是 SMS API 文档<https://ycloud.readme.io/reference/sms-send>\
您可以输入 API 密钥和参数来测试消息

<figure><img src="/files/uyMGuCrovq02S3zrqInK" alt=""><figcaption></figcaption></figure>

## 响应

打开响应以查看完整参数。

<figure><img src="/files/ExCBqkPkw7flHnkBiYnJ" alt=""><figcaption></figcaption></figure>

## 错误代码

[如果您收到任何错误代码，您可以在此处](https://ycloud.readme.io/reference/errors#error-codes)查看其含义


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpdocs.ycloud.com/help-center/zh/integrations/qu-dao/quan-qiu-duan-xin/duan-xin-gong-neng/api-jie-kou.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
