Get 2nd ended info

In order to get the ended (instead of the current) status of the production line of the 2nd 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 2nd 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:57:40 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": 13782,
            "reachable": "10485",
            "alphabet": "UPPER_VOWELS",
            "available": "7888609052210118054117285652827862296732064351090230047702789306638625",
            "partial": true,
            "checksum": "1010101100011110010111001101100101110000111011111101000110111111010011101100110001111000111101100110010011000011101010110001011010001100000110100111011101100011110001111000011100000110010111010111100101110111111000011100101110000111001011100010110100011000011101110110010111001001101000110001111011011100110110000111011011101001110111111011101100100110011011000101100001110001111011011101111110100011010111101001110111111000001100011110010011011001101001110101011001001101111110100111011111101100110110011001011101000110101011001101100110110010111010011101100110011111001011100100110100011001001101010110001111010111100101110001011010101101001110101111010101101110110101011010101101001110011011000111",
            "status": "ended",
            "progress": 100,
            "filesizes": {
                "data": 100999
            },
            "digits": "100",
            "filehashes": {
                "data": "584fb204b9cd7cfb078b1a29c287b63740185c68a38704766306c524fb4beb7d"
            },
            "size": "1000",
            "timestamps": {
                "ended": "2024-03-19T12:57:40.538Z",
                "started": "2024-03-19T12:57:33.275Z",
                "requested": "2024-03-19T12:57:33.263Z"
            }
        },
        "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