{
  "x402Version": 2,
  "id": 35695,
  "slug": "35695",
  "resource": "https://agentsvc.io/api/v1/proxy/text-classify",
  "description": "Text classification with your own labels for agent pipelines: route support tickets, qualify leads, tag feedback, sort emails or moderate comments. Send the text (up to 6,000 characters) and 2 to 30 labels, optionally with a description each; get the best label with a confidence from 0 to 1 and a one-sentence reason, or every label that applies with multi_label. Labels are enforced by a JSON schema, so the answer is always one of yours. Any language. Instructions inside the text are ignored.",
  "type": "http",
  "serviceName": "Text Classifier, Custom Labels",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
  "resourceType": "Research",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "5JzPS5qpEwUM1vTC9GG7uqvwJdHzbEwfoPHf2Ki977tg",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "chars_checked": {
                "type": "integer"
              },
              "confidence": {
                "type": "number"
              },
              "label": {
                "type": "string"
              },
              "labels": {
                "items": {
                  "properties": {
                    "confidence": {
                      "type": "number"
                    },
                    "label": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "model": {
                "type": "string"
              },
              "multi_label": {
                "type": "boolean"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "confidence",
              "labels",
              "reason"
            ],
            "type": "object"
          },
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "data"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "text",
      "info": {
        "input": {
          "body": {
            "labels": [
              "bug report",
              "feature request",
              "billing question",
              "praise",
              "spam"
            ],
            "multi_label": true,
            "text": "Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "chars_checked": 91,
              "confidence": 0.9,
              "label": "feature request",
              "labels": [
                {
                  "confidence": 0.9,
                  "label": "feature request"
                },
                {
                  "confidence": 0.85,
                  "label": "billing question"
                },
                {
                  "confidence": 0.8,
                  "label": "praise"
                }
              ],
              "model": "claude-haiku-5-5",
              "multi_label": true,
              "reason": "The text praises the app, requests dark mode, and asks about a double charge."
            },
            "success": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "instructions": {
                    "description": "Optional extra rules, max 400 chars",
                    "type": "string"
                  },
                  "labels": {
                    "description": "2 to 30 labels: strings, or objects {label, description}",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "properties": {
                            "description": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "label"
                          ],
                          "type": "object"
                        }
                      ]
                    },
                    "type": "array"
                  },
                  "multi_label": {
                    "default": false,
                    "description": "Return every label that applies (max 5) instead of one",
                    "type": "boolean"
                  },
                  "text": {
                    "description": "Text to classify, max 6,000 chars",
                    "type": "string"
                  }
                },
                "required": [
                  "text",
                  "labels"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "chars_checked": {
                        "type": "integer"
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      },
                      "labels": {
                        "items": {
                          "properties": {
                            "confidence": {
                              "type": "number"
                            },
                            "label": {
                              "type": "string"
                            }
                          },
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "model": {
                        "type": "string"
                      },
                      "multi_label": {
                        "type": "boolean"
                      },
                      "reason": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "label",
                      "confidence",
                      "labels",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "success": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "success",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "classification",
        "routing",
        "tagging",
        "moderation",
        "nlp",
        "text-classification",
        "ticket-routing",
        "lead-scoring",
        "content-moderation",
        "sentiment"
      ]
    },
    "builder-code": {
      "info": {
        "a": "bc_q6wi3opd"
      }
    }
  },
  "tags": [
    "classification",
    "routing",
    "tagging",
    "moderation",
    "nlp",
    "bazaar",
    "builder-code"
  ],
  "sourceHost": "agentsvc.io",
  "lastUpdated": "2026-10-11T11:59:42.579Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T11:59:42.339Z"
  },
  "metadata": {
    "serviceName": "Text Classifier, Custom Labels",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1791462963/bazaar-icons/243ff0b79dbee242.png",
    "extensions": {
      "bazaar": {
        "category": "text",
        "info": {
          "input": {
            "body": {
              "labels": [
                "bug report",
                "feature request",
                "billing question",
                "praise",
                "spam"
              ],
              "multi_label": true,
              "text": "Love the app! Would be great if it had dark mode. Also, why was I charged twice this month?"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "chars_checked": 91,
                "confidence": 0.9,
                "label": "feature request",
                "labels": [
                  {
                    "confidence": 0.9,
                    "label": "feature request"
                  },
                  {
                    "confidence": 0.85,
                    "label": "billing question"
                  },
                  {
                    "confidence": 0.8,
                    "label": "praise"
                  }
                ],
                "model": "claude-haiku-5-5",
                "multi_label": true,
                "reason": "The text praises the app, requests dark mode, and asks about a double charge."
              },
              "success": true
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "instructions": {
                      "description": "Optional extra rules, max 400 chars",
                      "type": "string"
                    },
                    "labels": {
                      "description": "2 to 30 labels: strings, or objects {label, description}",
                      "items": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "properties": {
                              "description": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "label"
                            ],
                            "type": "object"
                          }
                        ]
                      },
                      "type": "array"
                    },
                    "multi_label": {
                      "default": false,
                      "description": "Return every label that applies (max 5) instead of one",
                      "type": "boolean"
                    },
                    "text": {
                      "description": "Text to classify, max 6,000 chars",
                      "type": "string"
                    }
                  },
                  "required": [
                    "text",
                    "labels"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "chars_checked": {
                          "type": "integer"
                        },
                        "confidence": {
                          "type": "number"
                        },
                        "label": {
                          "type": "string"
                        },
                        "labels": {
                          "items": {
                            "properties": {
                              "confidence": {
                                "type": "number"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "model": {
                          "type": "string"
                        },
                        "multi_label": {
                          "type": "boolean"
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "label",
                        "confidence",
                        "labels",
                        "reason"
                      ],
                      "type": "object"
                    },
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "classification",
          "routing",
          "tagging",
          "moderation",
          "nlp",
          "text-classification",
          "ticket-routing",
          "lead-scoring",
          "content-moderation",
          "sentiment"
        ]
      },
      "builder-code": {
        "info": {
          "a": "bc_q6wi3opd"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentsvc.io",
    "manifest_name": "agentsvc.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "chars_checked": 0,
        "confidence": 0,
        "label": "string",
        "labels": [
          {
            "confidence": 0,
            "label": "string"
          }
        ],
        "model": "string",
        "multi_label": true,
        "reason": "string"
      },
      "success": true
    },
    "type": "string"
  }
}