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 Uploads 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: Uploads
description: Presigned URLs for direct media upload.
paths:
/api/v1/uploads/sign:
post:
summary: Mint a presigned upload URL for direct browser/agent → Supabase Storage upload
tags:
- Uploads
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
filename:
type: string
content_type:
type: string
kind:
type: string
enum:
- image
- video
- audio
- attachment
required:
- filename
- kind
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
upload_url:
type: string
format: uri
public_url:
type: string
format: uri
expires_at:
type: string
format: date-time
operationId: postApiV1UploadsSign
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: nf_live_<32-char> | nf_test_<64-char>