Didomi · Capability

Didomi Platform API — Sessions & Authentication

Didomi Platform API — Sessions & Authentication. 2 operations. Self-contained Naftiko capability over the Didomi Platform REST API.

Didomi Platform API — Sessions & Authentication is a Naftiko capability published by Didomi, one of 10 capabilities the APIs.io network indexes for this provider. It bundles 2 operations across the GET and POST methods rooted at /v1/sessions.

The capability includes 1 read-only operation and 1 state-changing operation. Lead operation: Retrieves a single resource with the given id from the service. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include Didomi, Consent Management, and Privacy.

Run with Naftiko DidomiConsent ManagementPrivacy

What You Can Do

GET
Get sessions id — Retrieves a single resource with the given id from the service.
/v1/sessions/{id}
POST
Post sessions — Create a new session
/v1/sessions

MCP Tools

didomi-get-sessions-id

Retrieves a single resource with the given id from the service.

read-only idempotent
didomi-post-sessions

Create a new session

Capability Spec

sessions-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Didomi Platform API — Sessions & Authentication
  description: Didomi Platform API — Sessions & Authentication. 2 operations. Self-contained Naftiko capability over the Didomi Platform REST API.
  tags:
  - Didomi
  - Consent Management
  - Privacy
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    DIDOMI_BEARER_TOKEN: DIDOMI_BEARER_TOKEN
capability:
  consumes:
  - type: http
    namespace: sessions-authentication
    baseUri: https://api.didomi.io/v1
    description: Didomi Platform API — Sessions & Authentication business capability against the Didomi Platform REST API (https://api.didomi.io/v1).
    resources:
    - name: sessions-id
      path: /sessions/{id}
      operations:
      - name: get-sessions-id
        method: GET
        description: Retrieves a single resource with the given id from the service.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: sessions
      path: /sessions
      operations:
      - name: post-sessions
        method: POST
        description: Create a new session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          required: true
          description: Request body (JSON).
    authentication:
      type: bearer
      value: '{{env.DIDOMI_BEARER_TOKEN}}'
      placement: header
      note: Obtain by POSTing api-key + secret to /v1/sessions and reusing access_token for up to one hour.
  exposes:
  - type: rest
    namespace: sessions-authentication-rest
    port: 8080
    description: REST adapter for Didomi Platform API — Sessions & Authentication. One resource per consumed operation.
    resources:
    - path: /v1/sessions/{id}
      name: sessions-id
      description: REST surface for sessions-id.
      operations:
      - method: GET
        name: get-sessions-id
        description: Retrieves a single resource with the given id from the service.
        call: sessions-authentication.get-sessions-id
    - path: /v1/sessions
      name: sessions
      description: REST surface for sessions.
      operations:
      - method: POST
        name: post-sessions
        description: Create a new session
        call: sessions-authentication.post-sessions
  - type: mcp
    namespace: sessions-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Didomi Platform API — Sessions & Authentication. One tool per consumed operation.
    tools:
    - name: didomi-get-sessions-id
      description: Retrieves a single resource with the given id from the service.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: sessions-authentication.get-sessions-id
    - name: didomi-post-sessions
      description: Create a new session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: sessions-authentication.post-sessions