Endpoint Examples
Categorize Resource
This endpoint allows you to create a new category by providing the necessary details in the request body.
Request Body
-
resource
(text): Description of the resource. -
type
(text): Type of the category. -
json_schema
(text): JSON schema for the category. -
categories
(text): List of categories. -
prompt
(text): An overall command of your request .
Response
The response is a JSON object with the following properties:
-
label
: The label of the response. -
tokens
: The number of tokens. -
success
: Indicates the success status of the request.
POST
Authorizations
Body
multipart/form-data
Example:
"match review: John Cena vs. The Rock are fighting"
Example:
"text"
Example:
"{\"label\":\"string\" }"
Example:
"[\"football\", \"coding\", \"entertainment\", \"basketball\", \"wrestling\", \"information\"]\n"
Example:
"where does this fall under?"
Response
200
application/json
OK
The response is of type object
.