Storyden
Accounts

Account Warning List

List internal moderation warnings for an account. Warnings are never public. Members may view their own warning history, and staff with the `MANAGE_WARNINGS` permission may review warnings for any account.

GET
/accounts/{account_id}/warnings

List internal moderation warnings for an account. Warnings are never public. Members may view their own warning history, and staff with the MANAGE_WARNINGS permission may review warnings for any account.

Authorization

cookiestoryden-session<token>

Path Parameters

account_id*string

Account ID.

Formatxid

Response Body

OK

application/json
  1. response
warnings*array<>
total*integer
Example Request
curl -X GET 'https://example.com/api/accounts/string/warnings'
Example Response
{  "warnings": [    {      "id": "string",      "issued_at": "2019-08-24T14:15:22Z",      "reason": "string",      "issued_by": {        "id": "string",        "joined": "2019-08-24T14:15:22Z",        "suspended": "2019-08-24T14:15:22Z",        "handle": "string",        "name": "string",        "signature": "string",        "roles": [          {            "badge": true,            "default": true,            "id": "string",            "name": "string",            "colour": "string",            "meta": {}          }        ]      }    }  ],  "total": 0}