---
title: "Register a push subscription for the current user"
method: POST
path: "/api/push/subscribe"
tags: ["push"]
---

# Register a push subscription for the current user

`POST /api/push/subscribe`

## Request body

- PushSubscribeRequest
  - `endpoint` string, required
  - `keys` PushSubscriptionKeys, required
    - `p256dh` string, required
    - `auth` string, required
  - `user_agent` string, nullable

## Response `204`

Successful Response

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
