ProductCompareToolsPricingBlog
Sign inCreate an account
Help
Your docs site
Private docs
Intermediate4 min

Private docs

Private docs are part of Premium. Open Settings > Docs and find Who can read these docs.

Who can read

  • Anyone. The default. Search engines and AI tools can read your docs.
  • People with the password. One shared password. Changing it signs out everyone who used the old one.
  • People you invite by email. Add email addresses and each person asks for a sign-in link on your docs. The link works once, for 15 minutes. You can also let in whole email domains, such as yourcompany.com. Removing someone signs them out.
  • Your team's SSO. Anyone at your verified SSO domain signs in through your identity provider. Set up SSO first under Settings > Team.

Members of your Specway team can always read the docs. On the sign-in page they choose Sign in with Specway.

What changes when docs are private

  • Every page shows a sign-in page with your logo and brand color until the reader signs in.
  • llms.txt, mcp.json, openapi.json, search and the docs assistant need a sign-in too. Without one they answer 401.
  • Search engines are told not to index the site, and robots.txt disallows everything.
  • Readers stay signed in for 30 days (1 day for team members and SSO).
  • The preview in the editor works as before.

Switching back to Anyone makes the site public again within about 30 seconds.

Fill in readers' own API keys

When readers sign in by email or SSO, Specway knows who they are. Turn on Fill in readers' API keys and give the URL of an endpoint you run. The playground then fills the token box with that reader's own key. A reader with several keys picks one from a list.

When you save the URL, Specway shows a signing secret once. Store it with your endpoint. You can rotate it later.

The request

When a signed-in reader opens an endpoint page, Specway's servers call your URL:

POST https://api.yourcompany.com/docs-keys
Content-Type: application/json
X-Specway-Signature: t=1764780000,v1=5f2b...

{"email":"ada@customer.com","site":{"id":"...","subdomain":"acme"}}

v1 is the hex HMAC-SHA256 of <t>.<raw body>, using your signing secret. Check it, and reject requests where t is more than five minutes old.

import { createHmac, timingSafeEqual } from 'node:crypto';

function verify(rawBody, header, secret) {
  const t = /t=(\d+)/.exec(header)?.[1];
  const v1 = /v1=([0-9a-f]+)/.exec(header)?.[1] ?? '';
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(t)) < 300;
  return fresh && v1.length === expected.length &&
    timingSafeEqual(Buffer.from(v1), Buffer.from(expected));
}

The response

Answer within five seconds with the reader's keys, or an empty list:

{ "keys": [
  { "name": "Production", "value": "sk_live_..." },
  { "name": "Sandbox", "value": "sk_test_..." }
] }

Specway passes the keys to that reader's browser and does not store or cache them. Readers who used the shared password are not identified, so they paste a token as usual.

Tags

privatepasswordssoapi-keys

Related Articles

  • api playground
  • single sign on

API reference docs from your OpenAPI file.

Product

  • How it works
  • Endpoint pages
  • Code samples
  • Spec sync
  • Spec changes
  • API versions
  • Changelog
  • Recipes
  • Docs assistant
  • Your domain and look
  • Insights
  • Private docs
  • Team SSO
  • Pricing

Compare

  • vs ReadMe
  • vs Mintlify
  • vs Redocly
  • vs Scalar
  • vs Swagger UI
  • vs Postman
  • All comparisons

Tools

  • OpenAPI validator
  • OpenAPI diff
  • Swagger 2 to OpenAPI 3
  • cURL to code
  • JWT decoder
  • YAML and JSON
  • All tools

Resources

  • Guides
  • OpenAPI errors
  • Glossary
  • Public API specs
  • Blog
  • Help

Company

  • About
  • Contact
  • Privacy
  • Terms

© 2026 Specway. Made in Utah by Modlific LLC.

GitHubXLinkedIn