📘

About this guide

This guide walks you through accessing Demyst's API gateway through JSON Web Tokens in compliance with the industry-standard RFC 7519 method.

Tokens can be generated with the email address (username) and password of an account that has provisioned access to the Demyst platform.

🚧

Passwords expire after 90 days, and tokens are valid for 24 hours.

Sample cURL request with token generation

curl -X POST \
  https://console.demystdata.com/jwt/create \
  -H 'Content-Type: application/json' \
  -d '{
    "email_address": "EMAIL",
    "password": "PASS"
}'

#Use the response token from above in below
curl -X POST \
  https://gw.us.demystdata.com/v2/channel \
  -H 'Content-Type: application/json' \
  -d '{
    "api_key": "JWT_FROM_ABOVE",
    "id": 1020,
    "inputs": {
    }
}'