StoneX · Capability

StoneX Payments API — Authentication

StoneX Payments API — Authentication. 1 operations. Lead operation: Get Authentication Token. Self-contained Naftiko capability covering one Stonex business surface.

Run with Naftiko StonexAuthentication

What You Can Do

POST
Getauthtoken — Get Authentication Token
/v1/auth/token

MCP Tools

get-authentication-token

Get Authentication Token

read-only

Capability Spec

payments-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: StoneX Payments API — Authentication
  description: 'StoneX Payments API — Authentication. 1 operations. Lead operation: Get Authentication Token. Self-contained
    Naftiko capability covering one Stonex business surface.'
  tags:
  - Stonex
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STONEX_API_KEY: STONEX_API_KEY
capability:
  consumes:
  - type: http
    namespace: payments-authentication
    baseUri: https://fx-api.payments.stonex.com
    description: StoneX Payments API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: auth-token
      path: /auth/token
      operations:
      - name: getauthtoken
        method: POST
        description: Get Authentication Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.STONEX_API_KEY}}'
  exposes:
  - type: rest
    namespace: payments-authentication-rest
    port: 8080
    description: REST adapter for StoneX Payments API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/auth/token
      name: auth-token
      description: REST surface for auth-token.
      operations:
      - method: POST
        name: getauthtoken
        description: Get Authentication Token
        call: payments-authentication.getauthtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: payments-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for StoneX Payments API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-authentication-token
      description: Get Authentication Token
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: payments-authentication.getauthtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.