team.member.role_changed
Collaborator's role within a team changes.
project_id is always null for team events.When this fires
A collaborator's role within the team changes — promoted, demoted, or moved between custom roles.
Required ability
team:view-any — token must carry this at mint time to subscribe an endpoint to this event.
Payload
{
"id": "evt_01HX...",
"type": "team.member.role_changed",
"created_at": "2026-05-22T10:05:00Z",
"api_version": "2026-05-01",
"project_id": null,
"data": {
"team_id": "tem_01HX...",
"user_id": "usr_01HX...",
"role_id": "rol_01HX..."
}
}Field reference
| Field | Type | Notes |
|---|---|---|
id | string ULID | Unique event id, prefixed evt_. Use for idempotent processing. |
type | string | Always team.member.role_changed for this event. |
created_at | ISO 8601 timestamp | Server-side emission time. |
api_version | string | Webhook API contract version. |
project_id | null | Always null — account-level event. |
data.team_id | string ULID | Team the collaborator belongs to. |
data.user_id | string ULID | User id of the collaborator whose role changed. |
data.role_id | string ULID | New role id. |
Caveats
- For ability detail behind a role id, listen for
role.updatedor pull the role definition from the API. - Group-scoped role assignments emit this event when they change; the role id reflects the new assignment regardless of scope.
Related events
team.member.joined— predecessor in the lifecycle.role.updated— emits when the role definition itself changes.- Team events overview — back to family overview.
How is this guide?