{% extends 'planner/base.html' %} {% block title %}API tokens · Tasknest{% endblock %} {% block content %}

Personal preferences

API tokens

Give an app access to your food log and kitchen inventory. Keep tokens private.

{% if new_token %}

New token

Copy this token now. For security reasons it cannot be shown again.

{% endif %}

Create token

{% csrf_token %} {% for field in form %}{% if field.name == 'scopes' %}
Permissions{{ field }}{{ field.errors }}
{% else %}
{{ field.label_tag }}{{ field }}{{ field.errors }}
{% endif %}{% endfor %}

Active tokens

{% for token in tokens %}

{{ token.name }}

Permissions: {{ token.scopes|join:", " }} · Created: {{ token.created_at|date:"SHORT_DATETIME_FORMAT" }} · Last used: {{ token.last_used_at|date:"SHORT_DATETIME_FORMAT"|default:"Never" }}

Status: Active{% if token.expires_at %} · Expires: {{ token.expires_at|date:"SHORT_DATETIME_FORMAT" }}{% endif %}

{% csrf_token %}
{% empty %}

No active API tokens.

{% endfor %}

Connect an AI assistant

Compatible assistants can use your Food and Kitchen data through MCP. Access is limited to the permissions you grant.

Treat this token like a password. TaskNest does not save the token you paste here. You can revoke access from your API tokens.

ChatGPT

Add a custom MCP app in ChatGPT and enter the MCP server URL. Select OAuth authentication, then sign in to TaskNest and approve the requested permissions. ChatGPT does not use the pasted token field.

Open WebUI

In Admin Settings → Integrations → External Tool Servers, add an MCP (Streamable HTTP) connection. Use the URL above, choose Bearer authentication, and paste your token into its Key field.

Generic MCP client

Use Streamable HTTP at the URL above and send Authorization: Bearer <your token> as a separate header. Never put the token in the URL.

{% endblock %}