Mục lục tài liệu
POST
/api-key
Đường dẫn
POST
/api/v1/partners/api-keyXác thực yêu cầu
tokenVí 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ường | Kiểu | Bắt buộc | Mô tả |
|---|---|---|---|
| environment | sandbox | production | Không | Key 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