Early bird discounts live! Claim your offer

role.deleted

Role deleted; collaborators revert to default.

project_id is always null for role events. This is the final event you will receive for the given role_id.

When this fires

A custom role is deleted. Any collaborators currently holding the role revert to the team's default role.

Required ability

role:view-any — token must carry this at mint time to subscribe an endpoint to this event.

Payload

{
  "id": "evt_01HX...",
  "type": "role.deleted",
  "created_at": "2026-05-22T10:05:00Z",
  "api_version": "2026-05-01",
  "project_id": null,
  "data": {
    "team_id": "tem_01HX...",
    "role": {
      "id": "rol_01HX...",
      "code": "plan-editor"
    }
  }
}

Field reference

FieldTypeNotes
idstring ULIDUnique event id, prefixed evt_. Use for idempotent processing.
typestringAlways role.deleted for this event.
created_atISO 8601 timestampServer-side emission time.
api_versionstringWebhook API contract version.
project_idnullAlways null — account-level event.
data.team_idstring ULIDTeam the role belonged to.
data.role.idstring ULIDRole that was deleted.
data.role.codestringLast-known stable role code.

Caveats

  • Collaborators previously on this role do not produce per-user team.member.role_changed events for the fallback transition.
  • System roles cannot be deleted, so this event only ever applies to custom roles.

How is this guide?

On this page

MemberPass is a product designed by you — for you.

No boardroom full of executives deciding what we ships next. Our roadmap always shaped by you with your feedback.

Share feedback or a request