- 项目 API Key:提供访问特定项目的权限。项目 API Key 只能用于访问该项目中的资源。
- 全局 API Key:提供管理项目的权限,例如创建一个项目。只有团队管理员才能管理项目。
x-pd-api-key HTTP 头中包含您的 API Key,例如:
发起请求
您可以将以下命令复制并粘贴到终端中,执行您的第一个 API 请求。执行请求前,请将$PROJECT_API_KEY 替换为您的 API 密钥,将 $USER_ID 替换为您的实际用户 ID。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
在开始使用 Relyt AI 前,需要获取 API Key 用于身份认证
x-pd-api-key HTTP 头中包含您的 API Key,例如:
x-pd-api-key: API_KEY
$PROJECT_API_KEY 替换为您的 API 密钥,将 $USER_ID 替换为您的实际用户 ID。
curl --request POST \
--url https://app.ai.relyt.cn/app/api/v2/team/sessions \
--header 'Content-Type: application/json' \
--header 'x-pd-api-key: $PROJECT_API_KEY' \
--data '{
"name": "My session",
"output_language": "FR",
"job_mode": "AUTO",
"max_contextual_job_history": 10,
"agent_id": "DATA_ANALYSIS_AGENT",
"user_id": "$USER_ID"
}'
import requests
url = "https://app.ai.relyt.cn/app/api/v2/team/sessions"
payload = {
"name": "My session",
"output_language": "FR",
"job_mode": "AUTO",
"max_contextual_job_history": 10,
"agent_id": "DATA_ANALYSIS_AGENT",
"user_id": "tmm-dafasdfasdfasdf"
}
headers = {
"x-pd-api-key": "$PROJECT_API_KEY",
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
print(response.text)