Skip to content

API & reference

Moderations

POST
/v1/moderations
curl --request POST \
--url http://localhost:8000/v1/moderations

Not served: a 404 unsupported_endpoint that says so and links the endpoint table, so a library that screens every request through the base URL fails with a clear reason (after the key check, as every /v1 route).

x-api-key
Any of:
string
api-key
Any of:
string

Successful Response

Media typeapplication/json

Example generated

example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}