{% extends "base.html" %} {% block title %}New token ยท dayfile{% endblock %} {% block main %}

Your new {{ token.kind }} token

This is the only time it is shown. Copy it now and keep it somewhere safe.
{{ token.token }}
{% if token.kind == "write" %}
curl -X POST https://{{ slug }}.{{ base_domain }}/events \
  -H "Authorization: Bearer {{ token.token }}" \
  -H "Content-Type: application/json" \
  -d '{"title": "Hello from my first event"}'

Run it, then open your log: the event shows up there on its own. Add "tags": ["todo"] to make it a to-do.

{% else %}

For a feed reader that cannot send headers, anyone with this address can read what the token allows. Treat it like a password:

https://{{ slug }}.{{ base_domain }}/t/{{ token.token }}/feed.atom
https://{{ slug }}.{{ base_domain }}/t/{{ token.token }}/feed.json
{% endif %}

Back to tokens

{% endblock %}