Errore di accesso non valido

Allora non stai passando le credenziali correttamente. Puoi cercare esempi su come passarle nell’header.

Ma ho appena testato questo:

DISCOURSE_API_KEY==API_KEY=
DISCOURSE_API_USER==API_USER=
    curl -s -X GET --header "Api-Key: $DISCOURSE_API_KEY" --header "Api-Username: $DISCOURSE_API_USER" https://example.com/admin/dashboard.json