How to consume AuthPI's documentation and integrate AuthPI programmatically — markdown mirrors, llms.txt, machine-readable specs, and a compact integration recipe.
Last updated 2026-06-12
This page is for AI assistants, coding agents, and the humans driving them. Everything below is fetchable without JavaScript.
https://authpi.com/llms.txt — every docs page with a one-line description and its markdown URL.https://authpi.com/llms-full.txt (~300 KB — fits in a single context window)..md to any docs page URL (e.g. /docs/concepts/clients.md)./docs/reference/core-api/<resource>.md and /docs/reference/idp-api/<resource>.md — all listed in llms.txt.https://api.authpi.com/openapi.json (Core API) and https://idp.authpi.com/openapi.json (IdP API). OpenAPI 3.1, named component schemas.curl -u "$AUTHPI_KEY_ID:$AUTHPI_KEY_SECRET" .... Bearer is reserved for JWT access tokens. API keys are issued as an id + secret pair, shown once at creation.AUTHPI_KEY_ID, AUTHPI_KEY_SECRET, AUTHPI_ISSUER_URL.acc_ (account), i_ (issuer), c_ (client), usr_ (user), org_ (organization), agt_ (agent), key_ (API key), wh_ (webhook), evt_ (event).{ data, has_more, next_cursor } and accept limit + cursor.error and error_description; handle rate limiting by status code (429 + Retry-After), not body shape.POST /v1/accounts/{account_id}/issuers on api.authpi.com. The response includes the issuer id (i_...); the issuer URL is https://idp.authpi.com/{issuer_id}.POST .../issuers/{issuer_id}/clients with application_type (web, spa, native, or m2m), redirect URIs, and grant types. The secret is returned once.{issuer_url}/.well-known/openid-configuration, authorization-code flow with PKCE (S256). Hosted login/signup portals are included — no UI to build.iss + aud + exp; cache JWKS for 1 hour and refetch on unknown kid (keys rotate monthly with a 45-day overlap).curl {issuer_url}/.well-known/openid-configuration returns the discovery document; curl -u "$AUTHPI_KEY_ID:$AUTHPI_KEY_SECRET" https://api.authpi.com/v1/accounts/{account_id}/issuers lists your issuer.Framework-specific, single-fetch versions of this recipe (install + env + code + verification):
/docs/quickstarts/nextjs.md/docs/quickstarts/hono.md/docs/quickstarts/typescript-backend.md@authpi/idp (npm), authpi-idp (PyPI)@authpi/admin (npm), authpi-admin (PyPI) — API keys go in as { id, secret } pairsFound a docs page that contradicts API behavior? That’s a bug we fix with priority — open an issue at https://github.com/arbfay/authpi or email contact@authpi.com.