Skip to main content
GET
/
v1
/
admin
/
settlements
/
transitions
Get state transition counts for Sankey visualization
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.keystoneos.xyz/v1/admin/settlements/transitions', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "period": "<string>",
  "transitions": [
    {
      "from_state": "<string>",
      "to_state": "<string>",
      "count": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token. See Authentication for details.

Query Parameters

period
enum<string>
default:1h

Time period: 1h, 24h, 7d, or 30d

Available options:
1h,
24h,
7d,
30d

Response

Successful Response

State transition counts for the given period.

period
string
required
transitions
TransitionCount · object[]
required