/token/{tokenSlug}/risktoken-riskReturns the token's risk score (0–100) together with any active advisory (severity, message, source). Every field can be null when the score or advisory has not yet been populated. Returns null when no token matches the supplied key.
| Name | Location | Details |
|---|---|---|
BearerAuth | Authorization header · bearer | JWT issued by the Honeycluster auth service for the `indexer` audience. Present as `Authorization: Bearer <token>`. |
| Name | Type | Default | Description |
|---|---|---|---|
tokenSlugrequired | string | Natural token identifier in `currency.issuer` form. Example: `USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B`. |
| Field | Type | Description |
|---|---|---|
riskScore | object | Risk score (0–100; higher is riskier). `null` when the score has not been fetched yet. |
advisorySeverity | object | Advisory severity level (`caution`, `warning`, or `danger`). `null` when no advisory is active for the token. |
advisoryMessage | object | Free-text advisory message describing the flag. `null` when no advisory is active. |
source | object | Source that set the advisory (e.g. `manual`). `null` when no advisory is active. |
{
"riskScore": 12,
"advisorySeverity": null,
"advisoryMessage": null,
"source": null
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "BAD_REQUEST",
"message": "Invalid input data",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "UNAUTHORIZED",
"message": "Authorization not provided",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "FORBIDDEN",
"message": "Insufficient access",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "NOT_FOUND",
"message": "Not found",
"issues": []
}| Field | Type | Description |
|---|---|---|
message | string | The error message |
code | string | The error code |
issues | object[] | An array of issues that were responsible for the error |
issues[]. | string |
{
"code": "INTERNAL_SERVER_ERROR",
"message": "Internal server error",
"issues": []
}