Skip to main content
Docs menu
POST

/api-key

Path

POST/api/v1/partners/api-key
Authentication requiredtoken

curl 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

FieldTypeRequiredDescription
environmentsandbox | productionNoKey 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

Back to group: API keys

POST /api-key | Route4Green