Amadeus · Capability

Amadeus OAuth2 Login — Oauth2 Access Token

Amadeus OAuth2 Login — Oauth2 Access Token. 2 operation(s). Lead operation: Amadeus The OAuth 2.0 Token Endpoint. Self-contained Naftiko capability covering one Amadeus business surface.

Run with Naftiko AmadeusTravelOauth2 Access Token

What You Can Do

POST
Oauth2token — Amadeus The OAuth 2.0 Token Endpoint
/v1/security/oauth2/token
GET
Getoauth2tokeninfo — Amadeus The OAuth 2.0 Token Info Endpoint
/v1/security/oauth2/token/{access-token}

MCP Tools

oauth-2-0-token-endpoint

Amadeus The OAuth 2.0 Token Endpoint

oauth-2-0-token-info

Amadeus The OAuth 2.0 Token Info Endpoint

read-only idempotent

Capability Spec

authorization-oauth2-access-token.yaml Raw ↑
naftiko: "1.0.0-alpha2"
info:
  label: "Amadeus OAuth2 Login — Oauth2 Access Token"
  description: 'Amadeus OAuth2 Login — Oauth2 Access Token. 2 operation(s). Lead operation: Amadeus The OAuth 2.0 Token Endpoint. Self-contained Naftiko capability covering one Amadeus business surface.'
  tags:
    - Amadeus
    - Travel
    - Oauth2 Access Token
  created: "2026-05-29"
  modified: "2026-05-29"
binds:
  - namespace: env
    keys:
      AMADEUS_TOKEN: AMADEUS_TOKEN
capability:
  consumes:
    - type: http
      namespace: authorization-oauth2-access-token
      baseUri: https://test.api.amadeus.com/v1
      description: Amadeus OAuth2 Login — Oauth2 Access Token business capability. Self-contained, no shared references.
      authentication:
        type: bearer
        token: '{{env.AMADEUS_TOKEN}}'
      resources:
        - name: security-oauth2-token
          path: /security/oauth2/token
          operations:
            - name: oauth2Token
              method: POST
              description: Amadeus The OAuth 2.0 Token Endpoint
              inputParameters:
                - name: body
                  in: body
                  type: object
                  required: false
                  description: Request body
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
        - name: security-oauth2-token
          path: /security/oauth2/token/{access_token}
          operations:
            - name: getOauth2TokenInfo
              method: GET
              description: Amadeus The OAuth 2.0 Token Info Endpoint
              inputParameters:
                - name: access_token
                  in: path
                  type: string
                  required: true
                  description: Amadeus The OAuth 2.0 Token Info Endpoint
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: authorization-oauth2-access-token-rest
      port: 8080
      description: REST adapter for Amadeus OAuth2 Login — Oauth2 Access Token. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/security/oauth2/token
          name: security-oauth2-token
          description: REST surface for security-oauth2-token.
          operations:
            - method: POST
              name: oauth2Token
              description: Amadeus The OAuth 2.0 Token Endpoint
              call: authorization-oauth2-access-token.oauth2Token
              with:
                body: rest.body
              outputParameters:
                - type: object
                  mapping: $.
        - path: /v1/security/oauth2/token/{access-token}
          name: security-oauth2-token
          description: REST surface for security-oauth2-token.
          operations:
            - method: GET
              name: getOauth2TokenInfo
              description: Amadeus The OAuth 2.0 Token Info Endpoint
              call: authorization-oauth2-access-token.getOauth2TokenInfo
              with:
                access_token: rest.access_token
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: authorization-oauth2-access-token-mcp
      port: 9090
      transport: http
      description: MCP adapter for Amadeus OAuth2 Login — Oauth2 Access Token. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: oauth-2-0-token-endpoint
          description: Amadeus The OAuth 2.0 Token Endpoint
          hints:
            readOnly: false
            destructive: false
            idempotent: false
          call: authorization-oauth2-access-token.oauth2Token
          with:
            body: tools.body
          outputParameters:
            - type: object
              mapping: $.
        - name: oauth-2-0-token-info
          description: Amadeus The OAuth 2.0 Token Info Endpoint
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: authorization-oauth2-access-token.getOauth2TokenInfo
          with:
            access_token: tools.access_token
          outputParameters:
            - type: object
              mapping: $.