Request a new decision
decisions.create(DecisionCreateParams**kwargs) -> DecisionCreateResponse
/v1/decisions
Submit content for review and receive a decision ID to track the results. The decision is processed asynchronously.
Parameters
type: str
The type of content to review
Returns
Request a new decision
import os
from safetykit import Safetykit
client = Safetykit(
api_key=os.environ.get("SAFETYKIT_API_KEY"), # This is the default and can be omitted
)
decision = client.decisions.create(
content={
"url": "https://www.example.com/products/42"
},
type="product_review",
)
print(decision.decision_id)
{
"decision_id": "content_01h2m7qdmdjckc30e1mnq6xqfd",
"metadata": {},
"type": "product_review"
}
Returns Examples
{
"decision_id": "content_01h2m7qdmdjckc30e1mnq6xqfd",
"metadata": {},
"type": "product_review"
}