CAS API

Making requests

All queries to the CAS API must be served over HTTPS and need to be presented in this form: https://api.cas.chat/METHOD_NAME. Example:

https://api.cas.chat/check?user_id=821871410

We only support GET HTTP method.

The response contains a JSON object, which always has a boolean field 'ok' and may have an optional string field 'description' with a human-readable description of the result. If 'ok' equals true, the request was successful and the result of the query can be found in the 'result' field. In case of an unsuccessful request, 'ok' equals false and the error is explained in the 'description'.


check

Use this method to check whether a user is CAS banned. The only parameter is user_id (Telegram user ID).

export.csv

Use this to get all CAS banned accounts in a single CSV file.