Skip to main content

Subscribe

POST 

/v1/notifications/subscription

Subscribe

The subscribe endpoint allows users to create a new notification subscription. It accepts a JSON payload containing the subscription details and the user's device identifier. Upon successful creation, it returns a 201 status code indicating that the subscription has been successfully created. If the subscription already exists, it responds with a 409 status code. Any internal server errors result in a 500 status code. This endpoint is part of the /v1/notifications/subscription path and uses POST method.

Request

Body

required
    subscription stringrequired
    user_device stringrequired

Responses

Subscription created

Loading...