๐ฎ POST /api/v1/gsc/command-requests/
Creates a CommandRequest for an arbitrary command.
๐งพ Request body
Fields (see apps/api/v1/gsc/serializers.py):
commandโ one of:check_domain_safetysend_appealget_account_domains
payloadโ JSON (depends on the command)account_emailโ Google account email (must exist in DB)headlessโ boolean (default:false)callback_urlโ optional URL
๐ฆ Response
{
"id": 123,
"command": "check_domain_safety",
"account_email": "user@example.com",
"status": "NEW"
}๐ป curl example
curl -X POST "http://localhost:8000/api/v1/gsc/command-requests/" \
-H "Content-Type: application/json" \
-H "AUTHORIZATION: Bearer <AUTHORIZATION_TOKEN>" \
-d '{
"command": "check_domain_safety",
"payload": {"domain": "example.com"},
"account_email": "user@example.com",
"headless": true,
"callback_url": "https://example.com/callback"
}'