API access_key & secret_key

I’m a little confused.
Where should I get this credentials from?
I’ve looked through the entire panel and there’s no option for this anywhere.
What is the current way to authorize for the API? Successfully use the API with a username and password, but it’s marked as legacy.

start edit admin user, than

I already did it.

Well, is a bug - my user name is not admin…

			<?php
				$api_status = (!empty($_SESSION['API_SYSTEM']) && is_numeric($_SESSION['API_SYSTEM'])) ? $_SESSION['API_SYSTEM'] : 0;
				if (($user_plain == 'admin' && $api_status > 0) || ($user_plain != 'admin' && $api_status > 1)) { ?>
				<a href="<?= $keys_url; ?>" class="button button-secondary js-button-create" title="<?= _("Access Keys") ?>">
					<i class="fas fa-key icon-purple"></i><?= _("Access Keys") ?>
				</a>
			<?php } ?>

Enable API access : Enabled for all users

1 Like

Please read before post - API is working but in legacy mode.

ahh, sry :slightly_smiling_face:

Thank you so much, this answered my question, just installed a fresh server with 1.9.2 and have updated 3 servers from 1.8.12 to 1.9.2 (all of them still on Ubuntu 22.04 because there is a known issue with languages on 24.04) and I was wondering why on updated server I was able to see access key for phpmyadmin and dns cluster and not on the fresh install hahaha.

Hard coded admin user instead the new variable Will be fixed in the next release

1 Like

Check here for a temporary solution -

This will fix it :slight_smile:

What is the logic behind the API?
To add a site I have to use the “legacy” method.

No you can use the billing or even create your own rules …

Can you provide more information and documentation?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.