braintree · Capability

Braintree Payments API — Client Tokens

Braintree Payments API — Client Tokens. 1 operations. Lead operation: Generate a client token. Self-contained Naftiko capability covering one Braintree business surface.

Run with Naftiko BraintreeClient Tokens

What You Can Do

POST
Generateclienttoken — Generate a client token
/v1/client-token

MCP Tools

generate-client-token

Generate a client token

Capability Spec

payments-client-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Braintree Payments API — Client Tokens
  description: 'Braintree Payments API — Client Tokens. 1 operations. Lead operation: Generate a client token. Self-contained
    Naftiko capability covering one Braintree business surface.'
  tags:
  - Braintree
  - Client Tokens
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BRAINTREE_API_KEY: BRAINTREE_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-client-tokens
    baseUri: https://api.braintreegateway.com/merchants/{merchantId}
    description: Braintree Payments API — Client Tokens business capability. Self-contained, no shared references.
    resources:
    - name: client_token
      path: /client_token
      operations:
      - name: generateclienttoken
        method: POST
        description: Generate a client token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: basic
      username: '{{env.BRAINTREE_USER}}'
      password: '{{env.BRAINTREE_PASS}}'
  exposes:
  - type: rest
    namespace: payments-client-tokens-rest
    port: 8080
    description: REST adapter for Braintree Payments API — Client Tokens. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/client-token
      name: client-token
      description: REST surface for client_token.
      operations:
      - method: POST
        name: generateclienttoken
        description: Generate a client token
        call: payments-client-tokens.generateclienttoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-client-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Braintree Payments API — Client Tokens. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: generate-client-token
      description: Generate a client token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: payments-client-tokens.generateclienttoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.