Skip to main content
You're reading Identity & Access Management 7.2.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Push Notification Device API

Download OpenAPI (YAML)Version v1

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

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
deviceIdpathstringYes

ID of the device to be returned

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
deviceIdpathstringYes

ID of the device to be removed

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
deviceIdstring

Unique UUID for the device

modelstring

Model of the device

namestring

Name of the device

deviceTokenstring

device token unique to the device

publicKeystring

Public key of the keypair generated by the device for the account

signaturestring

Signature string comprising of the pushId and the challenge

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
deviceIdpathstringYes

ID of the device to be removed

Request body (required): application/json

Remove request sent from the device.

Schema: RemoveRequestDTO

1 property
NameTypeRequiredDescription
tokenstringYes

JWT containing the remove device information signed with a unique private key

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
deviceIdstring

Device ID

usernamestring

Username

hoststring

Host

tenantDomainstring

Tenant domain

organizationIdstring

Organization ID

organizationNamestring

Organization name

challengestring

Challenge

RegistrationRequestDTO​

Type: object

The registration request body sent from the device

6 properties
NameTypeRequiredDescription
deviceIdstring

Unique UUID for the device

modelstring

Model of the device

namestring

Name of the device

deviceTokenstring

device token unique to the device

publicKeystring

Public key of the keypair generated by the device for the account

signaturestring

Signature string comprising of the pushId and the challenge

RegistrationResponseDTO​

Type: object

The registration response sent after successful device registration.

1 property
NameTypeRequiredDescription
deviceIdstring

Unique UUID for the device.

DeviceDTO​

Type: object

Model for the registered device object

4 properties
NameTypeRequiredDescription
deviceIdstring
namestring
modelstring
providerstring

DeviceDTOList​

Type: array of DeviceDTO

RemoveRequestDTO​

Type: object

Remove device request body sent from the device

1 property
NameTypeRequiredDescription
tokenstringYes

JWT containing the remove device information signed with a unique private key

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes

An error code.

messagestringYes

An error message.

descriptionstring

An error description.

traceIdstring

An error trace identifier.

Was this page helpful?