Teams API
Create and manage teams for group notifications and escalation targeting.
Teams group workspace members together for use as escalation targets. See Teams for conceptual documentation.
Create Team
POST /teamsRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
workspaceId | number | Yes | Workspace this team belongs to |
name | string | Yes | Team name |
description | string | No | Team description |
Example
curl -X POST https://api.ionhour.com/api/teams \
-H "Authorization: Bearer ionh_your_key" \
-H "Content-Type: application/json" \
-d '{
"workspaceId": 1,
"name": "Platform Engineering",
"description": "Responsible for core infrastructure and platform services"
}'List Teams
GET /teamsQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | number | Yes | Filter by workspace |
curl -H "Authorization: Bearer ionh_your_key" \
"https://api.ionhour.com/api/teams?workspaceId=1"Get Team
GET /teams/:idReturns a team with its members.
curl -H "Authorization: Bearer ionh_your_key" \
https://api.ionhour.com/api/teams/1Update Team
PUT /teams/:idcurl -X PUT https://api.ionhour.com/api/teams/1 \
-H "Authorization: Bearer ionh_your_key" \
-H "Content-Type: application/json" \
-d '{"name": "SRE Team"}'Delete Team
DELETE /teams/:idcurl -X DELETE https://api.ionhour.com/api/teams/1 \
-H "Authorization: Bearer ionh_your_key"Team Members
Add Member
POST /team-members| Field | Type | Required | Description |
|---|---|---|---|
teamId | number | Yes | Team to add the member to |
userId | number | Yes | User to add |
curl -X POST https://api.ionhour.com/api/team-members \
-H "Authorization: Bearer ionh_your_key" \
-H "Content-Type: application/json" \
-d '{"teamId": 1, "userId": 42}'Remove Member
DELETE /team-members/:idcurl -X DELETE https://api.ionhour.com/api/team-members/5 \
-H "Authorization: Bearer ionh_your_key"