Deel · Capability

Endpoints — subpackage_consent

Endpoints — subpackage_consent. 1 operations. Lead operation: Create a consent token. Self-contained Naftiko capability covering one Deel business surface.

Run with Naftiko Deelsubpackage_consent

What You Can Do

POST
Createconsenttoken — Create a consent token
/v1/consent-token

MCP Tools

create-consent-token

Create a consent token

Capability Spec

platform-endpoints-subpackage-consent.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Endpoints — subpackage_consent
  description: 'Endpoints — subpackage_consent. 1 operations. Lead operation: Create a consent token. Self-contained Naftiko
    capability covering one Deel business surface.'
  tags:
  - Deel
  - subpackage_consent
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DEEL_API_KEY: DEEL_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-endpoints-subpackage-consent
    baseUri: https://api.letsdeel.com/rest/v2
    description: Endpoints — subpackage_consent business capability. Self-contained, no shared references.
    resources:
    - name: consent_token
      path: /consent_token
      operations:
      - name: createconsenttoken
        method: POST
        description: Create a consent token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          description: '## Authentication'
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.DEEL_API_KEY}}'
  exposes:
  - type: rest
    namespace: platform-endpoints-subpackage-consent-rest
    port: 8080
    description: REST adapter for Endpoints — subpackage_consent. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/consent-token
      name: consent-token
      description: REST surface for consent_token.
      operations:
      - method: POST
        name: createconsenttoken
        description: Create a consent token
        call: platform-endpoints-subpackage-consent.createconsenttoken
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-endpoints-subpackage-consent-mcp
    port: 9090
    transport: http
    description: MCP adapter for Endpoints — subpackage_consent. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-consent-token
      description: Create a consent token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-endpoints-subpackage-consent.createconsenttoken
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.