Get 1st ended info

In order to get the ended (instead of the current) status of the production line of the 1st tokens part, the identifier of the tokens object MUST be sent as the first HTTP request path parameter together with ended as the second HTTP request path parameter.

If the JSON response body contains the path data attributes status: ended together with other attribute–value pairs, the production of the 1st tokens part has been finished. In this case, the tokens data are linked in it and available for download. The snapshot of the production line is not available for download at this point.

Request endpoint

GET SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/ended

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:Tue, 19 Mar 2024 12:55:20 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

{
    "meta": {
        "seed": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    },
    "links": {
        "self": "/api/tokens",
        "data": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/data",
        "info": "/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
    },
    "data": {
        "attributes": {
            "analysis": "none",
            "rate": 8799,
            "reachable": "52428",
            "alphabet": "UPPER_EPCG30",
            "available": "348678440099999999999999950000",
            "partial": true,
            "checksum": "11100101111101111101100110111111100111010111110000011111111010000100110011001111100011001101110000000111111000011110110000100011110011101010",
            "status": "ended",
            "progress": 100,
            "filesizes": {
                "data": 1049999
            },
            "digits": "20",
            "filehashes": {
                "data": "e5fc313f06a41d42ffd0c3c9671166b0e07d7edc360751d3467866a365b40254"
            },
            "size": "50000",
            "timestamps": {
                "ended": "2024-03-19T12:55:15.703Z",
                "started": "2024-03-19T12:53:22.048Z",
                "requested": "2024-03-19T12:53:16.143Z"
            }
        },
        "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        "type": "tokens",
        "relationships": {
            "payment": {
                "data": {
                    "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
                    "ident": "pi_XXXXXXXXXXXXXXXXXXXXXXXX",
                    "type": "transaction"
                }
            }
        }
    }
}

HTTPie example

$ http get SERVER:PORT/api/tokens/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/ended Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS