Referencia de la API

Notificaciones

Las notificaciones son la campana del propietario del Sublaunch en la Comunidad, con quién dio me gusta, respondió, votó o publicó. Solo las claves y las conexiones del propietario las leen.

El objeto notification

Algo que ocurrió en la Comunidad, tal como aparece en la campana del propietario del Sublaunch.

Atributos

  • idstring
    Identificador único de la notificación.
  • objectstring
    Siempre notification.
  • typestring
    Qué ocurrió, un like, un reply, un vote o un post nuevo.
    likereplyvotepost
  • post_idstring o null
    El post al que se refiere.
  • reply_idstring o null
    El comentario, en una respuesta.
  • post_urlstring o null
    El post en la Comunidad del Sublaunch.
  • excerptstring
    Unas pocas palabras del post o del comentario.
  • fromarray de objects
    Quién lo hizo.
  • countinteger
    Cuántas veces ocurrió, agrupadas en una sola notificación.
  • readboolean
    Si el propietario la leyó.
  • created_atstring
    Cuándo ocurrió, en ISO 8601.
El objeto notification
{
  "id": "Nt3kQ8xM2P",
  "object": "notification",
  "type": "reply",
  "post_id": "Pt9xK3mQ2L",
  "reply_id": "Cm2kX8pQ7R",
  "post_url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
  "excerpt": "Thanks, the 4 hour chart helps a lot.",
  "from": [
    {
      "name": "Sam Carter",
      "is_creator": false
    }
  ],
  "count": 1,
  "read": false,
  "created_at": "2026-11-15T18:20:13.000Z"
}

Listar notificaciones

GET/v1/notificationsScope readMCPlist_notifications

Devuelve las notificaciones de la Comunidad del propietario, primero las más recientes, y cuántas no se han leído aún.

Parámetros de consulta

  • limitinteger
    Cuántas notificaciones devolver, de 1 a 50. 20 por defecto.
  • cursorstring
    El next_cursor de la página anterior, para obtener la siguiente. Mantén iguales los demás parámetros. Consulta Paginación.

Devuelve

Una lista de objetos notification con unread_count, las notificaciones que aún no se han leído.

Errores

  • Un parámetro tiene un valor que la API no acepta. param lo indica.
  • El cursor no es uno que haya dado esta lista, se creó para otros filtros o va más allá de su límite.
GET/v1/notifications
curl -G https://api.sublaunch.com/v1/notifications \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY" \
  -d limit=20
Respuesta200
{
  "object": "list",
  "data": [
    {
      "id": "Nt3kQ8xM2P",
      "object": "notification",
      "type": "reply",
      "post_id": "Pt9xK3mQ2L",
      "reply_id": "Cm2kX8pQ7R",
      "post_url": "https://sublaunch.com/alphadesk/community/weekly-outlook",
      "excerpt": "Thanks, the 4 hour chart helps a lot.",
      "from": [
        {
          "name": "Sam Carter",
          "is_creator": false
        }
      ],
      "count": 1,
      "read": false,
      "created_at": "2026-11-15T18:20:13.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0xNVQxNzowMjo0MC4wMDBaIn0",
  "unread_count": 4
}

Marcar las notificaciones como leídas

POST/v1/notifications/readScope writeMCPread_notifications

Marca como leídas todas las notificaciones de la Comunidad del propietario, como al abrir la campana en la app.

Devuelve

Un objeto con unread_count.

POST/v1/notifications/read
curl -X POST https://api.sublaunch.com/v1/notifications/read \
  -H "Authorization: Bearer $SUBLAUNCH_API_KEY"
Respuesta200
{
  "object": "notifications",
  "unread_count": 0
}