TypeScript
import { ModerationApi } from "@moderation-api/sdk";
const moderationApi = new ModerationApi({
secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",
});
async function run() {
const result = await moderationApi.feedback.create({
title: "Filter queue items by author trust level",
description: "We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.",
source: "mcp",
});
console.log(result);
}
run();
import os
from moderation_api import ModerationAPI
with ModerationAPI(
secret_key=os.environ["MODAPI_SECRET_KEY"],
) as moderation_api:
res = moderation_api.feedback.create(title="Filter queue items by author trust level", description="We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.", type_="feature_request", source="mcp")
# Handle response
print(res)
declare(strict_types=1);
require 'vendor/autoload.php';
use ModerationApi;
use ModerationApi\Models\Operations;
$sdk = ModerationApi\ModerationApi::builder()
->setSecurity(
getenv('MODAPI_SECRET_KEY')
)
->build();
$body = new Operations\CreateFeedbackRequestBody(
title: 'Filter queue items by author trust level',
description: 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.',
source: Operations\Source::Mcp,
);
$response = $sdk->feedback->create(
body: $body
);
if ($response->object !== null) {
// handle response
}
require 'moderation_api'
Models = ::ModerationApi::Models
s = ::ModerationApi::ModerationApi.new(
secret_key: ENV.fetch('MODAPI_SECRET_KEY')
)
res = s.feedback.create(body: Models::Operations::CreateFeedbackRequestBody.new(
title: 'Filter queue items by author trust level',
description: 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.',
source: Models::Operations::Source::MCP
))
unless res.object.nil?
# handle response
end
modapi feedback create --secret-key "$MODAPI_SECRET_KEY" --title 'Filter queue items by author trust level' --description 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.' --type feature_request --source mcp
{
"id": "<string>",
"status": "received"
}{
"type": "invalid_request_error",
"code": "invalid_request",
"message": "Invalid input data",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"type": "authentication_error",
"code": "unauthorized",
"message": "Authorization not provided",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Send feedback
Sends a feature request, bug report or other feedback to the Moderation API team. The team reads every request and can reply by email. Limited to 5 requests per minute per organization.
TypeScript
import { ModerationApi } from "@moderation-api/sdk";
const moderationApi = new ModerationApi({
secretKey: process.env["MODAPI_SECRET_KEY"] ?? "",
});
async function run() {
const result = await moderationApi.feedback.create({
title: "Filter queue items by author trust level",
description: "We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.",
source: "mcp",
});
console.log(result);
}
run();
import os
from moderation_api import ModerationAPI
with ModerationAPI(
secret_key=os.environ["MODAPI_SECRET_KEY"],
) as moderation_api:
res = moderation_api.feedback.create(title="Filter queue items by author trust level", description="We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.", type_="feature_request", source="mcp")
# Handle response
print(res)
declare(strict_types=1);
require 'vendor/autoload.php';
use ModerationApi;
use ModerationApi\Models\Operations;
$sdk = ModerationApi\ModerationApi::builder()
->setSecurity(
getenv('MODAPI_SECRET_KEY')
)
->build();
$body = new Operations\CreateFeedbackRequestBody(
title: 'Filter queue items by author trust level',
description: 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.',
source: Operations\Source::Mcp,
);
$response = $sdk->feedback->create(
body: $body
);
if ($response->object !== null) {
// handle response
}
require 'moderation_api'
Models = ::ModerationApi::Models
s = ::ModerationApi::ModerationApi.new(
secret_key: ENV.fetch('MODAPI_SECRET_KEY')
)
res = s.feedback.create(body: Models::Operations::CreateFeedbackRequestBody.new(
title: 'Filter queue items by author trust level',
description: 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.',
source: Models::Operations::Source::MCP
))
unless res.object.nil?
# handle response
end
modapi feedback create --secret-key "$MODAPI_SECRET_KEY" --title 'Filter queue items by author trust level' --description 'We review queue items by hand. We want to see items from new authors first, so we need a filter for trust level on the queue items list.' --type feature_request --source mcp
{
"id": "<string>",
"status": "received"
}{
"type": "invalid_request_error",
"code": "invalid_request",
"message": "Invalid input data",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"type": "authentication_error",
"code": "unauthorized",
"message": "Authorization not provided",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"request_id": "h8fkz6kkzoa446ffve37atys",
"doc_url": "<string>",
"issues": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Authorizations
Headers
Body
application/json
Was this page helpful?