{% extends 'ddm_core/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 90 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.url_id }}/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.url_id }}/download/ -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b' -H 'Super-Secret: y0urSuperSecr3t'
).
{% else %}
(e.g., GET https://{{ request.get_host }}/api/project/{{ project.url_id }}/data/ -H 'Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b'
).
{% endif %}
A token has yet to be created.
{% endif %}Delete current token to create a new one.
{% else %} {% endif %} {% endblock %} {% block breadcrumbs %} Projects / "{{ project.name|truncatechars:15 }}" Project / Manage Access Token {% endblock %}