openapi: 3.0.1
info:
title: ilert REST Alert Actions Teams API
description: "# Introduction\nThe ilert API is a [RESTful](https://en.wikipedia.org/wiki/Representational_state_transfer) API and provides programmatic access to entities in ilert and lets you easily integrate ilert with 3rd party tools. If you are looking to develop an inbound integration (e.g. for a monitoring tool), please use our [Events API](#tag/events). \n\nThe API supports the JSON content type for requests and responses. The response content type is requested via the HTTP Accept header (`application/json`). All resources are accessible via https and are located at `api.ilert.com/api`. \n\n You may download ilert's latest [OpenAPI.json {...} here](https://api.ilert.com/api-docs/openapi.json).\n\n If you are looking for a classic Swagger-UI view you may also open [this link](https://api.ilert.com/api-docs/swagger-ui). \n\n ## Authentication\nThe REST API accepts bearer API tokens. Each user may create API keys using the ilert web application. Note: Make sure to send the `Bearer ` prefix e.g. `Bearer APIKEY` when sending api key requests. By default, access to all resources (using any method) requires the client to be authenticated.\n\n ## Team Context\n When using API tokens, the currently selected team context of the user will not be taken into account, i.e. list results will always return all entities to which the user has a view permission. When using basic auth credentials the currently selected team context of the user will be used to filter resource results. The context may be overwritten for API key calls using the `team-context` HTTP header. Specifying `0` for ALL teams, `-1` for MY teams or a specific team id e.g. `team-context=901` to fetch results for a certain team. \n\n ## Errors\nilert uses HTTP response codes to indicate success or failure of an API request. Codes in the 2xx range indicate success, codes in the 4xx range indicate a client error (e.g. a missing required parameter) and codes in the 5xx range indicate an error with ilert's servers. In case of an error, the response body contains the following information:\n\n Attribute | Description \n ------------- | ------------- \n status | the corresponsing HTTP status code \n message | a human readable description of the error \n code | error code, used to identify error type \n\n ## API Versioning\nChanges to our API are always backwards-compatible. To get more information about our API versioning and historical changes, please take a look here."
version: v2.2026.5-r.3
x-logo:
url: ./ilert-logo-spaced.png
backgroundColor: '#fafafa'
altText: ilert documentation logo
servers:
- url: /api
security:
- apiKey: []
tags:
- name: Teams
paths:
/teams:
get:
tags:
- Teams
summary: Get teams.
parameters:
- name: start-index
in: query
description: an integer specifying the starting point (beginning with 0) when paging through a list of entities
schema:
type: integer
format: int32
default: 0
- name: max-results
in: query
description: the maximum number of results when paging through a list of entities.
schema:
maximum: 100
type: integer
format: int32
default: 50
- name: members
in: query
description: optional, filter teams for specific members (currently only a single occurrence of this param is allowed)
schema:
type: number
responses:
'200':
description: The teams
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Team'
post:
tags:
- Teams
summary: Create a new team.
requestBody:
description: the team
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
required: true
responses:
'200':
description: The newly created team
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
x-codegen-request-body-name: team
/teams/{id}:
get:
tags:
- Teams
summary: Get a specific team.
parameters:
- name: id
in: path
description: entity ID
required: true
schema:
type: number
responses:
'200':
description: The requested team
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
put:
tags:
- Teams
summary: Update the specific team
parameters:
- name: id
in: path
description: entity ID
required: true
schema:
type: number
requestBody:
description: the team
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
required: true
responses:
'200':
description: The updated team
content:
application/json:
schema:
$ref: '#/components/schemas/Team'
x-codegen-request-body-name: team
delete:
tags:
- Teams
summary: Remove a specific team.
parameters:
- name: id
in: path
description: entity ID
required: true
schema:
type: number
responses:
'204':
description: Empty body delete response
content: {}
/teams/{id}/members:
post:
tags:
- Teams
summary: Add a new team member to specific team
parameters:
- name: id
in: path
description: entity ID
required: true
schema:
type: number
requestBody:
description: the team member
content:
application/json:
schema:
$ref: '#/components/schemas/TeamMember'
required: true
responses:
'200':
description: The added team member
content:
application/json:
schema:
$ref: '#/components/schemas/TeamMember'
x-codegen-request-body-name: team member
/teams/{id}/members/{id}:
delete:
tags:
- Teams
summary: Remove a specific member of a specific team.
parameters:
- name: id
in: path
description: entity ID
required: true
schema:
type: number
responses:
'204':
description: Empty body delete response
content: {}
components:
schemas:
TeamRole:
type: string
enum:
- STAKEHOLDER
- RESPONDER
- USER
- ADMIN
TeamVisibilityType:
type: string
enum:
- PUBLIC
- PRIVATE
Role:
type: string
enum:
- STAKEHOLDER
- GUEST
- RESPONDER
- USER
- ADMIN
Team:
type: object
properties:
id:
type: integer
format: int64
name:
type: string
visibility:
$ref: '#/components/schemas/TeamVisibilityType'
members:
type: array
items:
$ref: '#/components/schemas/TeamMember'
createdAt:
type: string
description: Date in ISO-8601
format: date-time
updatedAt:
type: string
description: Date in ISO-8601
format: date-time
User:
required:
- email
- firstName
- lastName
type: object
properties:
id:
type: integer
format: int64
firstName:
type: string
lastName:
type: string
email:
type: string
timezone:
$ref: '#/components/schemas/TimeZone'
position:
type: string
department:
type: string
avatarUrl:
type: string
readOnly: true
language:
type: string
enum:
- de
- en
region:
type: string
enum:
- DE
- GB
- CH
- CN
- IN
- US
- FR
- ES
- CA
- IE
role:
$ref: '#/components/schemas/Role'
shiftColor:
type: string
description: Optional hex-color code for the user's shifts in schedules calendars
mutedUntil:
type: string
description: Date in ISO-8601
format: date-time
createdAt:
type: string
description: Date in ISO-8601
format: date-time
updatedAt:
type: string
description: Date in ISO-8601
format: date-time
TeamMember:
type: object
properties:
user:
$ref: '#/components/schemas/User'
role:
$ref: '#/components/schemas/TeamRole'
TimeZone:
type: string
enum:
- Europe/Berlin
- America/New_York
- America/Los_Angeles
- Asia/Istanbul
securitySchemes:
apiKey:
type: apiKey
description: The Bearer API key of your user more info.
name: Authorization
in: header
x-original-swagger-version: '2.0'