Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Nafafy Public MCP API
version: 1.0.0
description: 'Programmatic access to publish stories, manage products and variants, fulfil orders, run bookings and read analytics on Nafafy.
- **REST** — `Authorization: Bearer nf_live_…` (or `nf_test_…`) with a key of kind **REST API** minted at https://nafafy.com/dashboard/developer. Each Series F operation names the scope it needs (`x-required-scope`); `x:write` implies `x:read`. `customers:pii` and `refunds:write` are standalone and never implied.
- **MCP** — https://nafafy.com/api/mcp (JSON-RPC 2.0 over HTTP) needs a key of kind **MCP**; a REST key is refused there, and an MCP key is refused on REST (`wrong_kind`).
Errors use the envelope `components.schemas.V1Error`; branch on `error.code`. Series F operations list every code they can answer in `x-error-codes` and their limit in `x-rate-limit`.'
contact:
name: Nafafy support
url: https://nafafy.com/developers
servers:
- url: https://nafafy.com
description: Production
security:
- bearerAuth: []
tags:
- name: MCP
description: Model Context Protocol — JSON-RPC 2.0 over HTTP.
paths:
/api/mcp:
post:
summary: MCP JSON-RPC 2.0 endpoint — bearer key of kind MCP (a REST key is refused)
tags:
- MCP
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
jsonrpc:
type: string
enum:
- '2.0'
method:
type: string
params:
type: object
id:
type:
- string
- number
required:
- jsonrpc
- method
responses:
'200':
description: JSON-RPC envelope (result or error)
operationId: postApiMcp
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: nf_live_<32-char> | nf_test_<64-char>