> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 身份验证

> 了解向 Square Cloud API 进行身份验证所需的条件。

首先，你需要从[开发者控制台](https://squarecloud.app/zh/account/security)获取一个 API 密钥。你可以使用该 API 密钥向 Square Cloud API 进行身份验证。

```bash theme={null}
'Authorization': '<api_key>'
```

## API 使用

你可以使用 API 密钥向 Square Cloud API 进行身份验证。你可以将 API 密钥放在 `Authorization` 请求头中。
请记住，API 的使用受[服务条款](https://squarecloud.app/legal)和[可接受使用政策](https://squarecloud.app/legal/policy)的约束。

## OpenAPI 规范

Square Cloud API 发布了一份机器可读的 [OpenAPI](https://www.openapis.org/) 规范，描述了每一个端点、参数、模式和身份验证方法。你可以用它来生成客户端、将 API 导入到 Postman 或 Insomnia 等工具中，或让你自己的集成与最新的更改保持同步。

```bash theme={null}
https://api.squarecloud.app/v2/openapi.json
```

<Card title="限制与约束" href="/zh/api-reference/limitations-and-restrictions">
  了解 Square Cloud API 的限制与约束。
</Card>
