Skip to content
SocialMate

SocialMate Local API

OpenAPI & SDKs

The app serves a live OpenAPI 3.0.3 spec and Swagger UI — generate a typed client in any language.

You don't have to take this reference's word for anything — the running app serves its own OpenAPI 3.0.3 spec and a browsable Swagger UI. Because it's generated by the exact build you're running, it always matches your version byte-for-byte.

Where it lives

Swagger UIhttp://localhost:3456/docs
Spec (JSON)http://localhost:3456/docs/openapi.json
Title / versionSocialMate Local API · 1.1.0
Auth schemeapiKey in header x-api-key

Both routes are unauthenticated and excluded from the response envelope — they're the spec and the docs UI themselves, not API calls. Through a Cloudflare Tunnel they're reachable at https://your-tunnel-url/docs too.

Browse it

Open http://localhost:3456/docs in a browser to read every endpoint, parameter, and schema interactively. Paste an x-api-key into Swagger's “Authorize” box to try calls straight from the page.

Fetch the raw spec

curl http://localhost:3456/docs/openapi.json -o socialmate-openapi.json

The document advertises the security scheme and servers, so most tools wire up auth for you:

{
  "openapi": "3.0.3",
  "info": { "title": "SocialMate Local API", "version": "1.1.0" },
  "servers": [{ "url": "http://localhost:3456" }],
  "components": {
    "securitySchemes": { "apiKey": { "type": "apiKey", "in": "header", "name": "x-api-key" } }
  }
}

Generate a typed client

Point any OpenAPI tool at the spec to get a client in your language — no hand-written wrapper.

# Import into Postman or Insomnia: File → Import → URL
http://localhost:3456/docs/openapi.json

# Or generate a client with openapi-generator
openapi-generator-cli generate \
  -i http://localhost:3456/docs/openapi.json \
  -g typescript-fetch \
  -o ./socialmate-client

Tip. Pin the generator to the spec from the same app version you target in production — regenerate after an app update so your client tracks any new endpoints or fields. Every request is validated against the spec's JSON schemas server-side, so malformed input gets a clean 400 instead of surprising behaviour.

Free forever · no card Download free