API reference
One base URL, one token. Call any of 149 documented operations, or proxy a
real request to any of 3,700+ catalogued provider endpoints through /call/.
How a call works
You make the real upstream request — the provider's own path, its own parameters, its own response. treg injects the credential server-side and relays the answer verbatim. Nothing here models a provider's API, which is why an upstream change does not break us and why the caller never holds a secret.
curl -X POST -H "X-Treg-Token: $TREG_TOKEN" -H "content-type: application/json" \
-d '{"targets":["moz.com"]}' "https://treg.to/call/moz.web.url.metrics"
Prefix any catalogued endpoint id with /call/. If your team has its own key for that
provider, treg uses it and the call is not metered; otherwise eligible endpoints are served on
treg's key and metered against your prepaid balance at the provider's own rate.
Finding an endpoint
Search by what you want to do, not by vendor: GET /catalog/search?q=backlinks.
When several providers can do the same job, /catalog/platforms/{slug} lists them side by
side with measured success rate, speed and price. Choosing is yours — treg compares, but it
does not route between providers automatically and does not fail over.
The whole catalog is also browsable as pages: /catalog.
Other ways in
/llms.txt is the file to point a coding agent at — it teaches the whole
protocol in one fetch. curl -fsSL https://treg.to/install.sh | sh installs the CLI. The MCP
endpoint is at https://treg.to/mcp. An interactive console for everything below lives at
/docs/api.
Endpoints
Authenticated requests carry X-Treg-Token: <token>. Authorization: Bearer
authenticates only the MCP endpoint; REST ignores it (401 not authenticated), and
/call/ relays it to the provider like any other header, so never put your treg token there.
The catalog routes need no token.
/call/{rest}Call Tool
/call/{rest}Call Tool
/call/{rest}Call Tool
/call/{rest}Call Tool
/call/{rest}Call Tool
/call/{rest}Call Tool
/catalog/endpoints/{endpoint_id}Catalog Endpoint
/catalog/findCatalog Find
/catalog/platformsCatalog Platforms
/catalog/platforms/{slug}Catalog Platform
/catalog/searchCatalog Search
/agents/checkinAgent Checkin
/auth/cli-tokenAuth Cli Token
/auth/cli/approveAuth Cli Approve
/auth/cli/orgsAuth Cli Orgs
/auth/cli/pollAuth Cli Poll
/auth/cli/startAuth Cli Start
/auth/email/startAuth Email Start
/auth/email/verifyAuth Email Verify
/auth/githubAuth Github
/auth/github/callbackAuth Github Callback
/auth/googleAuth Google
/auth/google/callbackAuth Google Callback
/auth/invite-signinAuth Invite Signin
/auth/invite-signinAuth Invite Signin Confirm
/auth/logoutAuth Logout
/auth/meAuth Me
/auth/revoke-tokensAuth Revoke Tokens
/billingBilling Get
/billing/autotopupBilling Autotopup
/billing/historyBilling History
/billing/portalBilling Portal
/billing/topupBilling Topup
/bundlesList Bundles
/bundles/by-name/{name}Get Bundle By Name
/bundles/{bundle_id}Delete Bundle
/bundles/{bundle_id}Get Bundle
/bundles/{bundle_id}Update Bundle
/callsList Calls
/calls/{call_id}/resultGet Call Result
/calls/{call_ref}Get Call
/connectionsList Connections
/connections/tokenConnect With Token
/connections/{secret_id}Revoke Connection
/connections/{secret_id}/extra-credentialSet Extra Credential
/connections/{secret_id}/resourceSet Connection Resource
/connections/{secret_id}/resourcesConnection Resources
/demo/sandboxDemo Sandbox Mint
/demo/sandbox/liveDemo Sandbox Live
/demo/sandbox/skillDemo Sandbox Skill
/feedbackSubmit Feedback
/feedback/{feedback_id}Get Feedback
/healthGet Health
/health/runRun Health
/hub/runRun Hub Folder
/hub/runs/{run_id}Hub Run
/hub/toolsPublish Hub Tool
/hub/tools/mineMy Hub Tools
/hub/tools/{tool_id}Retire Hub Tool
/hub/tools/{tool_id}Get Hub Tool
/hub/tools/{tool_id}Set Hub Tool Price
/hub/tools/{tool_id}Update Hub Tool
/hub/tools/{tool_id}/earningsHub Tool Earnings
/hub/tools/{tool_id}/healthHub Tool Health
/invites/acceptAccept Invite
/invites/mineMy Invites
/invites/{invite_id}/acceptAccept My Invite
/mediaHost Media
/metaMeta
/oauth/callbackOauth Callback
/oauth/providersOauth Providers List
/oauth/startOauth Start
/oauth/status/{state}Oauth Status
/onboard/accept-teammateOnboard Accept Teammate
/onboard/demoOnboard Demo
/onboard/resetOnboard Reset
/onboard/seed-toolOnboard Seed Tool
/onboard/skipOnboard Skip
/orgsList Orgs
/orgsCreate Org
/orgs/{org_id}Delete Org
/orgs/{org_id}Rename Org
/orgs/{org_id}/agentsList Agents
/orgs/{org_id}/agentsCreate Agent
/orgs/{org_id}/agents/observedList Observed Agents
/orgs/{org_id}/agents/{user_id}Revoke Agent
/orgs/{org_id}/api-keysList Api Keys
/orgs/{org_id}/api-keysCreate Api Key
/orgs/{org_id}/api-keys/{key_id}Rename Api Key
/orgs/{org_id}/api-keys/{key_id}/disableDisable Api Key
/orgs/{org_id}/api-keys/{key_id}/enableEnable Api Key
/orgs/{org_id}/api-keys/{key_id}/eventsList Api Key Events
/orgs/{org_id}/api-keys/{key_id}/hideHide Api Key
/orgs/{org_id}/api-keys/{key_id}/revokeRevoke Api Key
/orgs/{org_id}/api-keys/{key_id}/rotateRotate Api Key
/orgs/{org_id}/balanceOrg Balance
/orgs/{org_id}/budgetsList Tag Budgets
/orgs/{org_id}/budgets/{dim}Set Tag Default
/orgs/{org_id}/budgets/{dim}/{val}Delete Tag Budget
/orgs/{org_id}/budgets/{dim}/{val}Set Tag Budget
/orgs/{org_id}/denyList Deny Rules
/orgs/{org_id}/denyCreate Deny Rule
/orgs/{org_id}/deny/{rule_id}Delete Deny Rule
/orgs/{org_id}/invitesList Invites
/orgs/{org_id}/invitesCreate Invite
/orgs/{org_id}/invites/{invite_id}Revoke Invite
/orgs/{org_id}/leaveLeave Org
/orgs/{org_id}/membersList Members
/orgs/{org_id}/members/{user_id}Remove Member
/orgs/{org_id}/members/{user_id}Set Member Role
/orgs/{org_id}/members/{user_id}/accessSet Member Access
/orgs/{org_id}/members/{user_id}/capSet Member Cap
/orgs/{org_id}/pinsClear Capability Pin
/orgs/{org_id}/pinsList Capability Pins
/orgs/{org_id}/pinsSet Capability Pin
/orgs/{org_id}/policy/cli-denyList Cli Deny
/orgs/{org_id}/projectsList Projects
/orgs/{org_id}/projectsCreate Project
/orgs/{org_id}/projects/{project_id}Delete Project
/orgs/{org_id}/provider-resourcesList Provider Resources
/orgs/{org_id}/public-tokenDelete Public Token
/orgs/{org_id}/public-tokenCreate Public Token
/orgs/{org_id}/settingsGet Org Settings
/orgs/{org_id}/settingsSet Org Settings
/orgs/{org_id}/tag-keysList Tag Keys
/orgs/{org_id}/usageOrg Usage
/orgs/{org_id}/usage/by-tagUsage By Tag
/referralsMy Referrals
/referrals/codeMint Referral Code
/reviewsSubmit Review
/runRun Tool Server
/runsList Runs
/secretsList Secrets
/secretsCreate Secret
/secrets/{secret_id}Delete Secret
/secrets/{secret_id}Update Secret
/skillsRegister Skill
/skills/analyzeAnalyze Skill Folder
/skills/importImport Skill Folder
/skills/samplesSkill Samples
/toolsList Tools
/toolsCreate Tool
/tools/by-name/{name}Get Tool By Name
/tools/{name}/grantGrant Local Run
/tools/{name}/run-reportReport Local Run
/tools/{tool_id}Delete Tool
/tools/{tool_id}Update Tool
/usage/meMy Usage
/usersRegister User