Teams > Membership > Creates
Subscription_type: teams/membership/create. Triggered when a direct membership is created — one placing the employee on that team itself, as opposed to a row they get through a sub-team. Fires whether the membership is created through the API or from Factorial. Inherited rows created afterwards in ancestor teams (nested teams) do not trigger this event; read the memberships endpoint if you need to track them. Nor is this a complete feed of additions, and which event an addition produces depends on the side it is made from. Adding people to a team emits teams/membership/bulk_upsert and not this event; adding a team to a person emits both, so bulk_upsert is the wider of the two feeds. For companies with nested teams there is a third shape: the employee profile and imports set the complete set of teams the employee belongs to, which emits nothing at all, so those rows are only observable by reading the memberships endpoint.
Payload
Example payload
{
"id": "1",
"company_id": "1",
"employee_id": "12",
"team_id": "3",
"lead": true,
"source_team_ids": [
"3"
],
"parent_team_ids": [
"2"
]
}Response
Return a 200 status to indicate that the data was received successfully
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.