Spaces:
Runtime error
Runtime error
Download scripts/demo_payloads.http from Oheha/cybully-api: direct link, hf CLI and curl.
- Browser
- Download file 861 Bytes
-
https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/scripts/demo_payloads.http
- Command line
-
hf download hf://spaces/Oheha/cybully-api/scripts/demo_payloads.http
-
curl -L -o demo_payloads.http https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/scripts/demo_payloads.http
861 Bytes
| @baseUrl = http://localhost:8000 | |
| @token = dev-internal-token | |
| ### Health | |
| GET {{baseUrl}}/health | |
| ### Benign sample | |
| POST {{baseUrl}}/api/v1/analyze/text | |
| Content-Type: application/json | |
| X-Internal-Token: {{token}} | |
| { | |
| "user_id": "student1@example.com", | |
| "target_user_id": "student2@example.com", | |
| "timestamp": "2026-05-18T18:00:00Z", | |
| "text": "I disagree with your point, but I think we can work it out." | |
| } | |
| ### Toxic sample | |
| POST {{baseUrl}}/api/v1/analyze/text | |
| Content-Type: application/json | |
| X-Internal-Token: {{token}} | |
| { | |
| "user_id": "student3@example.com", | |
| "target_user_id": "student4@example.com", | |
| "timestamp": "2026-05-18T18:05:00Z", | |
| "text": "You are useless and everyone should avoid you." | |
| } | |
| ### Incident list | |
| GET {{baseUrl}}/api/v1/incidents | |
| X-Internal-Token: {{token}} | |
| ### Alert list | |
| GET {{baseUrl}}/api/v1/alerts | |
| X-Internal-Token: {{token}} | |