Docs menu
POST
/api-key
Path
POST
/api/v1/partners/api-keyAuthentication required
tokencurl example
curl -X POST "https://api.route4green.com/api/v1/partners/api-key" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "content-type: application/json" \
-d '{
"environment": {}
}'Parameters
This endpoint takes no parameters.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| environment | sandbox | production | No | 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 fieldsGenerateApiKeyDto
Responses
201