Flags API
POST/v3/flags
The Flags API enables you to send details about the flag made on an item on your platform to the Alice T&S platform. A flag represents a report by a platform user of what they consider a violative item, such as to specify that a content, a user or a collection is offensive, abusive or hate speech. The Flag API enables you to send details about the flag made on an item on your platform to the Alice T&S platform. You can specify one of the Alice supported violation types and/or specify a custom violation for the flag. You can also describe the reason for this flag. A Flags request must include the flagger's ID, as well as an identifier of either the flagged content, user or collection. Only one of these identifiers should be specified in the request. If a flag with the same id is defined in Alice already, then its details are updated. If the flagged item and/or the flagger do not exist in Alice, they are automatically created as empty fields.
Request
Responses
- 200
- 400
- 401
- 403
- 408
- 429
- 503
- 504
Flag submitted successfully
Bad request - validation failed
Unauthorized - invalid or missing authentication credentials
Forbidden - this API serves content moderation projects only
Request timeout - operation took too long to complete
Rate limit exceeded - too many requests
Service unavailable - service temporarily unavailable
Gateway timeout - upstream service did not respond in time