CURL Examples

User Auth

Users can perform a request with CURL to check if their credentials are correct:

curl -vX POST "https://portal.whereversim.com/api/v1/authenticate" \
-H  "accept: application/json" -H  "Content-Type: application/json" \
-d "{\"username\":\"user@example.com\",\"password\":\"mypassword\"}"

Using JWTs

Users with a JWT auth_token can pass it through using CURL to perform a basic validity check:

curl -vX GET "https://portal.whereversim.com/api/v1/endpoint" \
-H  "accept: application/json" -H  "Authorization: Bearer kNTktNTA1My00YzdhLT..."