User Profile
Username
Token Expiry
JWT Access Token
The token is masked and cannot be copied from the textbox. Use Copy Token.
Use this token in Python
Copy the token using the button above, then send it as a Bearer token in the Authorization header. Use the Python code below to simulate an example.
# 1) Install:
#    pip install requests
#
# 2) Paste the token you copied:

import requests

ACCESS_TOKEN = "PASTE_TOKEN_HERE"
url = "https://perceptronptmkb.lums.edu.pk/ptmkb/api/get-available-ptms"

resp = requests.get(
    url,
    headers={"Authorization": f"Bearer {ACCESS_TOKEN}"}
)

if resp.status_code == 200:
    print(resp.json())
else:
    print(resp.text)
 
With your token, navigate to the Integration tab and download the script to get started.
Keep tokens private. Don’t share them, log them, or commit them to git.
Search History
Copied!