Generate Authorization Key
All APIs take a ‘access key ID’ and ‘secret key’ param in the header. These key-secret pairs are associated with a user and allows the permission to the user to request the API.
After you get the access key and the secret key, you need to create an authorization key to be put in the Authorization header.
Send a POST request to https://backend.cloud.nodeflux.io/auth/signatures by providing these arguments as application/json with request:
1
{
2
"access_key": "{YOUR_ACCESS_KEY}",
3
"secret_key": "{YOUR_SECRET_KEY}"
4
}
Copied!
Then you will get a response:
1
{
2
"headers": {
3
"x-nodeflux-timestamp": "20211213T062502Z"
4
},
5
"ok": true,
6
"token": "b5005b75e579500fdd89ceee620414b70e021f7b730b647084dd4693d799d2"
7
}
8
Copied!
post
https://backend.cloud.nodeflux.io
/auth/signatures
Generate Authorization Key
After you get the x-nodeflux-timestamp and token, please construct your authorization key with this format:
1
NODEFLUX-HMAC-SHA256 Credential={ACCESS_KEY}/{DATE}/nodeflux.api.v1beta1.ImageAnalytic/StreamImageAnalytic, SignedHeaders=x-nodeflux-timestamp, Signature={TOKEN}
Copied!
1
NODEFLUX-HMAC-SHA256 Credential=STTCRR3L5APXAUG5HXZ1RB1CN/20211213/nodeflux.api.v1beta1.ImageAnalytic/StreamImageAnalytic, SignedHeaders=x-nodeflux-timestamp, Signature=b5005b75e574500fdd8b9aeeee620414b70e021f9b730b647084dd4693d799d2
Copied!
Component to be changed
Value
ACCESS_KEY
Your access key from IdentifAI application
DATE
Get the date from x-nodeflux-timestamp (yyyymmdd)
TOKEN
Your token from endpoint response
The authorization key will be used as an identifier when you call each service API.
Export as PDF
Copy link