Create custom category

Create a custom fraud category from example phrases. Categories embed asynchronously: a new category starts at pending, moves to embedding, and becomes usable for scoring once its status is ready.

Authentication

AuthorizationBearer
API key from https://app.resemble.ai/hub/api

Request

This endpoint expects an object.
namestringRequired
Category name. Must be unique within the team.
scenarioslist of stringsRequired

Example phrases that define the pattern. Maximum 50 entries, each up to 2000 characters. A newline-separated string is also accepted.

descriptionstringOptional
iconstringOptional
Single emoji.
enabledbooleanOptionalDefaults to true

Response

Category created
successboolean
itemobject

Errors

422
Unprocessable Entity Error