Skip to main content
GET
/
api
/
v0
/
users
/
{user_id}
/
notification-prefs
/
get notification preferences
curl --request GET \
  --url https://console.vast.ai/api/v0/users/{user_id}/notification-prefs/ \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "notification_preferences": {
    "client": {
      "low_credit": {
        "email": true,
        "webhooks": false
      }
    }
  }
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

user_id
integer
required

ID of the authenticated user.

Response

Notification preferences returned successfully

success
boolean
Example:

true

notification_preferences
object
Example:
{
"client": {
"low_credit": { "email": true, "webhooks": false }
}
}