naftiko: 1.0.0-alpha2 info: label: Fieldwire Account API — Authentication description: 'Fieldwire Account API — Authentication. 1 operation. Lead operation: Exchange the long-lived refresh token (API key) for a short-lived JWT access token used on all subsequent calls. Self-contained Naftiko capability covering one Fieldwire business surface.' tags: - Fieldwire - Authentication - Construction created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: FIELDWIRE_API_KEY: FIELDWIRE_API_KEY capability: consumes: - type: http namespace: account-authentication baseUri: https://client-api.super.fieldwire.com description: Fieldwire Account API — Authentication business capability. resources: - name: api-keys-jwt path: /api_keys/jwt operations: - name: getapikeyjwt method: POST description: Exchange API Key For Access Token outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: '{"api_token": ""}' required: true authentication: type: apikey key: api_token value: '{{env.FIELDWIRE_API_KEY}}' placement: body exposes: - type: rest namespace: account-authentication-rest port: 8080 description: REST adapter for Fieldwire Account — Authentication. resources: - path: /v1/api_keys/jwt name: api-keys-jwt description: REST surface for api-keys-jwt. operations: - method: POST name: getapikeyjwt description: Exchange API Key For Access Token call: account-authentication.getapikeyjwt with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: account-authentication-mcp port: 9090 transport: http description: MCP adapter for Fieldwire Account — Authentication. tools: - name: fieldwire-get-access-token description: Exchange Fieldwire refresh token for a short-lived JWT access token. hints: readOnly: false destructive: false idempotent: false call: account-authentication.getapikeyjwt with: body: tools.body outputParameters: - type: object mapping: $.