{% extends "base.html" %} {% block title %}Token Created - PyRunner{% endblock %} {% block content %}
{% include "cpanel/_sidebar.html" %}

API Token Created

Copy your new token now - it won't be shown again

Token "{{ token_obj.name }}" created successfully

{% 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.

Quick Start

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/
{% endblock %}