Hash Payload
Use this method to store SHA256 hash strings. Ideal hash length is 64 characters with no spaces or special characters.
The Logware API will be considered EOL (End of Life) on January 1, 2024. Support for the API and its methods will discontinue on that date. So that you know- Logware customers will be contacted in advance with migration instructions.
StoreHash
POST
https://api.logware.io/api/hash
Post the Hash value you wish to store, get a response with a Task Id. Use the Get method with the Task Id to get Transaction Id. The Task Id can be discarded. The Transaction Id is permanent. Store the Transaction Id for future lookup of the Hash value stored.
Headers
Name | Type | Description |
---|---|---|
token | string | Authentication Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
env | string | Target environment [ prod | test ] |
hash | string | The hash string to store |
The Task Id included in the StoreHash method response is temporary and does not need to be saved. Use the Task Id to get the Transaction Id with the StoreHashId method below. The Transaction Id is permanent and must be saved if you intend to look up the hash value stored later in the future. After 1 hour, the Task Id is expunged and no longer accessible.
StoreHashId
GET
https://api.logware.io/api/hash/[env]/[taskId]
The Transaction Id will be available within 5 seconds of the StoreHash POST method response. Use this method to get the permanent Transaction Id of the stored Hash value. Your application has 1 hour to get the Transaction Id. After 1 hour passes, the Task Id is expunged. If you miss the 1 hour expiry, you will need to store another record to get a new Transaction Id.
Headers
Name | Type | Description |
---|---|---|
token | string | Authentication Bearer Token |
RetrieveHash
POST
https://api.logware.io/api/hash/retrieve
Path Parameters
Name | Type | Description |
---|---|---|
token | string | Authentication Bearer Token |
Request Body
Name | Type | Description |
---|---|---|
env | string | Target environment [ prod | test ] |
txid | string | The Transaction Id of the hash you wish to retrieve. |
RetrieveHashId
GET
https://api.logware.io/api/hash/retrieve/[env]/[taskId]
The hash value stored will be retrieved with the correct environment and taskId value supplied in the url query parameter.
Path Parameters
Name | Type | Description |
---|---|---|
token | string | Authentication Bearer Token |
Last updated