LLM Integration

Flint Pay publishes a machine-readable API reference at /SKILL.md, a single plain-text file designed to be pasted into an AI assistant's context window (CLAUDE.md, .cursorrules, system prompts, etc.).

If you need a structured schema instead of prose, Flint also publishes the public OpenAPI spec at /v1/openapi.json.

What's in SKILL.md#

The file is a self-contained markdown document covering:

  • Auth & base URL: the public API host plus test/live auth conventions
  • Public HTTP API surface: every documented /v1 endpoint, field, enum, and response shape
  • Conventions: money fields, ID prefixes, pagination, sparse updates and patch objects, metadata limits
  • State machines: order, payment, invoice, and subscription lifecycles
  • Error codes: structured error format with all domain-specific codes
  • Quick start examples: 5 curl commands covering the most common flows

It's a single plain-text reference that stays under 2k lines and still fits comfortably in a modern coding agent context window.

How to use it#

Add a WebFetch instruction to your project's CLAUDE.md:

markdown
# Flint Pay API

When working with the Flint Pay API, fetch the reference:
https://developers.withflintpay.com/SKILL.md

Claude Code will fetch and read the file when it needs API context.

Why SKILL.md#

Traditional API docs are designed for humans browsing a website. LLMs work better with a single, dense, plain-text reference that covers everything in one pass: no navigation, no JavaScript rendering, no pagination.

The SKILL.md file gives AI agents:

  • Complete coverage: every endpoint, field, and enum in one file
  • Correct field names: avoids hallucinated field names (a common failure mode)
  • State machine context: knows which mutations are valid in which states
  • Working examples: can adapt real curl commands instead of guessing syntax

The SKILL.md file tracks the same API surface as these docs. When new endpoints or fields ship, both are updated together.

https://developers.withflintpay.com/SKILL.md
Rate this doc