dados.gov.pt Contacts API

Contact points related operations

GitHub OpenAPI

Operations 5

POST /contacts/ Creates a contact point #
GET /contacts/roles/ List all contact point roles #
DELETE /contacts/{contact_point}/ Deletes a contact point given its identifier #
GET /contacts/{contact_point}/ Get a contact point given its identifier #
PUT /contacts/{contact_point}/ Updates a contact point given its identifier #

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-contacts-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-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: uData API
  title: uData Contacts API
  version: '1.0'
servers:
- url: /api/1
tags:
- description: Contact points related operations
  name: Contacts
paths:
  /contacts/:
    post:
      operationId: create_contact_point
      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/ContactPoint%20%28read%29'
        '400':
          description: Validation error
      summary: Creates a contact point
      tags:
      - Contacts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactPoint%20%28write%29'
        required: true
  /contacts/roles/:
    get:
      operationId: contact_point_roles
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ContactPointRoles'
                type: array
      summary: List all contact point roles
      tags:
      - Contacts
  /contacts/{contact_point}/:
    parameters:
    - in: path
      name: contact_point
      required: true
      schema:
        type: string
    delete:
      operationId: delete_contact_point
      responses:
        '204':
          description: Contact point deleted
        '404':
          description: Contact point not found
      summary: Deletes a contact point given its identifier
      tags:
      - Contacts
    get:
      operationId: get_contact_point
      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/ContactPoint%20%28read%29'
        '404':
          description: Contact point not found
      summary: Get a contact point given its identifier
      tags:
      - Contacts
    put:
      operationId: update_contact_point
      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/ContactPoint%20%28read%29'
        '400':
          description: Validation error
        '404':
          description: Contact point not found
      summary: Updates a contact point given its identifier
      tags:
      - Contacts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactPoint%20%28write%29'
        required: true
components:
  schemas:
    ContactPointRoles:
      properties:
        id:
          description: The contact role identifier
          type: string
        label:
          description: The contact role display name
          type: string
      type: object
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey