Developers

OpenAPI Spec

Machine-readable API definition in OpenAPI 3.1 format. Use it to generate clients, import into Postman, or explore the schema.

Download

📄
openapi.yaml
YAML format — 42 KB. Human-readable, great for editing.

Download YAML
📋
openapi.json
JSON format — 48 KB. Best for programmatic usage.

Download JSON

Import into Postman

  1. Open Postman and click Import in the top left.
  2. Drag and drop the openapi.yaml file or paste the URL: https://api.fs.ax/openapi.yaml
  3. Postman will generate a complete collection with all endpoints, parameters, and example responses.
  4. Set the Authorization variable to your API key and start testing.

Generate a client

Use OpenAPI Generator to create a typed client in 50+ languages:

# Install the generator
npm install -g @openapitools/openapi-generator-cli

# Generate a TypeScript client
openapi-generator-cli generate \
  -i https://api.fs.ax/openapi.yaml \
  -g typescript-fetch \
  -o ./fsax-client

# Generate a Python client
openapi-generator-cli generate \
  -i https://api.fs.ax/openapi.yaml \
  -g python \
  -o ./fsax-python-client

# Generate a Go client
openapi-generator-cli generate \
  -i https://api.fs.ax/openapi.yaml \
  -g go \
  -o ./fsax-go-client

Spec preview

Here is a snippet of the specification:

openapi: "3.1.0"
info:
  title: fs.ax API
  version: "1.0.0"
  description: URL shortener with built-in monetization
  contact:
    email: api@fs.ax
servers:
  - url: https://api.fs.ax/v1
    description: Production
paths:
  /links:
    post:
      summary: Create a short link
      operationId: createLink
      tags: [Links]
      security:
        - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/CreateLinkRequest"
      responses:
        "201":
          description: Link created
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Link"
Always up to date. The spec is auto-generated from our Rust API source code, so it always matches the live API exactly.

Need help? Check the API documentation or reach out at api@fs.ax.