---
title: "Create user webpush subscription"
method: POST
path: "/api/v2/users/{user}/webpush/subscription"
tags: ["Notifications"]
---

# Create user webpush subscription

`POST /api/v2/users/{user}/webpush/subscription`

## Path parameters

- `user` string, required

## Request body

- CodersdkWebpushSubscription
  - `auth_key` string
  - `endpoint` string
  - `p256dh_key` string

## Response `204`

No Content

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
