Use this API key to authenticate your requests.

<%= current_user.api_key %>

Or you can scan it in your Dawarich iOS app: <%= api_key_qr_code(current_user) %>

Docs: <%= link_to "API documentation", '/api-docs', class: 'underline hover:no-underline' %>

Usage examples

Dawarich iOS app

Provide your instance URL:

<%= root_url %>

And provide your API key:

<%= current_user.api_key %>

OR

OwnTracks

<%= api_v1_owntracks_points_url(api_key: current_user.api_key) %>

OR

Overland

<%= api_v1_overland_batches_url(api_key: current_user.api_key) %>

<%= link_to "Generate new API key", generate_api_key_path, data: { turbo_confirm: "Are you sure? This will invalidate the current API key.", turbo_method: :post }, class: 'btn btn-primary' %>