POST
/
v1
/
category
curl --request POST \
  --url https://api.wetrocloud.com/v1/category/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'resource=match review: John Cena vs. The Rock.' \
  --form type=text \
  --form 'json_schema={"label":"string" }' \
  --form 'json_schema_rules=["never go out of context", "Categorize this data based on their types like text, youtube, urls, football, coding, entertainment, basketball, wrestling, information, etc.", "Always return json", "Always return one word answers"]
'
{
  "response": {
    "label": "wrestling"
  },
  "tokens": 1746,
  "success": true
}

Authorizations

Authorization
string
header
required

Body

multipart/form-data
resource
string
type
string
json_schema
string
json_schema_rules
string

Response

200
application/json
OK

The response is of type object.