# 快速开始

{% hint style="info" %}
**知道吗**：快速启动指南可以帮助人们在几个步骤中轻松上手你的API。有些人更喜欢从基础开始学习，而不是详细阅读每一页的文档！
{% endhint %}

## 获取 API 密钥

米发的 API 使用 API 密钥和 API 密钥验证请求。要开始使用，您必须首先通过登录您的米发仪表板创建 API 密钥。 您的 API 密钥具有许多特权，因此请务必保持安全！不要在公共可访问区域（如 GitHub、客户端代码等）共享您的秘密 API 密钥。 米发的 API 要求在任何请求中设置 Authorization 请求头。标题的语法如下：Authorization: bearer 。令牌是一个字符串，您可以在米发控制台中生成。

## 测试密钥

可以使用命令行测试你的密钥是否成功创建

{% tabs %}
{% tab title="curl" %}

```
curl --location --request GET 'https://api.mfpad.com/v1/test' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your-token-here}'
```

{% endtab %}
{% endtabs %}


---

# 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://dev.mfpad.com/kuai-su-kai-shi.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.
