# PrimeGov

> Follow your agency's meetings in PrimeGov: upcoming and past meetings by committee, agendas, packets and minutes with their text and files, agenda items with their attachments, and the portal's search. Start workflows when a meeting is scheduled, an agenda or minutes are published, or a meeting is rescheduled or cancelled.

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/primegov

## Actions

### Download agenda item attachment

Save one attachment of an agenda item (a staff memo, contract or exhibit) as a file for later steps.

**Inputs**

- Attachment (`attachment_id`, text, required): The attachment's id, from 'List agenda items'.

**Outputs**

- `attachment_id` (text): The attachment's id
- `content_type` (text): The file's type
- `document_ref` (text): The saved file, for later steps
- `filename` (text): The file's name
- `size_bytes` (number): The file's size in bytes
- `url` (text): Where to open the saved file

**Example output**

```json
{
  "attachment_id": "99f96a7d-e0ac-48e0-bf02-1e0079220766",
  "content_type": "application/pdf",
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "filename": "Committee Memo.pdf",
  "size_bytes": 245987,
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}
```

### Download agenda or minutes

Save a meeting's agenda, agenda packet or minutes (as PDF, or Word when that is all there is) as a file for later steps.

**Inputs**

- Meeting (`meeting_id`, text, required): The meeting. Pick a recent or upcoming one, or give its id from 'List meetings' or a trigger.
- Document (`document`, text): The agenda, the agenda packet or the minutes. Defaults to the agenda. One of: `agenda` (Agenda (default)), `packet` (Agenda packet), `minutes`. Default: `agenda`.

**Outputs**

- `content_type` (text): The file's type
- `document` (text): Which document: agenda, packet or minutes
- `document_id` (number): The document's id in PrimeGov
- `document_ref` (text): The saved file, for later steps
- `filename` (text): The file's name
- `meeting_id` (number): The meeting's id
- `size_bytes` (number): The file's size in bytes
- `url` (text): Where to open the saved file

**Example output**

```json
{
  "content_type": "application/pdf",
  "document": "agenda",
  "document_id": 99339,
  "document_ref": "doc_0123456789abcdef0123456789abcdef",
  "filename": "Community Action Advisory Board Meeting 2026-10-15 Agenda.pdf",
  "meeting_id": 13302,
  "size_bytes": 245987,
  "url": "/actions/core/serve-document/doc_0123456789abcdef0123456789abcdef"
}
```

### Get agenda or minutes text

Get the text of a meeting's agenda, agenda packet or minutes, to summarize, search or quote in later steps.

**Inputs**

- Meeting (`meeting_id`, text, required): The meeting. Pick a recent or upcoming one, or give its id from 'List meetings' or a trigger.
- Document (`document`, text): The agenda, the agenda packet or the minutes. Defaults to the agenda. One of: `agenda` (Agenda (default)), `packet` (Agenda packet), `minutes`. Default: `agenda`.

**Outputs**

- `characters` (number): How long the whole text is
- `document` (text): Which document: agenda, packet or minutes
- `document_id` (number): The document's id
- `meeting_id` (number): The meeting's id
- `meeting_title` (text): The meeting's title
- `name` (text): The document's name as published
- `published` (text): When it was published (the agency's local time)
- `text` (text): The document's text
- `truncated` (true/false): True when the text was cut at 200,000 characters
- `url` (text): A public link to the document

**Example output**

```json
{
  "characters": 2239,
  "document": "agenda",
  "document_id": 99341,
  "meeting_id": 13302,
  "meeting_title": "Community Action Advisory Board Meeting",
  "name": "HTML Agenda",
  "published": "2026-10-09T16:02:11",
  "text": "State of Texas\nCounty of Bexar\nCity of San Antonio\n...",
  "truncated": false,
  "url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341"
}
```

### Get meeting

Get one meeting: its committee, date, time, place, whether it is cancelled, and its published documents with links.

**Inputs**

- Meeting (`meeting_id`, text, required): The meeting. Pick a recent or upcoming one, or give its id from 'List meetings' or a trigger.

**Outputs**

- `meeting` (object): The meeting

**Example output**

```json
{
  "meeting": {
    "agenda_page_url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341",
    "agenda_url": "https://sanantonio.primegov.com/Public/CompiledDocument?compiledMeetingDocumentFileId=99339&compileOutputType=1",
    "cancelled": false,
    "committee_id": 63,
    "committee_name": "Community Action Advisory Board",
    "date": "2026-10-15",
    "documents": [
      {
        "format": "Web page",
        "id": 99341,
        "kind": "agenda",
        "language": "en-US",
        "name": "HTML Agenda",
        "published": "2026-10-09T16:02:11",
        "url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341"
      },
      {
        "format": "PDF",
        "id": 99339,
        "kind": "agenda",
        "language": "en-US",
        "name": "Agenda",
        "published": "2026-10-09T16:02:09",
        "url": "https://sanantonio.primegov.com/Public/CompiledDocument?compiledMeetingDocumentFileId=99339&compileOutputType=1"
      }
    ],
    "end": "2026-10-16T01:30:00",
    "id": 13302,
    "location": "Brady Head Start Building, 1227 Brady Blvd, San Antonio, Texas 78207",
    "meeting_type_id": 86,
    "minutes_url": null,
    "packet_url": null,
    "portal_url": "https://sanantonio.primegov.com/public/portal",
    "start": "2026-10-15T17:30:00",
    "time": "5:30 PM",
    "title": "Community Action Advisory Board Meeting",
    "video_url": null
  }
}
```

### List agenda items

List a meeting's agenda items in order, with each item's attachments, from an agenda (or minutes) published as a web page.

**Inputs**

- Meeting (`meeting_id`, text, required): The meeting. Pick a recent or upcoming one, or give its id from 'List meetings' or a trigger.
- From (`document`, text): Read the items from the agenda or from the minutes. Defaults to the agenda. One of: `agenda` (Agenda (default)), `minutes`. Default: `agenda`.

**Outputs**

- `count` (number): How many
- `document_id` (number): The document read
- `document_url` (text): A link to that document
- `items` (list): The agenda items, in order
- `meeting_id` (number): The meeting's id

**Example output**

```json
{
  "count": 1,
  "document_id": 99341,
  "document_url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341",
  "items": [
    {
      "attachments": [
        {
          "id": "99f96a7d-e0ac-48e0-bf02-1e0079220766",
          "name": "Committee Memo",
          "url": "https://sanantonio.primegov.com/api/compilemeetingattachmenthistory/historyattachment/?historyId=99f96a7d-e0ac-48e0-bf02-1e0079220766"
        }
      ],
      "id": 228884,
      "level": 0,
      "number": "",
      "title": "1. Approval of Meeting Minutes from CAAB Meeting Held on August 13, 2026"
    }
  ],
  "meeting_id": 13302
}
```

### List committees

List the agency's council, committees, boards and commissions.

**Inputs**: None.

**Outputs**

- `committees` (list): The committees, in the portal's order
- `count` (number): How many

**Example output**

```json
{
  "committees": [
    {
      "id": 1,
      "name": "City Council"
    }
  ],
  "count": 1
}
```

### List meeting types

List the kinds of meeting each committee holds, such as a council's regular session, work session or special meeting.

**Inputs**

- Committee (`committee_id`, text): Only this council, committee, board or commission.

**Outputs**

- `count` (number): How many
- `meeting_types` (list): The meeting types

**Example output**

```json
{
  "count": 1,
  "meeting_types": [
    {
      "committee_id": 1,
      "committee_name": "City Council",
      "id": 1,
      "name": "City Council A Session"
    }
  ]
}
```

### List meetings

List past and upcoming meetings by committee, dates and whether an agenda or minutes are published, each with links to its documents.

**Inputs**

- Committee (`committee_id`, text): Only this council, committee, board or commission.
- On or after (`from_date`, date): Only meetings on or after this date. Defaults to 30 days ago.
- On or before (`to_date`, date): Only meetings on or before this date. Leave empty to include every upcoming meeting.
- Which meetings (`published`, text): Every meeting, or only those with an agenda or minutes published, or an agenda 'List agenda items' can read. One of: `any` (Every meeting (default)), `agenda` (Only meetings with an agenda published), `minutes` (Only meetings with minutes published), `agenda_page` (Only meetings whose agenda is a web page, item by item). Default: `any`.
- Order (`order`, text): By meeting date. Defaults to the latest first. One of: `newest` (Latest date first (default)), `oldest` (Earliest date first). Default: `newest`.
- Page size (`limit`, number): How many to return, 1 to 200. Defaults to 25. From 1 to 200.
- Skip (`skip`, number): How many to skip, for the next page: the 'next_skip' of the page before. At least 0.

**Outputs**

- `count` (number): How many
- `has_more` (true/false): Whether there are more
- `meetings` (list): The meetings
- `next_skip` (number): What to put in Skip for the next page (0 when there is none)
- `total` (number): How many match in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "meetings": [
    {
      "agenda_page_url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341",
      "agenda_url": "https://sanantonio.primegov.com/Public/CompiledDocument?compiledMeetingDocumentFileId=99339&compileOutputType=1",
      "cancelled": false,
      "committee_id": 63,
      "committee_name": "Community Action Advisory Board",
      "date": "2026-10-15",
      "documents": [
        {
          "format": "Web page",
          "id": 99341,
          "kind": "agenda",
          "language": "en-US",
          "name": "HTML Agenda",
          "published": "2026-10-09T16:02:11",
          "url": "https://sanantonio.primegov.com/Portal/Meeting?compiledMeetingDocumentFileId=99341"
        },
        {
          "format": "PDF",
          "id": 99339,
          "kind": "agenda",
          "language": "en-US",
          "name": "Agenda",
          "published": "2026-10-09T16:02:09",
          "url": "https://sanantonio.primegov.com/Public/CompiledDocument?compiledMeetingDocumentFileId=99339&compileOutputType=1"
        }
      ],
      "end": "2026-10-16T01:30:00",
      "id": 13302,
      "location": "Brady Head Start Building, 1227 Brady Blvd, San Antonio, Texas 78207",
      "meeting_type_id": 86,
      "minutes_url": null,
      "packet_url": null,
      "portal_url": "https://sanantonio.primegov.com/public/portal",
      "start": "2026-10-15T17:30:00",
      "time": "5:30 PM",
      "title": "Community Action Advisory Board Meeting",
      "video_url": null
    }
  ],
  "next_skip": 0,
  "total": 1
}
```

### Search agendas and minutes

Search the portal's meetings, agenda items and their documents for words, as the portal's own search does.

**Inputs**

- Words (`query`, text, required): What to look for, such as a street, a business or a topic.
- Committee (`committee_id`, text): Only this council, committee, board or commission.
- Meeting type (`meeting_type_id`, text): Only meetings of this type.
- Item type (`item_type_id`, text): Only agenda items of this type, such as Ordinance or Resolution.
- On or after (`from_date`, date): Only meetings on or after this date.
- On or before (`to_date`, date): Only meetings on or before this date.
- How many (`limit`, number): How many results to return, 1 to 200. Defaults to 50. From 1 to 200.

**Outputs**

- `count` (number): How many
- `results` (list): What matched
- `total` (number): How many matched in all

**Example output**

```json
{
  "count": 1,
  "results": [
    {
      "id": 32846,
      "kind": "Item attachment",
      "meeting_id": 13271,
      "meeting_start": "2026-10-29T09:00:00",
      "meeting_title": "City Council A Session",
      "snippet": "Parks & Recreation Library",
      "title": "Agenda Memo",
      "url": "https://sanantonio.primegov.com/viewer/preview?id=32846&type=5"
    }
  ],
  "total": 1
}
```
