dados.gov.pt Notifications API

Notifications API

GitHub OpenAPI

Operations 2

GET /notifications/ List all current user pending notifications #
POST /notifications/{notification}/read/ Read a notification #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/open-government-portugal:open-government-portugal-notifications-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

open-government-portugal-notifications-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: uData API
  title: uData Notifications API
  version: '1.0'
servers:
- url: /api/1
tags:
- description: Notifications API
  name: Notifications
paths:
  /notifications/:
    get:
      operationId: list_notifications
      parameters:
      - description: The page to display
        in: query
        name: page
        schema:
          type: integer
          default: 1
      - description: The page size
        in: query
        name: page_size
        schema:
          type: integer
          default: 20
      - description: The field (and direction) on which sorting apply
        in: query
        name: sort
        schema:
          type: string
          enum:
          - created
          - last_modified
          - handled_at
          - -created
          - -last_modified
          - -handled_at
      - in: query
        name: handled
        schema:
          type: boolean
      - in: query
        name: user
        schema:
          type: string
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotificationPage'
      summary: List all current user pending notifications
      tags:
      - Notifications
  /notifications/{notification}/read/:
    parameters:
    - in: path
      name: notification
      required: true
      schema:
        type: string
    post:
      operationId: read_notification
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Notification%20%28read%29'
        '400':
          description: Validation error
      summary: Read a notification
      tags:
      - Notifications
components:
  schemas:
    UserReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          avatar:
            description: The user avatar URL
            type: string
          avatar_thumbnail:
            description: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
            type: string
          first_name:
            description: The user first name
            readOnly: true
            type: string
          last_name:
            description: The user larst name
            readOnly: true
            type: string
          page:
            description: The user web page URL
            readOnly: true
            type: string
          slug:
            description: The user permalink string
            readOnly: true
            type: string
          uri:
            description: The API URI for this user
            readOnly: true
            type: string
        type: object
    NotificationPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Notification__read'
          type: array
        next_page:
          description: The next page URL if exists
          type: string
        page:
          description: The current page
          minimum: 1
          type: integer
        page_size:
          description: The page size used for pagination
          minimum: 0
          type: integer
        previous_page:
          description: The previous page URL if exists
          type: string
        total:
          description: The total paginated items
          minimum: 0
          type: integer
      required:
      - page
      - page_size
      - total
      type: object
    Notification__read:
      properties:
        created_at:
          format: date-time
          readOnly: true
          type: string
        details:
          type: object
        handled_at:
          format: date-time
          type: string
        id:
          type: string
        last_modified:
          format: date-time
          readOnly: true
          type: string
        user:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          readOnly: true
      required:
      - created_at
      - id
      - last_modified
      type: object
    BaseReference:
      discriminator:
        propertyName: class
      properties:
        class:
          description: The object class
          type: string
        id:
          description: The object unique identifier
          type: string
      required:
      - class
      - id
      type: object
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey