Client-FD Push API (1.0.0)

Download OpenAPI specification:Download

License: Apache 2.0

Setup

Gets the current pushers for the authenticated user

Gets all currently active pushers for the authenticated user.

Responses

Response samples

Content type
application/json
{
  • "pushers": [
    ]
}

Modify a pusher for this user on the homeserver.

This endpoint allows the creation, modification and deletion of pushers for this user ID. The behaviour of this endpoint varies depending on the values in the JSON body.

If kind is not null, the pusher with this app_id and pushkey for this user is updated, or it is created if it doesn't exist. If kind is null, the pusher with this app_id and pushkey for this user is deleted.

Request Body schema: application/json
required

The pusher information.

pushkey
required
string

This is a unique identifier for this pusher. The value you should use for this is the routing or destination address information for the notification, for example, the APNS token for APNS or the Registration ID for GCM. If your notification client has no such concept, use any unique identifier. Max length, 512 bytes.

If the kind is "email", this is the email address to send notifications to.

required
string or null

The kind of pusher to configure. "http" makes a pusher that sends HTTP pokes. "email" makes a pusher that emails the user with unread notifications. null deletes the pusher.

app_id
required
string

This is a reverse-DNS style identifier for the application. It is recommended that this end with the platform, such that different platform versions get different app identifiers. Max length, 64 chars.

If the kind is "email", this is "m.email".

app_display_name
string

Required if kind is not null. A string that will allow the user to identify what application owns this pusher.

device_display_name
string

Required if kind is not null. A string that will allow the user to identify what device owns this pusher.

profile_tag
string

This string determines which set of device specific rules this pusher executes.

lang
string

Required if kind is not null. The preferred language for receiving notifications (e.g. 'en' or 'en-US').

object (PusherData)

Required if kind is not null. A dictionary of information for the pusher implementation itself.

If kind is http, this MUST contain url which is the URL to use for sending notifications. Clients MAY use this object to pass custom data to their push gateway. Servers MUST forward the entire content including format and any custom keys but excluding url when calling /_matrix/push/v1/notify.

object

This object contains information on how to encrypt the notifications for the pusher. This property may be required depending on what service it is called on.

append
boolean

If true, the homeserver should add another pusher with the given pushkey and App ID in addition to any others with different user IDs. Otherwise, the homeserver must remove any other pushers with the same App ID and pushkey for different users. The default is false.

Responses

Request samples

Content type
application/json
Example
{}

Response samples

Content type
application/json
{ }

Fachdienst

Gets channels for a specific device.

Gets all channels and there configuration state of the users device identified by the pushtoken.

path Parameters
pushtoken
required
string
Example: 1234567890

The pushtoken of the device.

Request Body schema: application/json
Array of objects (channels)

An array containing channels

Responses

Request samples

Content type
application/json
{
  • "channels": [
    ]
}

Response samples

Content type
application/json
{ }

Modify the channels for a specific device.

This endpoint allows the creation, modification and deletion of channel subscriptions for a specific device identified by pushtoken. If a channel is not present in the POST request, the state of the channel on the server is not changed. An unset channel is treated as disabled and thus no pushes will be triggerd that correspond to the channel.

path Parameters
pushtoken
required
string
Example: 1234567890

The pushtoken of the device.

Request Body schema: application/json
required

The channel information.

Array of objects (channels)

An array containing channels

Responses

Request samples

Content type
application/json
{
  • "channels": [
    ]
}

Response samples

Content type
application/json
{ }

Gets the available channels for the authenticated user

Gets all all active channels for the authenticated user.

Request Body schema: application/json
Array of objects (channels)

An array containing channels

Responses

Request samples

Content type
application/json
{
  • "channels": [
    ]
}

Response samples

Content type
application/json
{ }