How to connect Unleash to Toolspoke

Let your Toolspoke agents find feature flags, read their strategies and the event log, and optionally create flags, turn them on or off and add rollouts. A personal or service account token, your instance URL, and an agent that tracks your flags.

UUnleash toolkitFind, create and toggle feature flags, manage rollout strategies, and read the event log in Unleash.

Checked against Unleash's documentation on 2026-11-25.

Toolspoke's Unleash toolkit calls your instance's Admin API at <instance>/api/admin, with a personal access token or a service account token. It works the same for Unleash Cloud and for a self-hosted install. Once it's installed, any agent in the project can use it.

This guide sets it up so an agent can answer "is this flag on in production, for whom, and who changed it" before it can flip anything. Then it builds an agent that finds flags ready for cleanup. It takes about five minutes.

What an agent can do once it's connected

The toolkit has 15 named actions. Ten of them only read:

  • Projects: list_projects is where an agent starts, since every flag lives in a project. get_project_overview adds environments, member and flag counts, and health.
  • Flags: list_project_features lists a project's flags and where each is on. search_features searches across projects. get_feature reads one flag in full.
  • Strategies: list_feature_strategies lists who gets a flag in one environment, in evaluation order.
  • Reference data: list_environments, list_feature_types and list_segments.
  • History: search_events searches the event log for who created, changed, enabled or archived what, and when.

The other five change things:

ActionWhat it changesKind
create_featureCreates a flag. It starts off in every environmentWrite
enable_feature_environmentTurns a flag on in one environmentWrite
disable_feature_environmentTurns a flag off in one environmentWrite
add_feature_strategyAdds an activation strategy, such as a gradual rolloutWrite
archive_featureArchives a flag, so SDKs stop receiving it everywhereDestructive

Turning a flag on or off takes effect at once for every SDK connected to that environment. You decide which of these your agents may call (step 4).

What you need

  • Unleash 4.17 or later, where personal access tokens exist, at an HTTPS address Toolspoke can reach. Toolspoke refuses private-network addresses, so an instance only on your LAN or VPN won't work.
  • An Unleash account whose permissions match what agents should be able to do, or an admin who can create a service account (Enterprise).
  • A Toolspoke workspace, and a project to install the toolkit in.

Step 1: Decide whose permissions agents get

Unleash has no per-token scopes. A personal access token reflects the permissions of the user who created it, and follows them if they change. So the question is which user.

  • Your own token is quickest, but agents then act with everything you can do. If you're an Admin, that's every project and environment.
  • A dedicated user is better. Create one for Toolspoke with the Viewer root role if agents should only read, or Editor if they should create and toggle flags. Unleash describes Viewer as able to "only read root resources". Then sign in as that user to create the token.
  • A service account is the option Unleash recommends for integrations that shouldn't depend on one person. Service accounts are an Enterprise feature. An admin creates one under Admin settings → Service accounts → New service account, picks a root role, and creates its token there.
Unleash
  1. Admin settings
  2. Service accounts
  3. New service account
Name
Toolspoke
Username
toolspoke
Root role
Viewer
Options: Admin, Editor, Viewer
Enterprise only. You can create the token here, or add one later. Illustration of Unleash's screen. The labels are Unleash's; the layout is ours.

On Enterprise, custom root and project roles let you go narrower. The environment permission Enable/disable flags is the one that matters for the two toggle actions. Leave it out for production if agents should only touch development and staging.

Step 2: Create the token

For a personal access token, signed in as the user from step 1:

  1. Open your profile menu and choose View profile settings.
  2. Open Personal API tokens and choose New token.
  3. Give it a description, for example toolspoke, and an expiry. The choices are 7, 30 or 60 days, a custom date, or never. Unleash recommends setting one, and rejects requests with an expired token.
  4. Copy the token. Unleash can't show it again. If you lose it, create a new one.
Unleash
  1. Profile
  2. View profile settings
  3. Personal API tokens
  4. New token
Description
toolspoke
Expiry
60 days, or a date you choose
Copy the token straight away. Unleash can't show it again. Illustration of Unleash's screen. The labels are Unleash's; the layout is ours.

Don't use a backend or frontend token. Unleash makes those for SDKs, not for the Admin API the toolkit calls.

Step 3: Install the Unleash toolkit in Toolspoke

  1. In Toolspoke, open the project your agents work in. Find Unleash in the marketplace and add it.
  2. Paste the Personal access token from step 2. A service account token goes in the same field.
  3. Enter the Instance URL: the address you open Unleash at, with no trailing /api. Unleash Cloud addresses include your instance name, such as https://us.app.unleash-hosted.com/acme or https://eu.app.unleash-hosted.com/acme.
CredentialUnleash
Personal access token
••••••••••••••••
Unleash → your avatar → View profile settings → Personal API tokens → New token. The token acts with your own permissions. For an integration that should not depend on one person, an admin can instead create a service account token under Admin settings → Service accounts.
Instance URL
https://us.app.unleash-hosted.com/your-instance
The address you open Unleash at, with no trailing /api. Unleash Cloud addresses carry your instance name, e.g. https://us.app.unleash-hosted.com/acme or https://eu.app.unleash-hosted.com/acme, so there is no shared default. A self-hosted install is fine too.

list_projects answered. The credential works.

Save and test
The Unleash toolkit's credential card in your Toolspoke project, with its real fields.

Toolspoke checks the connection by listing projects. If that fails, see Troubleshooting.

The token is encrypted at rest and attached to each request by the gateway. The agent never sees it, and it never appears in the arguments an agent sends or in the audit log.

Step 4: Decide what agents may change

In the project's toolkit settings, Unleash's actions are grouped as read, write and destructive. Each one can be switched on or off for everyone in the project. An action that's switched off can't be called, whatever the prompt says.

A sensible start: leave the ten reads on, keep create_feature on (a new flag starts off everywhere, so it changes no running app), and switch off enable_feature_environment, disable_feature_environment, add_feature_strategy and archive_feature until the team has seen how it's used.

Unleash actions in your project

Agents can call 11 of 15, and 1 of those can change something.

Read
Looks, changes nothing.
  • list_projectsList the projects on this instance.
  • get_project_overviewRead one project's overview — its environments, member and flag counts, and health.
  • list_project_featuresList the feature flags in one project, with each flag's type and whether it is on in each environment.
  • search_featuresSearch feature flags across projects.
  • get_featureRead one feature flag in full — its type, description, and per-environment state with every strategy.
  • list_feature_strategiesList the activation strategies on a flag in one environment, in evaluation order.
  • list_environmentsList the environments defined on this instance, such as development and production.
  • list_feature_typesList the flag types — release, experiment, operational, kill-switch, permission — with the lifetime after which each is reported as potentially stale.
  • list_segmentsList the segments on this instance.
  • search_eventsSearch the event log — who created, changed, turned on or archived what, and when.
Write
Changes something you can change back.
  • create_featureCreate a feature flag in a project.
  • enable_feature_environmentTurn a flag on in one environment.
  • disable_feature_environmentTurn a flag off in one environment.
  • add_feature_strategyAdd an activation strategy to a flag in one environment.
Delete
Removes or overrides something for good.
  • archive_featureArchive a feature flag.
Try the switches. They start the way this guide suggests; nothing here changes your project.

If you use change requests (Enterprise) on production, Unleash doesn't allow direct changes to a flag's status there. Changes go into a change request instead, unless the user has the Skip change requests permission. Keep the Toolspoke user without that permission, and production stays behind your review process.

Every call is recorded with the agent and person behind it, the request, the response and the duration.

Step 5: Build an agent that uses it

In Toolspoke, create an agent and describe its job in one sentence. The builder proposes the instructions, the toolkits it needs, a schedule and where it should answer. You add or skip each one, then create the agent. Every piece stays editable afterwards.

It only reads, so it fits the actions left on in step 4. The same agent answers when someone asks it in Slack or emails it, and it replies in the thread it was asked in. If someone emails it, each write, such as creating a flag, waits for a person's go-ahead unless you've allowed that action in advance.

Try it

Ask the agent in Slack, by email or in its chat:

  • Is new-checkout on in production? Which strategies decide who gets it?
  • List the flags in the payments project that are on in development but off in production.
  • Who turned on search-v2 in production, and when?
  • Which release flags are on in every environment and could be cleaned up?
  • Create a release flag faster-invoices in the billing project, described as 'New invoice renderer'.
  • Add a 10% gradual rollout of faster-invoices in staging and turn it on there.

For a gradual rollout, the agent adds a flexibleRollout strategy with add_feature_strategy, then turns the flag on with enable_feature_environment. Both need switching on first. The Unleash toolkit page lists every action.

Troubleshooting

401 on every call.

The token is wrong or has expired, or it's a backend or frontend token rather than a personal or service account token. Unleash expects the raw token in the Authorization header with no Bearer prefix. Toolspoke sends it that way, so don't add the prefix yourself when pasting.

403 on writes, while reads work.

The token's user lacks the permission, for example a Viewer trying to toggle a flag, or a user without Enable/disable flags in that environment. Change the user's role, not the token. The token follows the user's permissions.

A toggle doesn't take effect in production.

Change requests are on for that environment. The change waits in a change request for approval.

404 on every call.

The instance URL is probably wrong. For Unleash Cloud it must include your instance name, and it must not end in /api.

A flag was archived by mistake.

Open the project's archived flags and revive it. Unleash brings revived flags back inactive, so turn it on again in each environment that had it.

Questions

Can an agent delete a flag permanently?

No. archive_feature archives it, and the toolkit has nothing that deletes from the archive. The toolkit has only the 15 actions above.

Does the agent see the token or my SDK tokens?

No. The token is attached by Toolspoke's gateway and never shown to the agent. None of the actions read API tokens, and Viewers can't view them anyway.

Can an agent change segments, projects or users?

No. It can list segments, but nothing in the toolkit edits them, projects, users or roles.

Connect Unleash to Toolspoke

Install Unleash in a project, give it to an agent, and every call is checked and logged.