We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Missing Authentication Token



  • I'm returning to Omega2 devices after some months and deploying Golang code to them. All good. The Golang code cross-compiles perfectly and the Omega2 is a good device for my needs.

    However, reviewing my notes, I'm unable to curl the api.onion.io/v1 endpoint.

    I tried an existing and generating a new API Key but neither work.

    I'm using two -- what should be straightforward -- method calls:

    curl \
    --request GET \
    --header "X-API-KEY: ${API_KEY}" \
    --header "Content-Type: application/json" \
    https://api.onion.io/v1/admin/devices
    

    This returns:

    {"statusCode":401,"error":"Unauthorized","message":"Missing authentication"}
    

    and:

    curl \
    --request POST \
    --header "X-API-KEY: ${API_KEY}" \
    --header "Content-Type: application/json" \
    https://api.onion.io/v1/devices/${OMEGA_1}/network.device/status
    

    This returns:

    {"statusCode":400,"error":"Bad Request","message":"Invalid API key"}
    

    Which the documentation suggests, I'm not (missing) by providing it through the X-API-KEY header.

    Suggestions?
    Is there a status dashboard for the Cloud service and API?


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.