dados.gov.pt Reports API

User reported objects related operations (beta)

GitHub OpenAPI

Operations 5

GET /reports/ List reports #
POST /reports/ Create report #
GET /reports/reasons/ List reports reasons #
GET /reports/{report}/ Get report #
PATCH /reports/{report}/ Update report #

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-reports-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-reports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: uData API
  title: uData Reports API
  version: '1.0'
servers:
- url: /api/1
tags:
- description: User reported objects related operations (beta)
  name: Reports
paths:
  /reports/:
    get:
      operationId: list_reports
      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:
          - reported_at
          - -reported_at
      - in: query
        name: handled
        schema:
          type: boolean
      - 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/ReportPage'
      tags:
      - Reports
      summary: List reports
      x-summary-source: derived
    post:
      operationId: create_report
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report%20%28read%29'
        '400':
          description: Validation error
      tags:
      - Reports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Report%20%28write%29'
        required: true
      summary: Create report
      x-summary-source: derived
  /reports/reasons/:
    get:
      operationId: list_reports_reasons
      responses:
        '200':
          description: list of available reasons associated with their labels
          content:
            application/json:
              schema:
                type: object
      tags:
      - Reports
      summary: List reports reasons
      x-summary-source: derived
  /reports/{report}/:
    parameters:
    - in: path
      name: report
      required: true
      schema:
        type: string
    get:
      operationId: get_report
      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/Report%20%28read%29'
      tags:
      - Reports
      summary: Get report
      x-summary-source: derived
    patch:
      operationId: update_report
      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/Report%20%28read%29'
        '400':
          description: Validation error
      tags:
      - Reports
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Report%20%28write%29'
        required: true
      summary: Update report
      x-summary-source: derived
components:
  schemas:
    LazyReference:
      properties:
        class:
          type: object
        id:
          type: object
      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
    Report__read:
      properties:
        by:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          description: Only set if a user was connected when reporting an element.
          readOnly: true
        callbacks:
          readOnly: true
          type: object
        dismissed_at:
          format: date-time
          type: string
        dismissed_by:
          $ref: '#/components/schemas/UserReference'
        id:
          readOnly: true
          type: string
        message:
          type: string
        reason:
          enum:
          - auto_spam
          - explicit_content
          - illegal_content
          - others
          - personal_data
          - security
          - spam
          example: auto_spam
          type: string
        reported_at:
          format: date-time
          readOnly: true
          type: string
        self_api_url:
          description: Link to the API endpoint for this report
          readOnly: true
          type: string
        subject:
          $ref: '#/components/schemas/LazyReference'
        subject_deleted_at:
          format: date-time
          readOnly: true
          type: string
        subject_embed_id:
          description: UUID of the embedded document within the subject (e.g., a Message within a Discussion)
          type: string
      required:
      - id
      - reason
      - reported_at
      type: object
    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
    ReportPage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Report__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
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey