Skip to content

Create Notification

Creates a notification record in the system for a given user, associated with a specific entity (e.g., a prediction or a clan).

POST/notification/v1/create
Terminal window
curl -X POST https://api.juspredict.com/notification/v1/create \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"user_id": "user-uuid",
"title": "New Prediction Result",
"message": "You won 50 credits on your last prediction!",
"entity_type": "PREDICTION",
"entity_id": "prediction-uuid"
}'
FieldRequirement
user_idMust be a valid UUID.
entity_idMust be a valid UUID.
{
"status": {
"type": "SUCCESS",
"details": []
},
"notification_id": "notification-uuid"
}
FieldTypeDescription
statusStatusOperation status.