GeezerVison is showing pushbits.github.io — PushBits Server API Documentation
- Alertmanager
- Application
- getGet Applications
- postCreate Application
- delDelete Application
- getGet Application
- putUpdate Application
- postCreate a Notification
- delDelete a Notification
- Health
- getHealth of the application
- User
- getGet Users
- postCreate a User
- delDelete User
- getGet User
- putUpdate User
PushBits Server API Documentation (0.10.5)Download OpenAPI specification:Download Documentation for the PushBits server API.
Create an Alert Creates an alert that is send to the channel as a notification. This endpoint is compatible with alertmanager webhooks.
query Parameters| token required | string Channels token, can also be provieded in the header
|
Request Body schema: application/jsonalertmanager webhook call
| Array of objects (github_com_pushbits_server_internal_model.AlertmanagerAlert) | | | | | | externalURL | | | groupKey | | | | | receiver | | | version | |
Request samples Content typeapplication/json {"alerts": [{"annotations": {"property1": "string", "property2": "string" }, "endsAt": "string", "labels": {"property1": "string", "property2": "string" }, "startsAt": "string", "status": "string" } ], "commonAnnotations": {"property1": "string", "property2": "string" }, "commonLabels": {"property1": "string", "property2": "string" }, "externalURL": "string", "groupKey": "string", "groupLabels": {"property1": "string", "property2": "string" }, "receiver": "string", "version": "string" } Response samples Content typeapplication/json Get Applications Get all applications from current user
Response samples Content typeapplication/json [{"id": 0, "name": "string", "token": "string" } ]Create Application query Parameters| name required | | | strict_compatibility | boolean Use strict compatibility mode
|
Response samples Content typeapplication/json {"id": 0, "name": "string", "token": "string" }Get Application Get single application by ID
Response samples Content typeapplication/json {"id": 0, "name": "string", "token": "string" }Update Application query Parameters| name | string New name for the application
| | refresh_token | boolean Generate new refresh token for the application
| | strict_compatibility | boolean Whether to use strict compataibility mode
|
Create a Notification Creates a new notification for the given channel
query Parameters| message required | | | title | | | priority | integer The notifications priority
| | token required | string Channels token, can also be provieded in the header
|
Response samples Content typeapplication/json Delete a Notification Informs the channel that the notification is deleted
path Parameters| message_id required | string ID of the message to delete
|
query Parameters| token required | string Channels token, can also be provieded in the header
|
Health of the application Response samples Content typeapplication/json [{"id": 0, "is_admin": true, "matrix_id": "string", "name": "string" } ]Create a User query Parameters| name required | | | is_admin | boolean Whether to set the user as admin or not
| | matrix_id required | string Matrix ID of the user in the format @user:domain.tld
| | password required | |
Response samples Content typeapplication/json {"id": 0, "is_admin": true, "matrix_id": "string", "name": "string" } Response samples Content typeapplication/json {"id": 0, "is_admin": true, "matrix_id": "string", "name": "string" }Update User query Parameters| name required | | | is_admin | boolean Whether to set the user as admin or not
| | matrix_id required | string Matrix ID of the user in the format @user:domain.tld
| | password required | |
|