---
title: "Register an encrypted browser push subscription for this signed-in account"
method: POST
path: "/v1/workspace/push/subscriptions"
---

# Register an encrypted browser push subscription for this signed-in account

`POST /v1/workspace/push/subscriptions`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/workspace/push/subscriptions`
- Auth: API key in header `Authorization`

## Request body

- WebPushSubscriptionInput
  - `endpoint` string, required
  - `keys` WebPushKeys, required
    - `p256dh` string, required
    - `auth` string, required
  - `expirationTime` union
    - integer
    - number
  - `name` string, required

## Response `200`

Register an encrypted browser push subscription for this signed-in account

- object
  - `data` PushDevice, required
    - `device_id` string, required
    - `platform` 'apns' | 'fcm' | 'web_push', required
    - `name` string, required
    - `active` boolean, required
    - `created_at` string, required
    - `updated_at` string, required

## Other responses

- `default`: Error envelope

---

[API](https://skmtc.dev/specstream/apis/specstream-api.md) · [All operations](https://skmtc.dev/specstream/apis/specstream-api/llms.txt) · [OpenAPI document](https://skmtc.dev/specstream/apis/specstream-api/revisions/5a9f51143a13?raw)
