Get analysis analyzed info
In order to get the current status of the production line, the identifier of the tokens object MUST be sent as HTTP request path parameter.
If the JSON response body contains the path data attributes status: analyzed together with other attribute–value pairs, the production of the tokens has been analyzed at the requested data attributes analysis: metrics level. In this case, the tokens data, the tokens analysis and the tokens score of the production line are all linked in it and are available for download.
Request endpoint
GET SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Response status
200
Request headers
Accept:application/vnd.api+json
Content-Type:application/vnd.api+json
Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS
Response headers
Transfer-Encoding:chunked
Connection:keep-alive
Accept:application/vnd.api+json
Cache-Control:no-cache
Date:Mon, 21 Nov 2022 07:24:15 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.23.2
Request body
# intentionally blank
Response body
{
"meta": {
"seed": "HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH"
},
"links": {
"score": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/score",
"analysis": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/analysis",
"self": "/api/tokens",
"data": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data",
"info": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
},
"data": {
"attributes": {
"analysis": "metrics",
"rate": 6193,
"reachable": "0",
"alphabet": "DICE",
"available": "0",
"partial": false,
"checksum": "0000000000000000000000000000000000000000000000000000000000000000000000",
"status": "analyzed",
"filesizes": {
"score": 37769,
"analysis": 2066,
"data": 124415
},
"digits": "5",
"filehashes": {
"score": "2f9ad70fbcf9fcb290ad93c86baac56c18af983784c776ddbb9716377cc4569b",
"analysis": "9f930e242d88af5d6483225abc7e8f25854545348c1ad697569ccdb6e25184b5",
"data": "24451d1aa1f6b9c99746d2148a6a454f7a095dfb7253ff1505f39fd281908789"
},
"size": "7776",
"timestamps": {
"ended": "2022-11-21T07:24:10.623Z",
"analyzed": "2022-11-21T07:24:14.055Z",
"started": "2022-11-21T07:24:04.339Z",
"requested": "2022-11-21T07:24:04.273Z",
"finished": "2022-11-21T07:24:10.626Z"
}
},
"id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"type": "tokens"
}
}
HTTPie example
$ http get SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS