# 快速上手

## API 串接

### API 串接文件與範例程式碼

{% embed url="<https://github.com/Playma-Co-Ltd/maiagent-api-examples/>" %}

## 基本 API 端點

```
https://api.maiagent.ai/api/v1/
```

## 身份驗證

所有 API 請求都需要使用 API 金鑰進行身份驗證。請在請求標頭中加入 API 金鑰：

「API 金鑰」請登入 MaiAgent 系統後台，然後按照以下步驟操作：

1. 於右上角點擊「使用者名稱」。
2. 點擊「帳號」。
3. 即可查看「API 金鑰」。

```
Authorization: Api-Key <您的API金鑰>
```

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-80dd2f4698ec1ee60b09c97be27b5e97fda5cc58%2F%E6%88%AA%E5%9C%96%202024-12-02%20%E6%99%9A%E4%B8%8A10.25.06.png?alt=media" alt=""><figcaption><p>API 金鑰</p></figcaption></figure>
