Teams API
Create and manage teams through the Ionhour API — add and remove members, list team rosters, and target entire teams in notifications and escalation paths.
Teams group workspace members together for use as escalation targets. See Teams for conceptual documentation.
These are dashboard API endpoints — they require an OAuth session token ($ACCESS_TOKEN) and do not accept ionh_ API keys. The MCP integration offers API-key access to member listing and invitation management; team CRUD is dashboard-only. See which credential goes where.
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 $ACCESS_TOKEN" \
-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 $ACCESS_TOKEN" \
"https://api.ionhour.com/api/teams?workspaceId=1"Get Team
GET /teams/:idReturns a team with its members.
curl -H "Authorization: Bearer $ACCESS_TOKEN" \
https://api.ionhour.com/api/teams/1Update Team
PUT /teams/:idcurl -X PUT https://api.ionhour.com/api/teams/1 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-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 $ACCESS_TOKEN"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 $ACCESS_TOKEN" \
-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 $ACCESS_TOKEN"On-Call Schedules API
Create and manage on-call schedules through the Ionhour API — rotations, participants, and overrides, plus querying who is currently on call for any given team.
Maintenance Windows API
Schedule and manage planned maintenance windows through the Ionhour REST API, suppressing alerts and incident creation while you work on the affected services.