# 自定义OTP

如果您已经拥有用于生成和验证验证码的系统并希望继续使用它们，您可以将您的代码发送给我们并使用我们预先批准的消息模板以及文本和语音本地化选项。

**如何使用自定义代码？**\
要使用您自己生成的验证码，请将其包含在对发送验证请求 API 的调用中。

```javascript
{
"to": "+44868534958",
"channel": "SMS",
"code": "1234",
}
```

为保证用户认证准确可靠，建议使用验证码API提交用户提供的验证码。这种方法不仅可以让您监控验证的成功率，还可以为我们提供有关全球短信线路稳定性的宝贵信息。通过利用此 API，您可以为用户提供无缝且安全的身份验证过程。


---

# 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/verify-yan-zheng/yan-zheng-gong-neng/zi-ding-yi-otp.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.
