Skip to docs navigation

treg integration guide

Verified

How to connect treg to WEXTL and use its 104 actions in your workflows. About treg: Agent tool gateway that calls thousands of data and AI tools with one token.

  • 54 searches
  • 50 actions
  • Polling
  • Auth: API key

AI-assisted documentation14 min read

This documentation is compiled from our integration source code, internal specs for treg, its official API documentation and anonymized requests logs we collect from our support team[2].

Open treg on WEXTL →
  • treg
  • API KeypasswordRequired

    Create an API key in the dashboard for your team and paste it here.[1]

  • Team Slugtext

    The slug of your team. Only needed if you paste a personal sign-in token. A team key already carries its team.[1]

  1. Log in to your WEXTL account, add the treg node module to your workflow, and click Create new credential.
  2. Optional: In the Credential name field, enter a name for the credential.
  3. Enter the authentication credentials you copied from your treg account, or follow the on-screen instructions to create the credential.
  4. If prompted, authenticate your account and confirm access.
  5. If you want to make changes to your credential in the future, follow the steps in Manage credentials →

Find Catalog Tools

SearchMatches tools on a chosen shelf.
Input fields[3]
FieldType
Search Texttext
Platformtext
Output fields[3]
FieldType
Itemsarray

Get a Bundle

SearchOpens a bundle in full.
Input fields[3]
FieldType
Bundle IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Bundle by Name

SearchFetches the recipe and members of a named bundle.
Input fields[3]
FieldType
Bundle NameRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Call

SearchLooks up a call by its ID.
Input fields[3]
FieldType
Call IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Call Result

SearchRecovers the saved answer of a call.
Input fields[3]
FieldType
Call IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Catalog Endpoint

SearchDetails one endpoint before calling it.
Input fields[3]
FieldType
Endpoint IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Catalog Platform

SearchOpens a single platform shelf.
Input fields[3]
FieldType
Platform SlugRequired
text
Include Hiddenboolean
Output fields[3]
FieldType
Itemsarray

Get a Catalog Provider

SearchDescribes one provider and its tools.
Input fields[3]
FieldType
ProviderRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Hub Run

SearchChecks the outcome of a hub run.
Input fields[3]
FieldType
Run IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Hub Tool

SearchLoads a hub tool in full.
Input fields[3]
FieldType
Hub Tool IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get a Spend Report

SearchCharts spend over a time window.
Input fields[3]
FieldType
TeamRequired
choice
Fromtext
Totext
Groupchoice
API Key IDnumber
Providertext
Stack Bychoice
Output fields[3]
FieldType
Itemsarray

Get a Tag Usage Report

SearchSplits spend per tag value.
Input fields[3]
FieldType
TeamRequired
choice
Tag Keytext
Daysnumber
Output fields[3]
FieldType
Itemsarray

Get a Tool by Name

SearchLocates a registered tool from its call name.
Input fields[3]
FieldType
Tool NameRequired
text
Output fields[3]
FieldType
Itemsarray

Get an Agent Connection

SearchReads how an agent connects.
Input fields[3]
FieldType
TeamRequired
choice
Agent IDRequired
text
API Key IDRequired
number
Output fields[3]
FieldType
Itemsarray

Get API Key Spend

SearchBreaks spend down per API key.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

Get Billing

SearchReads credit and top-up state.
Output fields[3]
FieldType
Itemsarray

Get Billing History

SearchPages through ledger rows.
Input fields[3]
FieldType
Limitnumber
Kindchoice
Cursortext
Output fields[3]
FieldType
Itemsarray

Get Catalog Totals

SearchGives catalog size and service version.
Output fields[3]
FieldType
Itemsarray

Get My Usage

SearchReads your personal usage.
Output fields[3]
FieldType
Itemsarray

Get Team Settings

SearchReads how a team is configured.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

Get Team Usage

SearchTotals team usage over recent days.
Input fields[3]
FieldType
TeamRequired
choice
Daysnumber
Output fields[3]
FieldType
Itemsarray

Get the Activity Feed

SearchPages through team activity.
Input fields[3]
FieldType
Limitnumber
Beforetext
API Key IDnumber
Output fields[3]
FieldType
Itemsarray

Get the Hub Tool Health

SearchShows whether a hub tool still works.
Input fields[3]
FieldType
Hub Tool IDRequired
text
Output fields[3]
FieldType
Itemsarray

Get the Provider Health

SearchShows which providers are up or failing.
Output fields[3]
FieldType
Itemsarray

Get the Team Balance

SearchShows remaining credit and the latest ledger.
Input fields[3]
FieldType
TeamRequired
choice
Limitnumber
Offsetnumber
Output fields[3]
FieldType
Itemsarray

Get the Team First Call

SearchFinds the earliest call made on a team.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Admins

SearchReads the team administrators.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Agents

SearchShows the machine users of a team.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List API Key Events

SearchGives the audit trail of an API key.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

List API Keys

SearchShows every API key of one team.
Input fields[3]
FieldType
TeamRequired
choice
Include Hiddenchoice
Output fields[3]
FieldType
Itemsarray

List Bundles

SearchShows the bundles and their recipes.
Output fields[3]
FieldType
Itemsarray

List Calls

SearchPages through recent calls with their cost.
Input fields[3]
FieldType
Limitnumber
Daysnumber
Before IDnumber
API Key IDnumber
Output fields[3]
FieldType
Itemsarray

List Capability Pins

SearchShows the capability to provider pins.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Catalog Platforms

SearchBrowses the catalog by shelf.
Output fields[3]
FieldType
Itemsarray

List CLI Denied Commands

SearchReads the CLI block list.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Connection Resources

SearchReads resources behind a connection.
Input fields[3]
FieldType
Connection IDRequired
text
Output fields[3]
FieldType
Itemsarray

List Connections

SearchReads connected provider accounts.
Output fields[3]
FieldType
Itemsarray

List Deny Rules

SearchReads the call block rules.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Hub Tool Earnings

SearchAdds up revenue of a hub tool.
Input fields[3]
FieldType
Hub Tool IDRequired
text
Daysnumber
Output fields[3]
FieldType
Itemsarray

List Invites

SearchShows open team invitations.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Members

SearchReads the people on a team.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List My Hub Tools

SearchShows the tools you publish on the hub.
Output fields[3]
FieldType
Itemsarray

List My Invites

SearchReads invitations sent to you.
Output fields[3]
FieldType
Itemsarray

List My Referrals

SearchReads your referral results.
Output fields[3]
FieldType
Itemsarray

List OAuth Providers

SearchReads providers with OAuth sign-in.
Output fields[3]
FieldType
Itemsarray

List Observed Agents

SearchReads agents seen in the call log.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Projects

SearchReads the project list of a team.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Provider Resources

SearchReads reachable provider resources.
Input fields[3]
FieldType
TeamRequired
choice
Providertext
Kindtext
Include Deletedchoice
Sourcechoice
Output fields[3]
FieldType
Itemsarray

List Runs

SearchShows registered tool runs, newest first.
Input fields[3]
FieldType
Limitnumber
API Key IDnumber
Output fields[3]
FieldType
Itemsarray

List Secrets

SearchReads stored secret names.
Output fields[3]
FieldType
Itemsarray

List Tag Budgets

SearchReads per-tag spend limits.
Input fields[3]
FieldType
TeamRequired
choice
Dimensiontext
Output fields[3]
FieldType
Itemsarray

List Tag Keys

SearchReads tag names in use.
Input fields[3]
FieldType
TeamRequired
choice
Output fields[3]
FieldType
Itemsarray

List Tools

SearchReads your registered tools.
Output fields[3]
FieldType
Itemsarray

Search the Catalog

SearchFinds catalog tools for a task.
Input fields[3]
FieldType
Search Texttext
Limitnumber
Added Within Daysnumber
Sorttext
Enginetext
Output fields[3]
FieldType
Itemsarray

Accept an Invite

ActionJoins a team through an invitation.
Input fields[3]
FieldType
Invite IDRequired
text
Output fields[3]
FieldType
Itemsarray

Call Tool

ActionRuns one catalog tool and reports what it cost.
Input fields[3]
FieldType
Tool IDRequired
text
MethodRequired
choice
Query Stringarray
Parameterobject
Bodytext
Max Cost USDnumber
Strict Filtersboolean
Complete Fieldsboolean
Domain Matchchoice
Idempotency Keytext
Output fields[3]
FieldType
Bodytext
Statusnumber
Cost Micronumber
Call IDtext
Replayedboolean
Idempotency Keytext

Clear a Capability Pin

ActionReleases a pinned capability.
Input fields[3]
FieldType
TeamRequired
choice
CapabilityRequired
text
Output fields[3]
FieldType
Itemsarray

Connect With a Token

ActionProvider connection made from a token.
Input fields[3]
FieldType
ProviderRequired
text
TokenRequired
secret
Output fields[3]
FieldType
Itemsarray

Create a Deny Rule

ActionAdds a rule that blocks matching calls.
Input fields[3]
FieldType
TeamRequired
choice
Hosttext
Path Prefixtext
Methodtext
User IDnumber
Project IDnumber
Notetext
Output fields[3]
FieldType
Itemsarray

Create a Project

ActionStarts a new project for grouping spend.
Input fields[3]
FieldType
TeamRequired
choice
NameRequired
text
Output fields[3]
FieldType
Itemsarray

Create a Secret

ActionSaves a secret for tools to use.
Input fields[3]
FieldType
NameRequired
text
ValueRequired
secret
Kindtext
Bundle IDnumber
Output fields[3]
FieldType
Itemsarray

Create a Team

ActionFounds a team under your account.
Input fields[3]
FieldType
NameRequired
text
Output fields[3]
FieldType
Itemsarray

Create a Tool

ActionRegisters one of your own APIs as a tool.
Input fields[3]
FieldType
NameRequired
text
Base URLRequired
text
Bundle IDnumber
Bindingstext
Secret IDnumber
Injectortext
Auth Intext
Auth Nametext
Auth Formattext
Secret Fieldtext
Health Checktext
Examplestext

2other input fields

Output fields[3]
FieldType
Itemsarray

Create an Agent

ActionAdds an agent user to a team.
Input fields[3]
FieldType
TeamRequired
choice
NameRequired
text
Roletext
Daily Call Capnumber
Daily Spend Capnumber
Tool Accessarray
Project Accessarray
Local Run Enabledboolean
Promoted Membertext
Promoted Clienttext
Pinned Tagstext
Output fields[3]
FieldType
Itemsarray

Create an API Key

ActionMints a team API key and shows it once.
Input fields[3]
FieldType
TeamRequired
choice
NameRequired
text
Output fields[3]
FieldType
Itemsarray

Create an Invite

ActionSends a team invitation by email address.
Input fields[3]
FieldType
TeamRequired
choice
EmailRequired
text
Roletext
Expires in Daysnumber
Tool Accessarray
Project Accessarray
Local Run Enabledboolean
Landingtext
Output fields[3]
FieldType
Itemsarray

Delete a Bundle

ActionDissolves a bundle of tools.
Input fields[3]
FieldType
Bundle IDRequired
text
Output fields[3]
FieldType
Itemsarray

Delete a Deny Rule

ActionLifts a call block rule.
Input fields[3]
FieldType
TeamRequired
choice
Rule IDRequired
text
Output fields[3]
FieldType
Itemsarray

Delete a Project

ActionDeletes a project but keeps its spend history.
Input fields[3]
FieldType
TeamRequired
choice
Project IDRequired
text
Output fields[3]
FieldType
Itemsarray

Delete a Secret

ActionClears a credential value held by treg.
Input fields[3]
FieldType
Secret IDRequired
text
ConfirmRequired
boolean
Output fields[3]
FieldType
Itemsarray

Delete a Tag Budget

ActionClears a tag value budget.
Input fields[3]
FieldType
TeamRequired
choice
DimensionRequired
text
Tag ValueRequired
text
Output fields[3]
FieldType
Itemsarray

Delete a Tool

ActionWithdraws a registered API from treg.
Input fields[3]
FieldType
Tool IDRequired
text
Output fields[3]
FieldType
Itemsarray

Disable an API Key

ActionPauses an API key until you re-enable it.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

Enable an API Key

ActionRe-activates a paused API key.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

Hide an API Key

ActionDeclutters the key list without revoking.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

Host Media

ActionHosts a file at a public link.
Input fields[3]
FieldType
FileRequired
text
Content TypeRequired
text
Output fields[3]
FieldType
Itemsarray

Make an API Call

universalYour own treg REST API request.
Input fields[3]
FieldType
URLRequired
text
MethodRequired
choice
Headersarray
Headerobject
Query Stringarray
Parameterobject
Bodytext
Output fields[3]
FieldType
Bodytext
Headersobject
Status Codenumber

Mint a Referral Code

ActionIssues your shareable referral code.
Output fields[3]
FieldType
Itemsarray

Pin a Capability to a Provider

ActionFixes the provider behind a capability.
Input fields[3]
FieldType
TeamRequired
choice
CapabilityRequired
text
ProviderRequired
text
Output fields[3]
FieldType
Itemsarray

Publish a Hub Tool

ActionPuts a tool folder on the hub.
Input fields[3]
FieldType
ManifestRequired
text
Scripttext
CheckRequired
text
ReadmeRequired
text
Datatext
Output fields[3]
FieldType
Itemsarray

Remove a Member

ActionLets a person go from a team.
Input fields[3]
FieldType
TeamRequired
choice
User IDRequired
text
Output fields[3]
FieldType
Itemsarray

Rename a Connection

ActionRelabels a provider connection.
Input fields[3]
FieldType
Connection IDRequired
text
NameRequired
text
Output fields[3]
FieldType
Itemsarray

Rename an API Key

ActionRelabels an API key by service or owner.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
NameRequired
text
Output fields[3]
FieldType
Itemsarray

Replace a Hub Tool

ActionSwaps a hub tool for a new folder.
Input fields[3]
FieldType
Hub Tool IDRequired
text
ManifestRequired
text
Scripttext
CheckRequired
text
ReadmeRequired
text
Datatext
Output fields[3]
FieldType
Itemsarray

Retire a Hub Tool

ActionTakes a hub tool offline.
Input fields[3]
FieldType
Hub Tool IDRequired
text
Output fields[3]
FieldType
Itemsarray

Revoke a Connection

ActionDisconnects a provider and its credential.
Input fields[3]
FieldType
Connection IDRequired
text
ConfirmRequired
boolean
Output fields[3]
FieldType
Itemsarray

Revoke an Agent

ActionRemoves an agent user.
Input fields[3]
FieldType
TeamRequired
choice
Agent IDRequired
text
Output fields[3]
FieldType
Itemsarray

Revoke an API Key

ActionEnds an API key beyond recovery.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

Revoke an Invite

ActionWithdraws an unused team invitation.
Input fields[3]
FieldType
TeamRequired
choice
Invite IDRequired
text
Output fields[3]
FieldType
Itemsarray

Rotate an API Key

ActionGives an API key a fresh secret.
Input fields[3]
FieldType
TeamRequired
choice
API Key IDRequired
text
Output fields[3]
FieldType
Itemsarray

Run a Hub Folder

ActionTest-runs a folder before publishing.
Input fields[3]
FieldType
ManifestRequired
text
Scripttext
CheckRequired
text
ReadmeRequired
text
Datatext
Inputstext
Output fields[3]
FieldType
Itemsarray

Set a Connection Resource

ActionSets the default resource behind a credential.
Input fields[3]
FieldType
Connection IDRequired
text
Resource ReferenceRequired
text
Resource Nametext
Output fields[3]
FieldType
Itemsarray

Set a Hub Tool Price

ActionEdits price and visibility of a hub tool.
Input fields[3]
FieldType
Hub Tool IDRequired
text
Price USDnumber
Listedchoice
Public Logchoice
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Set a Member Call Cap

ActionLimits one member to a number of calls a day.
Input fields[3]
FieldType
TeamRequired
choice
User IDRequired
text
Daily Call CapRequired
number
Output fields[3]
FieldType
Itemsarray

Set a Member Role

ActionChanges the permission level of a teammate.
Input fields[3]
FieldType
TeamRequired
choice
User IDRequired
text
RoleRequired
text
Output fields[3]
FieldType
Itemsarray

Set a Member Spend Cap

ActionLimits a member to a daily spend amount.
Input fields[3]
FieldType
TeamRequired
choice
User IDRequired
text
Daily Spend Capnumber
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Set a Tag Budget

ActionOverrides the budget of one tag value.
Input fields[3]
FieldType
TeamRequired
choice
DimensionRequired
text
Tag ValueRequired
text
Daily Capnumber
Monthly Capnumber
Calls per Daynumber
Statustext
Notetext
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Set a Tag Default Budget

ActionSets default limits for a tag dimension.
Input fields[3]
FieldType
TeamRequired
choice
DimensionRequired
text
Daily Capnumber
Monthly Capnumber
Calls per Daynumber
Statustext
Notetext
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Set an Extra Credential

ActionAttaches a second secret to a connection.
Input fields[3]
FieldType
Connection IDRequired
text
ValueRequired
secret
Output fields[3]
FieldType
Itemsarray

Set Member Access

ActionEdits what a member may reach.
Input fields[3]
FieldType
TeamRequired
choice
User IDRequired
text
Tool Accessarray
Project Accessarray
Local Run Enabledchoice
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Set Team Settings

ActionEdits team caps and feature switches.
Input fields[3]
FieldType
TeamRequired
choice
Daily Capnumber
Member Daily Spend Capnumber
Platform Overflowchoice
Archivechoice
Budget Dimensionsarray
Primary Dimensiontext
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Update a Bundle

ActionRewrites what a bundle describes.
Input fields[3]
FieldType
Bundle IDRequired
text
Recipetext
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Update a Secret

ActionEdits a stored secret.
Input fields[3]
FieldType
Secret IDRequired
text
Nametext
Valuesecret
Kindtext
Output fields[3]
FieldType
Itemsarray

Update a Tool

ActionChanges a registered tool.
Input fields[3]
FieldType
Tool IDRequired
text
Nametext
Base URLtext
Bindingstext
Health Checktext
Examplestext
CLItext
Projecttext
Clear Fieldschoice
Output fields[3]
FieldType
Itemsarray

Look for treg templates in the WEXTL template library.

Browse templates →
  1. WEXTL® treg Source Code connector implementation.
  2. Our users use cases and automations.
  3. Official API Documentation for treg.
  4. WEXTL® visual workflow builder data.

Last updated: Nov 29, 2026 17:02

How we write our apps documentation

How we compile these docs: sources, the role of AI, and how we verify.