Download
Import into Postman
- Open Postman and click Import in the top left.
- Drag and drop the openapi.yaml file or paste the URL: https://api.fs.ax/openapi.yaml
- Postman will generate a complete collection with all endpoints, parameters, and example responses.
- 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-clientSpec 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.