POST
/
moderate
/
audio
curl --request POST \
  --url https://moderationapi.com/api/v1/moderate/audio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "authorId": "<string>",
  "contextId": "<string>",
  "doNotStore": true,
  "metadata": {},
  "url": "<string>"
}'
{
  "contentId": "<string>",
  "flagged": true,
  "request": {
    "quota_usage": 123,
    "timestamp": 123
  },
  "status": "<string>"
}

Audio moderation needs to be enabled for accounts to use this endpoint. Please contact your support@moderationapi.com to talk about enabling this feature.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
authorId
string

The author of the content.

contextId
string

For example the ID of a chat room or a post

doNotStore
boolean

Do not store the content. The content won't enter the review queue

metadata
object

Any metadata you want to store with the content

url
string
required

The URL of the audio you want to analyze.

Response

200 - application/json
contentId
string

The ID of the content. Only returned if the content was stored.

flagged
boolean
required

Whether the content was flagged by any models

request
object
required

Information about the request

status
string
required

Success if the request was successful

Was this page helpful?