A useful workflow.
Where you need it.
A private server API and a small website widget for your paid organization.
Server-side API
Claim your purchase key from the dashboard. It is displayed once and stored only as a SHA-256 hash on our server. Keep it in your server environment. Never put a private key in browser code. Owners can revoke or rotate keys.
curl https://inrigpt.com/api/integration.php -H "Authorization: Bearer YOUR_PRIVATE_KEY" -H "Content-Type: application/json" -d '{"tool":"proposals","input":"YOUR SOURCE TEXT, 30–4000 CHARACTERS"}'Supported tools: proposals, knowledge, sales, content, and chat. The organization must have purchased the relevant workflow. Organization packages unlock all five. Inputs are sent to Cloudflare Workers AI; outputs are drafts for human review.
Hosted checkout link API
{"action":"checkout","product":"content"}POST this body to the same endpoint with your private API key. It returns a hosted checkout URL for that organization. The buyer signs in as an organization owner and pays on INRI GPT. Prices and payment verification stay on our server.
Website widget
In organization settings, enable the widget and set the exact HTTPS website origin. Copy the generated code into that website. The public widget ID is safe to expose; it is not your API key. Browsers on other origins are rejected. Like all public widgets, it can be accessed by visitors, so it has request limits and shares your organization quota.
<script async src="https://inrigpt.com/widget.js?v=2"
data-inrigpt-widget="YOUR_PUBLIC_WIDGET_ID"
data-tool="knowledge"></script>Limits and responses
Organization API allowance: 1,000 requests per minute. Single-service allowance: 60 requests per minute. Public widgets also limit each visitor to 3 requests per minute. Actual inference remains subject to Cloudflare’s free daily allocation, the account’s text-generation limit of 300 requests per minute, the free allocation of 10,000 neurons per day, and the current site safety budget of 1,000 purchased AI calls per UTC day. No guaranteed throughput. Status 401 means an invalid key, 403 means a missing entitlement or unauthorized origin, 429 means a usage limit, and 503 means a temporary provider error.
Shared company knowledge API
{"action":"knowledge","question":"What is our damaged delivery returns procedure?"}Use a private organization Bearer key with this body at POST /api/integration.php. The server finds matching excerpts in the organization document library and returns result, model, and sources with document IDs, titles, and excerpts. If no relevant excerpt is found, the server returns 422 without asking the model to guess. This action requires an active organization package and is unavailable through the public widget.
Usage API
{"action":"usage"}The same private organization endpoint returns usage: today_requests, today_successful, total_requests, minute_limit, and shared_daily_limit. This is metadata for AI attempts tracked since the workspace feature was enabled, rather than token billing. Both organization knowledge requests and normal private tool calls contribute to this report.
Shared team sources
The organization dashboard stores a shared text document library, conversations, and reusable prompt templates. The library allows up to 40 documents of 80,000 characters each. PDF and DOCX extraction runs in your browser. When you ask the library a question, keyword matching selects bounded excerpts to accompany your question. This source workflow does not train a model or automatically index Google Drive. The private knowledge API can use the shared library. The public widget accepts caller-supplied text and cannot read private company documents. Private API and widget access follow purchased tool entitlements and the published usage limits.
Google Workspace linking
Owners can link a verified Google Workspace account using OAuth with PKCE and only openid email profile permissions. We store the account identifier, email, and Workspace domain; we do not retain Google access or refresh tokens. This verifies a connection identity. It does not grant organization-wide Google administration or import Drive documents, Gmail, calendars, or employees. Those features need a separate integration and explicit Google permissions.