curl --location --request POST 'https://api.safetykit.com/v1/decisions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
  "type": "product_review",
  "content": {
    "url": "https://www.example.com/products/42"
  }
}'
{
  "decision_id": "content_01h2m7qdmdjckc30e1mnq6xqfd",
  "type": "product_review",
  "metadata": {}
}

Body

type
string
required
The type of content to review.
content
object
required
The data to be reviewed. The structure of the object depends on the type of content.
metadata
object
Optional parameter for attaching key-value pairs with the SafetyKit Decision object.

Response

decision_id
string
Unique ID of the decision, used to retrieve the results.
type
string
The type of content to review.
metadata
object
Any key-value pairs that were included in the request.
curl --location --request POST 'https://api.safetykit.com/v1/decisions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
--data-raw '{
  "type": "product_review",
  "content": {
    "url": "https://www.example.com/products/42"
  }
}'
{
  "decision_id": "content_01h2m7qdmdjckc30e1mnq6xqfd",
  "type": "product_review",
  "metadata": {}
}