Create API key
documentedCreate a new API key (admin scope).
POST /admin/keys.jsonAdminno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://discourse.org/admin/api/keys" \
-X POST \
-H "Api-Key: {{DISCOURSE_API_KEY}}" \
-H "Api-Username: {{$admin_username}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"description": "{{$description}}", "scope": "{{$scope}}", "username": "{{$target_username}}"}'