Skip to main content
GET
/
api
/
v1
/
usage
/
rejections
Get rejection breakdown by category
curl --request GET \
  --url http://localhost:3051/api/v1/usage/rejections \
  --header 'Authorization: Bearer <token>'
{
  "categories": {
    "ai_adult_general": 123,
    "underage": 123,
    "nsfw": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omnifence.ai/llms.txt

Use this file to discover all available pages before exploring further.

Requires the usage:read scope. Requests without this scope receive a 403 FORBIDDEN response. See authentication.
Returns the number of rejections attributable to each moderation category (ai_adult_general, underage, nsfw) within the selected period. A single rejected job can trigger multiple categories, so the sum of category counts can exceed the total rejected jobs.
PeriodWindow
dayLast 24 hrs
weekLast 7 days
monthLast 30 days

Authorizations

Authorization
string
header
required

API key from the Stars dashboard

Query Parameters

period
enum<string>
default:month
Available options:
month,
week,
day

Response

200 - application/json

Default Response

period
enum<string>
required
Available options:
month,
week,
day
categories
object
required