6.7 KiB
6.7 KiB
type.com REVERSE — API protocol (oRPC)
Reverse-engineered 2026-10-13. type.com = "Shared automations and agents for Claude and Codex" (Savvy Learn, Inc.).
Auth
- WorkOS AuthKit:
auth.type.com— email + OTP, then radar-challenge phone verification (SMS, mandatory for signup). - Frontend stores
authTokeninsessionStorage,workos:refresh-tokeninlocalStorage. - API auth:
Authorization: Bearer <authToken>(also acceptsauth_tokencookie ortokenquery param).
API base
POST https://api.type.com/api/orpc/<namespace>/<method>
Content-Type: application/json
Origin: https://type.com
Body: {"json": { ...payload }}
Responses: {"json": {...}} on success; validation errors return Zod-style issues (leaks full enum/pattern constraints — great for fuzzing).
Known endpoints
| Endpoint | Payload | Notes |
|---|---|---|
channels/getUserChannels |
{} |
→ [{id: "ch_...", ...}] |
messages/createMessage |
see below | 403 Add a credit card to your workspace before starting a new thread until card attached |
messages/getMessagesPaginated |
{channelId, limit: 25, direction: "backward"} |
poll for bot reply (isBotResponse, isStreaming, textContent, hasError) |
models/listModels |
{} |
catalog |
agents/listAgents |
{} |
|
sidekick/ensureMine |
{} |
personal agent |
billing/getStatus |
{} |
{billingProvider:"stripe", status:"type_trialing", trialEnd, canUpgrade, canManage...} |
billing/createCheckoutSession |
{tier} |
tier ∈ basic|pro|premium|enterprise|standard_50|premium_100|enterprise_250|enterprise_500|enterprise_750|test (test rejected). → {url} Stripe live checkout at pay.type.com |
usersAuth/getCodexAuth |
{} |
{codexAuth, codexFastModeSupported} — BYO ChatGPT/Codex link state |
usersAuth/startCodexDeviceAuth |
{} |
→ {sessionId} |
usersAuth/getCodexDeviceAuthStatus |
{sessionId} |
→ {userCode, verificationUrl, expiresAt, status} (OpenAI device flow, approve while logged into ChatGPT) |
createMessage payload (validated shape)
{"json": {
"id": "msg_<ULID26>", // /^msg_[0-7][0-9a-hjkmnp-tv-z]{25}$/ (Crockford base32, first char 0-7)
"channelId": "ch_...",
"parentMessageId": null, "subchannelId": null, "replyToId": null,
"content": {"version": "1.0", "blocks": [{"type": "paragraph", "children": [{"type": "text", "text": "..."}]}]},
"contentSchemaVersion": "1.0",
"textContent": "...",
"botName": null, "isBotResponse": false, "isStreaming": false, "hasError": false,
"fileIds": [], "timezone": "Europe/Kyiv",
"aiProvider": "openai|anthropic|google",
"modelId": "gpt-6.1-sol",
"triggerTimestamp": 1791855056000,
"responseIndex": 0,
"agentToggleEnabled": true,
"replyMode": "chat", // "chat" | "prompt"
"metadata": null
}}
Earlier probes also hit browserPreference enum (cloud|native) on some variants.
Reply = poll getMessagesPaginated, match bot message by replyToId/parentMessageId/triggerTimestamp/ULID ordering; done when isStreaming=false and textContent non-empty.
Model catalog (25)
- OpenAI/Codex:
gpt-6.1-sol(default),gpt-6-sol,gpt-6-luna,gpt-6-astra,gpt-5.5,gpt-5.6-sol/terra/luna,gpt-5.2-2025-12-11,gpt-5-mini-2025-08-07 - Anthropic:
claude-opus-5-5,claude-opus-5,claude-opus-4-8,claude-fable-5-1,claude-fable-5,claude-sonnet-5-5,claude-sonnet-5,claude-sonnet-4-6,claude-opus-4-5-20251101,claude-haiku-5-5,claude-haiku-4-5-20251001 - Google:
gemini-3-flash-preview,gemini-3-pro-preview,gemini-3.1-pro-preview
Billing / trial
- Fresh account:
type_trialing, 14 days free,trialEnd = signup + 14d. - Card gate: workspace cannot start ANY thread until a card is attached via Stripe checkout (
basic→ "Type Standard" $100 credits, $50/mo after trial; today $0.00). - Stripe live mode, merchant "Savvy Learn, Inc.", hosted at
pay.type.com. - BYO-codex: users can link their own ChatGPT (OpenAI device flow) —
codexflag per account.
Signup anti-bot
- WorkOS Signals: detects plain headless — use stealth browser (cloakbrowser class).
- Phone: mandatory SMS (radar-challenge/send). Free SMS pools (2nd-no.com class) work; ~3 numbers/account/3days limits apply per SMS-provider account.
- Email OTP: 6-digit, any mailbox (voidash.bond class temp mail OK).
Bot replies live in THREADS (verified 2026-10-13, paid trial)
messages/createMessage(top-level,parentMessageId: null) returns 200 and the Sidekick agent processes it, but the reply is NOT a top-level message.- Poll the thread instead:
messages/getMessagesPaginated {channelId, limit, direction:"backward", parentMessageId:<your msg id>}-> bot message id looks likemsg_bot_<yourid>_mention,isBotResponse:true,textContentset. - Typical reply latency: 5-45s depending on model.
billing/getCardRequirement {required:true}gates createMessage with 403 "Add a credit card to your workspace" until a card is attached viabilling/createCheckoutSession {tier:"standard_50"}-> Stripe live checkout.- Trial facts (Stripe, merchant Savvy Learn Inc): 14 days, $100 allowance + $10 credits, then $50/mo. Card check runs AFTER billing propagation (~1-2 min after checkout success).
- Workspace is shared per EMAIL DOMAIN (voidash.bond accounts all land in one workspace "voidash" and share billing/usage). New domain = new workspace = fresh trial.
- hCaptcha (invisible -> image challenge) protects the Stripe submit; headless automation gets the image grid, a real browser passes with a checkbox click.
- Verified models on trial: claude-sonnet-5-5, claude-haiku-4-5, claude-opus-5-5, gpt-6.1-sol, gemini-3-flash-preview (exact-reply test via API + via gateway).
Workspace / organization / billing scoping (verified 2026-10-13)
workspaces/create {name}-> 200, creates ws under the SAME organizationId.- Billing is ORGANIZATION-level: billing/getStatus ignores workspaceId payload and referer slug; second workspace of the same user shares the paid trial. Fresh trial requires a fresh ORGANIZATION = fresh account = fresh email domain.
- Workspace membership follows email domain at onboarding: all @voidash.bond signups auto-join one workspace (shared trial + shared $ usage, private sidekick channels).
- WorkOS Signals domain blocks: govno.eu.cc / musor.eu.cc / pomoi.eu.cc (tier-3) and voidash.cyou = "Доступ заблокирован, обратитесь в службу поддержки" at password step. voidash.bond and t-online.de pass.
- type_reg.py: VOID_DOMAIN env selects voidash domain;
python type_reg.py 1 tonlineregisters via the 17k t-online.de IMAP pool (real ISP mail, not domain-blocked).