Help with API authentication syntax

Hello All,

As the title suggests, I am having some issues with the API’s authentication process.
The documentation suggests that:
The client sends the fingerprint of the user’s key via a POST request.

I am working in a python environment using the requests module.

The following syntax is not working

body = { ‘gpg_auth’ : { ‘keyid’ : } }

What would be the correct JSON syntax to use in the body of the request?

The methods I tried return “The authentication failed. There is no user associated with this key. No key id set.”

Thanks for any and all help

Hello,

There is already an implementation of gpgauth in python, you might want to check this one out:

Cheers,

Hi remy,
Thanks for the suggestion, will definitely check it out!
Regards