Token Platform
  • Getting started
  • Fundamentals
    • Developer portal
    • Organizations
    • Developer apps
    • Authentication
    • Rate limits
  • Notarization APIs
    • Stamp API
    • Anchoring API
    • Common endpoints
  • Storage services
    • IPFS Web Gateway
    • IPFS Storage & Pinning Service
      • API reference
  • Streams API
    • API reference
  • SSI
    • Introduction
    • Architecture
    • API reference
  • Other
    • cli snippets
  • Legal
    • Privacy Policy
Powered by GitBook
On this page
  • Anchor some data
  • Get anchored data from a HASH
  • Get anchored data from a Hash [DEPRECATED]
  • All anchors

Was this helpful?

  1. Notarization APIs

Anchoring API

Anchor some data

POST https://api.token-project.eu/notarization/stamp

Creates a timestamp for a given SHA-256 hash hexadecimal digest.

Headers

Name
Type
Description

Content-Type

string

application/x-www-form-urlencoded

Authorization*

string

Bearer: $TOKEN

Request Body

Name
Type
Description

hash*

string

SHA-256 hash

data*

string

Data to be anchored

{
    "transactionId": "1b9e6cb48098bc1fd8d8bd44c53e92c394c06a41ed50ab5845ed3e8b36e9f012"
}
curl -L -X POST 'https://api.token-project.eu:443/notarization/stamp' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Authorization: Bearer $TOKEN' \
--data-urlencode 'hash=$HASH'

Get anchored data from a HASH

GET https://api.token-project.eu/notarization/stamp/$STAMP

Retrieves all anchored data for a certain HASH

Headers

Name
Type
Description

Content-Type

string

application/x-www-form-urlencoded

Authorization*

string

Bearer: $TOKEN

[
    {
        "docType": "stamp",
        "hash": "2f3f3a85340bde09b505b0d37235d1d32a674e43a66229f9a205e7d8d5328ed1",
        "data": "------DATA-----"
    }
]
curl -L -X GET 'https://api.token-project.eu:443/notarization/stamp/$STAMP' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Authorization: Bearer $TOKEN'

Get anchored data from a Hash [DEPRECATED]

GET https://api.token-project.eu/notarization/blockinfos/stamp/keys/$HASH

Retrieves all receipts (also known as proofs) for a certain hash. [DEPRECATED] Use get /stamp instead

Headers

Name
Type
Description

Content-Type

string

application/x-www-form-urlencoded

Authorization*

string

Bearer: $TOKEN

[
    {
        "docType": "stamp",
        "hash": "2f3f3a85340bde09b505b0d37235d1d32a674e43a66229f9a205e7d8d5328ed1",
        "data": "------DATA-----"
    }
]
curl -L -X GET 'https://api.token-project.eu:443/notarization/blockinfos/stamp/keys/$HASH' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Authorization: Bearer $TOKEN'

All anchors

GET https://api.token-project.eu/notarization/stamps

Retrieves all anchors made by the requesting client, ordered by date, from newest to oldest.

Headers

Name
Type
Description

Content-Type

string

application/x-www-form-urlencoded

Authorization*

string

Bearer: $TOKEN

[
    {
        "docType": "stamp",
        "hash": "2f3f3a85340bde09b505b0d37235d1d32a674e43a66229f9a205e7d8d5328ed1",
        "data": "------DATA-----"
    },
    {
        "docType": "stamp",
        "hash": "2f3f3a85340bde09b505b0d37235d1d32a674e43a66229f9a205e7d8d5328ed16",
        "data": "------DATA-----"
    },
    {
        "docType": "stamp",
        "hash": "oiam9yZ2U3NzMiLCJvcmdOYW1lIjoiT3JnMSIsImlhdCI6MTU0OTk5NzU3OX0",
        "data": "------DATA-----"
    }
    ...
]
PreviousStamp APINextCommon endpoints

Last updated 3 years ago

Was this helpful?