Protocol

The server offers a RESTful HTTP interface secured by HTTPS.

Authentication

  1. Client aquires client certificate from certificate store
  2. Client initiates secured HTTPS connection to localhost port 12984
  3. Server authenticates client by client certificate. If the client certificate is not in the allowed list, server prompts user to allow or deny the client
    1. If user denies the client, the server aborts the connection
    2. If user allows the client, the client certificate is added to the allowed list and the connection is authenticated
  4. Client sends requests

RESTful API

The server expects and returns data formatted with JSON.

Get

Returns entry identified by uuid

Uri: /entry/{uuid}

Method: GET

Fields:

NameDescriptionType
Uuidunique id of entryUuid
UserNameUserNameString
PasswordPasswordString
TitleTitleString
NotesNotesString
URLUrlString

And any other variable fields of the entry.

Update

Updates existing entry identified by uuid

Uri: /entry/{uuid}

Method: PUT

If the update is successful, you get the following return.

DescriptionType
If the update succeededBoolean

Delete

Deletes entry identified by uuid

Uri: /entry/{uuid}

Method: DELETE

If the delete is successful, you get the following return.

DescriptionType
If the delete succeededBoolean

Create

Creates new entry.

Uri: /entry

Method: POST

Parameters:

NameDescriptionTypeRequired
GroupNameGroup name. If not set use root groupStringNo
EntryName/Value pairs of new entryEntryYes

If the create is successful, you get the following return.

NameDescriptionType
uuidUuid of new entryUuid

Search

Queries for entries

Uri: /entry/search

Method: POST

Parameters:

NameDescriptionTypeRequired
ComparisonModeNumberNo
ExcludeExpiredBooleanNo
RegularExpressionBooleanNo
SearchInGroupNamesBooleanNo
SearchInNotesBooleanNo
SearchInOtherBooleanNo
SearchInPasswordsBooleanNo
SearchInTagsBooleanNo
SearchInTitlesBooleanNo
SearchInUrlsBooleanNo
SearchInUserNamesBooleanNo
SearchInUuidsBooleanNo
SearchStringStringYes

Returns collection of matching entries