Skip to main content
GET
/
api
/
comunicados
/
:id
curl -X GET "https://api.example.com/api/comunicados/1" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id_comunicado": 1,
  "titulo": "Welcome to the Portal",
  "contenido": "We are excited to announce the launch of our new self-service portal. This platform will enable you to manage your account, submit requests, and access important company information.",
  "fecha_publicacion": "2026-03-01T10:00:00Z",
  "activo": true,
  "media_url": "https://example.com/media/welcome.jpg",
  "fecha_creacion": "2026-02-28T15:30:00Z",
  "fecha_actualizacion": "2026-02-28T15:30:00Z"
}

Overview

This endpoint returns a single announcement by its ID. Only active announcements can be accessed through this endpoint. Attempting to retrieve an inactive announcement will result in a 403 Forbidden error.

Path Parameters

id
integer
required
The unique identifier of the announcement to retrieve

Response

id_comunicado
integer
Unique identifier for the announcement
titulo
string
Title of the announcement
contenido
string
Content/body of the announcement
fecha_publicacion
string
Publication date in ISO 8601 format
activo
boolean
Whether the announcement is active (always true for successful responses)
media_url
string
URL to associated media (image, video, etc.)
fecha_creacion
string
Creation timestamp in ISO 8601 format
fecha_actualizacion
string
Last update timestamp in ISO 8601 format
curl -X GET "https://api.example.com/api/comunicados/1" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "id_comunicado": 1,
  "titulo": "Welcome to the Portal",
  "contenido": "We are excited to announce the launch of our new self-service portal. This platform will enable you to manage your account, submit requests, and access important company information.",
  "fecha_publicacion": "2026-03-01T10:00:00Z",
  "activo": true,
  "media_url": "https://example.com/media/welcome.jpg",
  "fecha_creacion": "2026-02-28T15:30:00Z",
  "fecha_actualizacion": "2026-02-28T15:30:00Z"
}

Get Active Announcements

Get all active announcements

Update Announcement

Update an announcement (Admin only)

Build docs developers (and LLMs) love