Push Notification Device API
Base URL: https://localhost:9443/t/<TENANT_DOMAIN>/api/users/v1/me/push
The Push Notification Device Management API (version v1).
Download the OpenAPI definition (YAML)
me
Operations for the authenticated user.
Generate data for device registration.
GET /discovery-data
This API is used to generate registration discovery data for the device registration QR code.
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully generated registration discovery data. | DiscoveryDataDTO |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Get all devices registered for a user.
GET /devices
This API is used to list the devices registered for the particular user.
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|---|---|
200 | Listed devices registered for a user | DeviceDTOList |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Get device details by device ID.
GET /devices/{deviceId}
This API is used to get a specific registered device.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
deviceId | path | string | Yes | ID of the device to be returned |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successfully returned the device belongs to the ID | DeviceDTO |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Remove a registered device
DEL /devices/{deviceId}
This API is used to remove a registered device.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
deviceId | path | string | Yes | ID of the device to be removed |
Responses
| Code | Description | Schema |
|---|---|---|
204 | The device was removed. | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
device
Operations initiated through user's push authenticator device.
Register devices to receive push notifications.
POST /devices
This API is used to register a push notification device into the Identity Server. This API will be invoked from the device.
Request body (required): application/json
Request body sent by a device for registration.
Schema: RegistrationRequestDTO
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | Unique UUID for the device | |
model | string | Model of the device | |
name | string | Name of the device | |
deviceToken | string | device token unique to the device | |
publicKey | string | Public key of the keypair generated by the device for the account | |
signature | string | Signature string comprising of the pushId and the challenge |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Registered a new device | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Remove a registered device from the device.
POST /devices/{deviceId}/remove
This API is used to remove a registered device through device.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
deviceId | path | string | Yes | ID of the device to be removed |
Request body (required): application/json
Remove request sent from the device.
Schema: RemoveRequestDTO
1 property
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | JWT containing the remove device information signed with a unique private key |
Responses
| Code | Description | Schema |
|---|---|---|
204 | The device was removed. | |
400 | Invalid input in the request. | Error |
401 | Authentication information is missing or invalid. | |
403 | Access forbidden. | |
500 | Internal server error. | Error |
Schemas
DiscoveryDataDTO
Type: object
Device registration information
7 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | Device ID | |
username | string | Username | |
host | string | Host | |
tenantDomain | string | Tenant domain | |
organizationId | string | Organization ID | |
organizationName | string | Organization name | |
challenge | string | Challenge |
RegistrationRequestDTO
Type: object
The registration request body sent from the device
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | Unique UUID for the device | |
model | string | Model of the device | |
name | string | Name of the device | |
deviceToken | string | device token unique to the device | |
publicKey | string | Public key of the keypair generated by the device for the account | |
signature | string | Signature string comprising of the pushId and the challenge |
RegistrationResponseDTO
Type: object
The registration response sent after successful device registration.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | Unique UUID for the device. |
DeviceDTO
Type: object
Model for the registered device object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceId | string | ||
name | string | ||
model | string | ||
provider | string |
RemoveRequestDTO
Type: object
Remove device request body sent from the device
1 property
| Name | Type | Required | Description |
|---|---|---|---|
token | string | Yes | JWT containing the remove device information signed with a unique private key |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | An error code. |
message | string | Yes | An error message. |
description | string | An error description. | |
traceId | string | An error trace identifier. |
Was this page helpful?