Chuyển đến nội dung chính
Mục lục tài liệu
POST

/api-key

Mở trong ChatGPTMở trong Claude

Đường dẫn

POST/api/v1/partners/api-key
Xác thực yêu cầutoken

Ví dụ gọi bằng curl

curl -X POST "https://api.route4green.com/api/v1/partners/api-key" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "content-type: application/json" \
  -d '{
  "environment": {}
}'

Tham số

Endpoint này không nhận tham số.

Nội dung gửi lên

TrườngKiểuBắt buộcMô tả
environmentsandbox | productionKhôngKey environment. `sandbox` keys run small capped test jobs; `production` is the default. `measurement` keys (free one-day measurement, 30-day lifetime, 3 jobs per client) are provisioned internally by Route4Green and cannot be generated here.
1 trườngGenerateApiKeyDto

Kết quả trả về

201

Về nhóm: Khóa API

POST /api-key | Route4Green