Step 1. Create a Freemium account
//Create Token
json=$(curl --location --request POST 'https://api.i2chain.com/auth/v2/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email":"<your login email>",
"password":"<your password>"
}')
jwtToken=$(echo $json | sed -e 's/[{}]/''/g' | sed s/"//g | awk -v RS=',' -F: '$3=="jwtToken"{print $4}')
//Create Token
curl --location --request POST 'https://api.i2chain.com/auth/v2/login' \
--header 'Content-Type: application/json' \
--data-raw '{
"email":"<your login email>",
"password":"<your password>"
}'
//extract value of token.idToken.jwtToken from Response object
//this value should be passed in subsequent calls as $jwtToken header variable
//chain at rest enterprise-wide / Chain At Rest
curl --location --request POST 'https://api.i2chain.com/file/v3/chainandshare'
--header "Authorization: $jwtToken"
--form 'filename="<Your file name>"'
--form 'file=@"<Your file path>"'
The chaining process creates non-fungible traceable messages.
Share will use our email gateway for demo purposes.
//Option 1.a - Chain content and share via email
base64Content=$(echo 'sample demo content for i2chain' | base64)
curl --location --request POST 'https://api.i2chain.com/file/v3/chainandshare' \
--header "Authorization: $jwtToken" \
--header 'Content-Type: application/json' \
--data-raw '{
"content" : "'$base64Content'",
"filename" : "<your file>",
"recipients":"<recipient email>"
}'
The chaining process creates non-fungible traceable messages.
Share will use our email gateway for demo purposes.
// Option 1.b -Chain file and share via email
curl --location --request POST 'https://api.i2chain.com/file/v3/chainandshare' \
--header "Authorization: $jwtToken" \
--form 'recipients="<recipient email>"' \
--form 'filename="<your filename>"' \
--form 'file=@"/Users/<your filepath>"'
Chain Certificates and obtain lifetime Certificate weblink.
Optional traceable actions on the web link.
Please Contact Sales to register issuing authority: