Box · Capability

Box Oauth2 API — Oauth2

Box Oauth2 API — Oauth2. 3 operations. Lead operation: Box Revoke access token. Self-contained Naftiko capability covering one Box business surface.

Run with Naftiko BoxOauth2

What You Can Do

POST
Postoauth2revoke — Box Revoke access token
/v1/oauth2/revoke
POST
Postoauth2token — Box Request access token
/v1/oauth2/token
POST
Postoauth2tokenrefresh — Box Refresh access token
/v1/oauth2/token-refresh

MCP Tools

box-revoke-access-token

Box Revoke access token

box-request-access-token

Box Request access token

box-refresh-access-token

Box Refresh access token

Capability Spec

oauth2-oauth2.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Box Oauth2 API — Oauth2
  description: 'Box Oauth2 API — Oauth2. 3 operations. Lead operation: Box Revoke access token. Self-contained Naftiko capability
    covering one Box business surface.'
  tags:
  - Box
  - Oauth2
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    BOX_API_KEY: BOX_API_KEY
capability:
  consumes:
  - type: http
    namespace: oauth2-oauth2
    baseUri: ''
    description: Box Oauth2 API — Oauth2 business capability. Self-contained, no shared references.
    resources:
    - name: oauth2-revoke
      path: /oauth2/revoke
      operations:
      - name: postoauth2revoke
        method: POST
        description: Box Revoke access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: oauth2-token
      path: /oauth2/token
      operations:
      - name: postoauth2token
        method: POST
        description: Box Request access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: oauth2-token#refresh
      path: /oauth2/token#refresh
      operations:
      - name: postoauth2tokenrefresh
        method: POST
        description: Box Refresh access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: oauth2-oauth2-rest
    port: 8080
    description: REST adapter for Box Oauth2 API — Oauth2. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/oauth2/revoke
      name: oauth2-revoke
      description: REST surface for oauth2-revoke.
      operations:
      - method: POST
        name: postoauth2revoke
        description: Box Revoke access token
        call: oauth2-oauth2.postoauth2revoke
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/oauth2/token
      name: oauth2-token
      description: REST surface for oauth2-token.
      operations:
      - method: POST
        name: postoauth2token
        description: Box Request access token
        call: oauth2-oauth2.postoauth2token
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/oauth2/token-refresh
      name: oauth2-token-refresh
      description: REST surface for oauth2-token#refresh.
      operations:
      - method: POST
        name: postoauth2tokenrefresh
        description: Box Refresh access token
        call: oauth2-oauth2.postoauth2tokenrefresh
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: oauth2-oauth2-mcp
    port: 9090
    transport: http
    description: MCP adapter for Box Oauth2 API — Oauth2. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: box-revoke-access-token
      description: Box Revoke access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: oauth2-oauth2.postoauth2revoke
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: box-request-access-token
      description: Box Request access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: oauth2-oauth2.postoauth2token
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: box-refresh-access-token
      description: Box Refresh access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: oauth2-oauth2.postoauth2tokenrefresh
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.