Skip to content

Get Web Push status

GET
/me/push
curl --request GET \
--url https://example.com/api/v1/me/push \
--cookie better-auth.session_token=<better-auth.session_token>

Returns whether Web Push is configured on this instance, the VAPID public key for browser subscription, and the signed-in user’s active push subscriptions.

Requires a signed-in browser session; API tokens are rejected with 403.

Web Push configuration and active subscriptions

Media typeapplication/json
object
configured
required

Whether VAPID keys are configured on this instance.

boolean
publicKey
required

Base64url-encoded P-256 VAPID public key, or null when push is disabled.

Any of:
string
subscriptions
required

Active Web Push subscriptions for the signed-in user.

Array<object>
object
createdAt
required

ISO 8601 timestamp when the subscription was saved.

string
endpoint
required

Push service endpoint URL.

string
id
required

Push subscription ID.

string
label
required

Optional browser or device label.

Any of:
string

Example generated

{
"configured": true,
"publicKey": "example",
"subscriptions": [
{
"createdAt": "example",
"endpoint": "example",
"id": "example",
"label": "example"
}
]
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}