{% extends 'ddm/admin/generic/page_with_form.html' %} {% block page_title %}Project Access Token{% endblock %} {% block main_heading %}Manage Project Access Token{% endblock %} {% block main_top %}
The collected data of a project can be accessed remotely through the download API.
For this to work, an access token must be created. Access tokens are project-specific.
Access tokens are valid for a limited time (maximum 120 days). After the current token has expired, a new one must be created.
The download API endpoint for this project is https://{{ request.get_host }}/api/project/{{ project.pk }}/data/
.
When making a request, prefix your token with "Token " and include this string in the Authorization HTTP header.
{% if project.super_secret %}
Because this is a super secret project, the secret must also be provided in an HTTP header named "Super-Secret" (e.g., GET https://{{ request.get_host }}/{{ project.pk }}/download/ -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b' -H 'Super-Secret: y0urSuperSecr3t'
).
{% else %}
(e.g., GET https://{{ request.get_host }}/api/project/{{ project.pk }}/data/ -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b'
).
{% endif %}
A token has yet to be created.
{% endif %}