{% extends "base.html" %} {% block title %}Token Created - PyRunner{% endblock %} {% block content %}
Copy your new token now - it won't be shown again
{% if token_obj.datastore %} Access: {{ token_obj.datastore.name }} datastore {% else %} Access: All datastores {% endif %}
Copy this token now!
This is the only time you'll see this token. Store it securely - if you lose it, you'll need to create a new one.
Use your token to access the API:
List datastores:
curl -H "Authorization: Bearer {{ token_value }}" {{ request.scheme }}://{{ request.get_host }}/api/v1/datastores/
Get entries from a datastore:
curl -H "Authorization: Bearer {{ token_value }}" {{ request.scheme }}://{{ request.get_host }}/api/v1/datastores/YOUR_STORE/entries/