-
Notifications
You must be signed in to change notification settings - Fork 0
Method: accounts.get
Robert Durfee edited this page Apr 12, 2020
·
6 revisions
Returns the specified account resource.
(The REST API endpoint handler code can be found here.)
GET https://api.passwords.durfee.io/accounts/{resourceId}
Parameters | |
---|---|
resourceId |
string The unique identifier of the account resource to return. This identifier is defined by the server. |
No query parameters are allowed.
The request body must be empty.
If successful, the response body contains data with the following structure:
{
"id": string,
"createdTimestamp": string,
"modifiedTimestamp": string,
"accessedTimestamp": string,
"key": string,
"iv": string,
"domainName": string,
"username": string,
"password": string
}
Fields | |
---|---|
id |
string The unique identifier for the account resource. This identifier is defined by the server. |
createdTimestamp |
string The time when the account resource was first created. |
modifiedTimestamp |
string The time when the account resource was last modified. |
accessedTimestamp |
string The time when the account resource was last accessed. |
key |
string The AES encryption key used to encrypt the password field. This field is encrypted using the user's public key. |
iv |
string The AES initialization vector used to encrypt the password field. |
domainName |
string The domain name for the account resource. |
username |
string The username for the account resource. |
password |
string The password for the account resource. This field is encrypted using the AES encryption key in the key field. |
curl \
--cert ~/.pw/alice.cert.pem \
--key ~/.pw/alice.key.pem \
--cacert ~/.pw/ca.cert.pem \
-X GET \
"https://api.passwords.durfee.io/accounts/5e7be4d894ab3d01651df603"