#Cannot access api

2 messages · Page 1 of 1 (latest)

frozen brook
#

I'm trying to test the api locally. I copied the most basic example from the docs.

:~# curl "http://127.0.0.1:8080/api/application/servers" \
   -H "Authorization: Bearer {KEY_FROM_API_ADMIN}" \
   -H "Content-Type: application/json" \
   -H "Accept: Application/vnd.pterodactyl.v1+json"

I'm getting the following error:

{"error":"You are not authorized to access this endpoint."}
worn wind
#

That's because you're connecting to wings, instead of the panel