curl

Common API operations using curl.

User authentication

You can perform a request with curl to check if your credentials are correct:

$curl -vX POST "https://cdn.emnify.net/api/v1/authenticate" \
>-H "accept: application/json" -H "Content-Type: application/json" \
>-d "{\"username\":\"user@example.com\",\"password\":\"YOUR_PASSWORD\"}"

Using JWTs

You can pass a JWT auth_token through using curl to perform a basic validity check:

$curl -vX GET "https://cdn.emnify.net/api/v1/endpoint" \
>-H "accept: application/json" -H "Authorization: Bearer AUTH_TOKEN"