Announcements – API
The Announcements API allows you to programmatically fetch system-wide or group-specific announcement messages from Xtracta. These announcements help keep your users informed about important platform updates, scheduled maintenance, and feature releases. This page outlines the endpoint, required parameters, sample requests and responses, and typical use cases for integrating announcements into your application.
Click here to go to API Previewer page.
Get Announcements
This endpoint retrieves announcement messages targeted at a specific group in your Xtracta account. These messages are used to notify users about important system updates, planned outages, improvements, or other platform-related information.
POST Parameters
| Parameter | Required | Value | Description |
|---|---|---|---|
api_key | {key} | Your API key | |
group_id | {integer} | The ID of the group for which to fetch announcements |
Sample Request
POST https://api-app.xtracta.com/v1/announcement HTTP/1.1 Content-Type: application/x-www-form-urlencoded api_key=123 group_id=123
Sample Response
<?xml version="1.0" encoding="UTF-8"?> <announcement_response> <status>200</status> <message>The request has been successfully processed</message> <announcement> <id>63</id> <type>default</type> <title>Test</title> <description>Testing <iframe width="640px" height="480px" src="https://www.youtube.com/watch?v=Je--mCfjByU" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%; max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen></iframe> </description> <embedded_html/> <start_date>2025-07-29 13:44:00+12:00</start_date> <end_date>2025-08-14 13:44:00+12:00</end_date> </announcement> <announcement> <id>64</id> <type>default</type> <title>New Test</title> <description>Testing This is a test</description> <embedded_html> <![CDATA[<embed/>]]> </embedded_html> <start_date/> <end_date/> </announcement> <announcement> <id>65</id> <type>warning</type> <title>Another Test Accouncement</title> <description>Warning test announcement</description> <embedded_html/> <start_date>2025-07-31 21:40:00+12:00</start_date> <end_date>2025-08-07 22:41:00+12:00</end_date> </announcement> </announcement_response>
Schema Definition
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:simpleType name="ConfidenceType">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:complexType name="AnnouncementresponseType">
<xs:sequence>
<xs:element name="status" type="xs:positiveInteger"/>
<xs:element name="message" type="xs:string"/>
<xs:element name="announcement" type="AnnouncementType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="AnnouncementType">
<xs:sequence>
<xs:element name="id" type="xs:positiveInteger"/>
<xs:element name="type" type="xs:string"/>
<xs:element name="title" type="xs:string"/>
<xs:element name="description" type="xs:string" nillable="true"/>
<xs:element name="embedded_html" type="xs:string"/>
<xs:element name="start_date" type="xs:string"/>
<xs:element name="end_date" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="announcement_response">
<xs:complexType>
<xs:sequence>
<xs:element name="status" type="xs:positiveInteger"/>
<xs:element name="message" type="xs:string"/>
<xs:element name="announcement" type="AnnouncementType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Use Cases
- Display latest system announcements inside your application UI.
- Fetch only announcements related to your specific
group_id. - Log or alert high-priority announcements for internal teams.
- Stay informed about Xtracta maintenance schedules or new features.