JWTs (auth tokens)

JSON web tokens are a signed JSON object sent in the Authorization header in all requests towards the API. Once users log in, they receive a JWT (referred to here as auth_tokens) allowing them to access APIs that are permitted with that token. The following example shows how an auth_token is included in the Authorization request header (the “Bearer” type) when creating a new user:

POST https://cdn.emnify.net/api/v1/user

Request header

Authorization: Bearer kNTktNTA1My00YzdhLT...

Request body

  "username": "myuser@example.com",
  "name": "New User"

Application Tokens »