Rensei docs
API ReferenceFailure Signatures

Create an org-scoped failure signature (always tier='observed'). Requires the org admin role.

Creates a signature owned by the caller's org. Requires org admin (a plain `member` or the read-only `auditor` role is refused 403). The route forces tier='observed' - any other tier in the body is refused 422 tier_not_allowed. A never-auto blast_radius_class under tier='auto' is refused 422 never_auto_class (defense in depth; unreachable via this route since tier is forced). A duplicate (organization_id, signature_key) is refused 409 duplicate_key.

POST
/api/failure-signatures

Authorization

headerAuthorizationBearer <WorkOS user access token>

WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.

Request Body

application/json
  1. body
signatureKey*string
Length1 <= length <= 200
entryKind*string
Value in"remedy""constraint""diagnostic""prevention"
matcher*unknown
remedyVerb*string
Value in"rebase_main""regenerate_artifacts""clear_typecheck_cache""run_changed_suites""rerun_once""register_pg_suite""remove_unsafe_cast""use_per_worktree_lint_cache""disable_go_workspace""relaunch_longer_duration""defer_until_seats_quiescent""relaunch_other_pool""triage""amend_implement_partial""amend_review_checklist""amend_scoping_rule""amend_routing_rule""add_mechanical_gate"
blastRadiusClass*string
Value in"read_only""branch_local""ci_rerun""session_relaunch""deploy""prod_data_mutation""auth_change""host_restart_live_seats""delete""config_change"
tier?string
Value in"observed""assisted""auto"
attemptsCap?integer
Range0 <= value <= 100
provenance*unknown

Response Body

Failure signature created.

application/json
  1. response
signature*
Example Request
curl -X POST 'https://app.rensei.ai/api/failure-signatures' \  -H 'Content-Type: application/json' \  -d '{  "signatureKey": "string",  "entryKind": "remedy",  "matcher": null,  "remedyVerb": "rebase_main",  "blastRadiusClass": "read_only",  "provenance": null}'
Example Response
{  "signature": {    "id": "string",    "organizationId": "string",    "signatureKey": "string",    "entryKind": "remedy",    "matcher": {      "ciConclusion": "success",      "mergeable": "MERGEABLE",      "runCount": {        "op": "eq",        "value": 0      },      "logTailPattern": "string",      "launchOutcomeReason": "launch_rejected",      "harness": "string",      "defectClass": "string",      "stage": "seat",      "terminalReasonPattern": "string"    },    "remedyVerb": "rebase_main",    "blastRadiusClass": "read_only",    "tier": "observed",    "attemptsCap": -9007199254740991,    "provenance": {      "sourceIssue": "string",      "decisionRef": "string",      "confirmedSessions": []    },    "createdAt": "string",    "updatedAt": "string"  }}