POST/v1/tags

カスタムタグを作成

「はい」がリクエストの一致を表すように質問を記述し、該当するものと該当しないものをdefinitionに記述します。作成したタグは、1分以内にガードレールとルーティングルールで使用できるようになります。IDがすでに使用されている場合は409 tag_exists、組織が上限に達している場合は409 tag_limit_reachedを返します。

認証: AuthorizationヘッダーにBearer形式のAPIキー

リクエストボディ

  • idstring必須

    ルールで使用するID。camelCaseで、最大64文字です。

  • descriptionstring必須

    人が読むための短いラベル。

  • questionstring必須

    リクエストについて「はい」か「いいえ」で答える質問。「はい」はリクエストが一致することを表します。

  • definitionstring

    「はい」に該当するものと該当しないもの。両方の例を挙げると判定が明確になります。

レスポンス

  • 201

    作成されたタグ。

    レスポンス
    • idstring必須

      ルールで使用するID。camelCaseで、最大64文字です。

    • sourceenum必須

      組み込みのタグはplatform、組織が作成したタグはorganizationです。

      "platform""organization"
    • descriptionstring必須

      人が読むための短いラベル。

    • questionstring

      リクエストについて「はい」か「いいえ」で答える質問。組織が作成したタグにのみ表示されます。

    • definitionstring

      「はい」に該当するものと該当しないもの。組織が作成したタグにのみ表示されます。

    • created_atstring
    • updated_atstring
  • 401

    APIキーがない、不明、または失効しています。

  • 403

    キーがプロビジョニングキーではないか、リソースが読み取り専用です(tag_read_only、guardrail_read_only)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

  • 404

    リソースが存在しないか、他の組織に属しています。アクセス権のない組織には、すべてのエンドポイントがこのレスポンスを返します。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

  • 409

    IDがすでに使用されている(tag_exists)か、組織のカスタムタグが上限に達しています(tag_limit_reached)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

  • 422

    ボディの検証に失敗したか、存在しない対象または使用できない対象を指定しています(unknown_tag、unknown_model、unknown_identity、model_not_allowed)。

    レスポンス
    • errorstring必須

      人が読めるメッセージ。

    • codestring

      エンドポイントが定義している場合の、安定した機械可読の理由。

リクエスト

curl -X POST 'https://api.experientiallabs.ai/v1/tags' \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "internalConfidential",
  "description": "Confidential company information",
  "question": "Does the message contain confidential company information?",
  "definition": "Confidential: unreleased product plans, customer records, contract terms, internal financial figures, network or security designs. Not confidential: published press releases, public pricing, general industry knowledge."
}'

レスポンス

{
  "id": "internalConfidential",
  "source": "organization",
  "description": "Confidential company information",
  "question": "Does the message contain confidential company information?",
  "definition": "Confidential: unreleased product plans, customer records, contract terms, internal financial figures, network or security designs. Not confidential: published press releases, public pricing, general industry knowledge.",
  "created_at": "2026-11-20T00:00:00Z",
  "updated_at": "2026-11-20T00:00:00Z"
}

https://api.experientiallabs.ai/v1/tags