DELETE/v1/tags/{tag_id}

Delete a custom tag

Delete a tag your organization created. While a guardrail or a routing policy names the tag, the answer is 409 tag_in_use; remove the rule first.

Authentication: Bearer API key in the Authorization header

Path parameters

  • tag_idstringrequired

    The tag id.

Responses

  • 200

    The tag is deleted.

    Response
    • deletedbooleanrequired
  • 401

    Missing, unknown or revoked API key.

  • 403

    The key is not a provisioning key, or the resource is read-only (tag_read_only, guardrail_read_only).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 404

    The resource does not exist or belongs to another organization. An organization without access gets this answer on every route.

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

  • 409

    A guardrail or a routing policy still names the tag (tag_in_use).

    Response
    • errorstringrequired

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one.

Request

curl -X DELETE 'https://api.experientiallabs.ai/v1/tags/internalConfidential' \
  -H "Authorization: Bearer <YOUR_API_KEY>"

Response

{
  "deleted": true
}

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