Passbolt API Complete Guide

Thanks for answering and sharing those links. But I really don’t want to install any package just simple use API links.

I want to achieve below:

  1. GET username / password / url
  2. POST username / password / url
  3. UPDATE password for specific username

So If I asked what should be the complete API command to first authenticate and if I run command to get/update/add credentials.

For example:
curl https://domain.passbolt/------- ?

Just for your understanding what i want to achieve is;
I have written an Ansible playbook which checks the inventory ( hosts ) and then update the password of all those host by checking it from TEAMPASS ( Now how to use the API of PASSBOLT to get a password and if there is no password then create that entry )
for example:
# Teampass, ask for a new password string
#
- name: teampass - generate new password
uri:
url: “{{ api_url }}/new_password/{{ password_length }}{{ api_suffix }}”
headers: “{{ default_headers }}”
return_content: yes
body_format: json
register: new_password
failed_when: “‘password’ not in new_password.json”

I think there should be very simple two-line of commands

  1. Authenticate to PASSBOLT server
  2. GET username and password
  3. PUT/UPDATE username and password