You can view a single key by executing the following request:
[GET] /api/v1/key/{id}
STATUS: 200 OK
{
"id": "1",
"title": "second key",
"type": "PASSWORD",
"folder": "2",
"url": "https://pass.securium.ch",
"password": "ZGVtbw==",
"username": "ZGVtby5tYW5hZ2Vy",
"email": "demo@pass.securium.ch",
"description": ""
}
To create a new key, you can execute the following request:
[POST] /api/v1/key
STATUS: 201 CREATED
{
"id": "2",
"title": "first key",
"type": "PASSWORD",
"folder": "1",
"url": "https://pass.securium.ch",
"password": "ZGVtbw==",
"username": "ZGVtby51c2Vy",
"email": "demo@pass.securium.ch",
"description": ""
}
You can update an existing key using PUT:
[PUT] /api/key/{id}
STATUS: 200 OK
{
"id": "2",
"title": "rename first key",
"type": "PASSWORD",
"folder": "1",
"url": "https://pass.securium.ch",
"password": "ZGVtbw==",
"username": "ZGVtby51c2Vy",
"email": "demo@pass.securium.ch",
"description": ""
}