> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Harness

> How to set up the Harness connector, plus the actions that are available.

![Harness](https://stackone-logos.com/api/harness/filled/svg)

v2.0.0[See changelog](https://docs.stackone.com/connectors/harness/changelog.md)

[152 actions](#actions) · 1 auth method

Developer Tools
IAM

## Getting Started

**1. Create or Select a Project**

Set up a new project or select an existing one. See [Organizations & Projects](https://docs.stackone.com/gateway/concepts/organizations-and-projects.md).

**2. Configure the Connector**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

> [card] [API Key · Connector Profile](https://docs.stackone.com/connectors/harness/guides/connector-profile/api-key.md)

**3. Link an Account**

Link an account [from the dashboard](https://docs.stackone.com/connect/managing-connectors/linking-accounts.md#link-from-the-dashboard) (or via [StackOne Hub](https://docs.stackone.com/embed/account-linking/overview)).

See the guide for the authentication type chosen in the Connector Profile:

> [card] [API Key · Link Account](https://docs.stackone.com/connectors/harness/guides/link-account/api-key.md)

**4. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Actions

152 actions

ActionDescription

Create SDK API Key`harness_create_apikey`

Create a new Feature Flags SDK API key for an environment. Use Server keys for backend SDKs and Client keys for frontend...

List SDK API Keys`harness_list_apikeys`

Retrieve all Feature Flags SDK API keys for a specific environment, including their type, name, and metadata.

Get SDK API Key`harness_get_apikey`

Retrieve detailed metadata for a specific SDK API key, including its type, name, and expiration status.

Delete SDK API Key`harness_delete_apikey`

Delete an SDK API key, immediately revoking access for all Feature Flag SDKs that use it.

Create Environment`harness_create_environment`

Create a new environment in a project to serve as a deployment target for feature flag targeting and release management.

Update Environment`harness_update_environment`

Update an existing environment by replacing all fields. Provide complete values for every field, not just the ones being...

List Environments`harness_list_environments`

Retrieve a paginated list of all environments in a project, providing the environment identifiers needed for feature fla...

Get Environment`harness_get_environment`

Retrieve full details for a specific environment by its identifier, including name, type, tags, and configuration metada...

Delete Environment`harness_delete_environment`

Delete an environment from a project, permanently removing all environment-specific feature flag states, targeting rules...

List Feature Flags`harness_list_features`

Retrieve all feature flags for a project with optional filtering by name, kind, status, and pagination support.

Create Feature Flag`harness_create_feature`

Create a new feature flag in a project with specified variations, kind, and default serving behavior.

Get Feature Flag`harness_get_feature`

Retrieve a single feature flag by identifier with full configuration details including variations, targeting rules, and...

Update Feature Flag`harness_update_feature`

Modify a feature flag using instruction-based patching to toggle state, update targeting rules, add targets to variation...

Delete Feature Flag`harness_delete_feature`

Delete a feature flag by identifier, removing it from the project and all SDK evaluations.

List Feature Flag Dependants`harness_list_feature_dependants`

List all feature flags that depend on the specified flag as a prerequisite.

Restore Feature Flag`harness_restore_feature`

Restore a previously deleted feature flag back to active state with its original configuration.

List FME Attributes`harness_list_fme_attributes`

List the attribute schema of an FME traffic type.

Save FME Attribute`harness_save_fme_attribute`

Create or fully overwrite an attribute on an FME traffic type.

Bulk Save FME Attributes`harness_bulk_save_fme_attributes`

Create or replace several attributes on an FME traffic type in one call.

Update FME Attribute`harness_update_fme_attribute`

Partially update an attribute on an FME traffic type.

Delete FME Attribute`harness_delete_fme_attribute`

Delete an attribute from an FME traffic type.

List FME Change Requests`harness_list_fme_change_requests`

List FME change requests for a project or environment.

Get FME Change Request`harness_get_fme_change_request`

Get one FME change request by ID.

Create FME Change Request`harness_create_fme_change_request`

Submit an FME change request for a feature flag or segment.

Update FME Change Request Status`harness_update_fme_change_request_status`

Approve, reject or withdraw an FME change request.

List FME Environments`harness_list_fme_environments`

List the FME environments in a project.

Create FME Environment`harness_create_fme_environment`

Create an FME environment in a project.

Update FME Environment`harness_update_fme_environment`

Update an FME environment with JSON Patch operations.

Delete FME Environment`harness_delete_fme_environment`

Delete an FME environment from a project.

Create FME SDK API Key`harness_create_fme_sdk_api_key`

Create a server-side or client-side SDK API key for an FME environment.

Delete FME SDK API Key`harness_delete_fme_sdk_api_key`

Revoke an FME SDK API key.

List FME Feature Flags`harness_list_fme_feature_flags`

List the FME feature flags in a project.

Get FME Feature Flag`harness_get_fme_feature_flag`

Get one FME feature flag by name.

Create FME Feature Flag`harness_create_fme_feature_flag`

Create an FME feature flag for a traffic type.

Update FME Feature Flag`harness_update_fme_feature_flag`

Update an FME feature flag description, tags or rollout status with JSON Patch operations.

Set FME Feature Flag Tags`harness_set_fme_feature_flag_tags`

Replace the tags on an FME feature flag.

Archive FME Feature Flag`harness_archive_fme_feature_flag`

Archive an FME feature flag.

Unarchive FME Feature Flag`harness_unarchive_fme_feature_flag`

Restore an archived FME feature flag.

Delete FME Feature Flag`harness_delete_fme_feature_flag`

Delete an FME feature flag from all environments.

List FME Feature Flag Definitions`harness_list_fme_feature_flag_definitions`

List the feature flag definitions (targeting) in an FME environment.

Get FME Feature Flag Definition`harness_get_fme_feature_flag_definition`

Get the definition (targeting) of one FME feature flag in an environment.

Create FME Feature Flag Definition`harness_create_fme_feature_flag_definition`

Configure an FME feature flag in an environment.

Replace FME Feature Flag Definition`harness_replace_fme_feature_flag_definition`

Fully replace the definition of an FME feature flag in an environment.

Update FME Feature Flag Definition`harness_update_fme_feature_flag_definition`

Update the definition of an FME feature flag in an environment with JSON Patch operations.

Remove FME Feature Flag Definition`harness_remove_fme_feature_flag_definition`

Remove an FME feature flag definition from an environment.

Kill FME Feature Flag`harness_kill_fme_feature_flag`

Kill an FME feature flag in an environment.

Restore FME Feature Flag`harness_restore_fme_feature_flag`

Restore a killed FME feature flag in an environment.

Reallocate FME Feature Flag Traffic`harness_reallocate_fme_feature_flag_traffic`

Reseed the bucketing of an FME feature flag in an environment.

List FME Flag Sets`harness_list_fme_flag_sets`

List the flag sets in an FME project.

Get FME Flag Set`harness_get_fme_flag_set`

Get one FME flag set by ID.

Create FME Flag Set`harness_create_fme_flag_set`

Create a flag set in an FME project.

Delete FME Flag Set`harness_delete_fme_flag_set`

Delete an FME flag set.

Save FME Identities`harness_save_fme_identities`

Create or overwrite several identities (keys and attribute values) in an FME environment.

Save FME Identity`harness_save_fme_identity`

Create or fully overwrite one identity in an FME environment.

Update FME Identity`harness_update_fme_identity`

Update some attribute values of one identity in an FME environment.

Delete FME Identity`harness_delete_fme_identity`

Delete one identity from an FME environment.

List FME Large Segments`harness_list_fme_large_segments`

List the large segments in an FME project.

List FME Environment Large Segments`harness_list_fme_environment_large_segments`

List the large segments enabled in an FME environment.

Get FME Large Segment`harness_get_fme_large_segment`

Get one FME large segment by name.

Create FME Large Segment`harness_create_fme_large_segment`

Create a large segment for a traffic type.

Enable FME Large Segment`harness_enable_fme_large_segment`

Enable a large segment in an FME environment.

Deactivate FME Large Segment`harness_deactivate_fme_large_segment`

Deactivate a large segment in an FME environment.

Delete FME Large Segment`harness_delete_fme_large_segment`

Delete a large segment from an FME project.

List FME Projects`harness_list_fme_projects`

List FME projects (formerly workspaces) with their FME workspace IDs.

List FME Rollout Statuses`harness_list_fme_rollout_statuses`

List the rollout statuses available in an FME project.

List FME Rule-based Segments`harness_list_fme_rule_based_segments`

List the rule-based segments in an FME project.

List FME Environment Rule-based Segments`harness_list_fme_environment_rule_based_segments`

List the rule-based segment definitions in an FME environment.

Get FME Rule-based Segment`harness_get_fme_rule_based_segment`

Get one FME rule-based segment by name.

Create FME Rule-based Segment`harness_create_fme_rule_based_segment`

Create a rule-based segment for a traffic type.

Enable FME Rule-based Segment`harness_enable_fme_rule_based_segment`

Enable a rule-based segment in an FME environment.

Update FME Rule-based Segment Definition`harness_update_fme_rule_based_segment_definition`

Set the rules and exclusions of a rule-based segment in an FME environment.

Deactivate FME Rule-based Segment`harness_deactivate_fme_rule_based_segment`

Remove a rule-based segment definition from an FME environment.

Delete FME Rule-based Segment`harness_delete_fme_rule_based_segment`

Delete a rule-based segment from an FME project.

List FME Segments`harness_list_fme_segments`

List the standard segments in an FME project.

List FME Environment Segments`harness_list_fme_environment_segments`

List the standard segments enabled in an FME environment.

Create FME Segment`harness_create_fme_segment`

Create a standard segment for a traffic type.

Enable FME Segment`harness_enable_fme_segment`

Enable a standard segment in an FME environment.

Deactivate FME Segment`harness_deactivate_fme_segment`

Deactivate a standard segment in an FME environment.

Delete FME Segment`harness_delete_fme_segment`

Delete a standard segment from an FME project.

List FME Segment Keys`harness_list_fme_segment_keys`

List the keys in a standard segment in an FME environment.

Add FME Segment Keys`harness_add_fme_segment_keys`

Add keys to a standard segment in an FME environment.

Remove FME Segment Keys`harness_remove_fme_segment_keys`

Remove keys from a standard segment in an FME environment.

List FME Traffic Types`harness_list_fme_traffic_types`

List the traffic types defined in an FME project.

Create FME Traffic Type`harness_create_fme_traffic_type`

Create a traffic type in an FME project.

Delete FME Traffic Type`harness_delete_fme_traffic_type`

Delete an FME traffic type.

Get Unified Credentials`harness_unified_get_me`

Retrieve information about the API key owner mapped to the StackOne IAM credentials schema.

List Unified Groups`harness_unified_list_groups`

List Harness user groups mapped to the StackOne IAM unified group schema.

Get Unified Group`harness_unified_get_group`

Retrieve a single Harness user group by identifier, mapped to the StackOne IAM unified group schema.

List Unified Organizations`harness_unified_list_organizations`

List Harness organizations within the account, mapped to the StackOne IAM unified organization schema.

Get Unified Organization`harness_unified_get_organization`

Retrieve a single Harness organization by identifier, mapped to the StackOne IAM unified organization schema.

List Unified Roles`harness_unified_list_roles`

List Harness roles (both built-in and custom) mapped to the StackOne IAM unified role schema.

Get Unified Role`harness_unified_get_role`

Retrieve a single Harness role by identifier, mapped to the StackOne IAM unified role schema.

List Unified Users`harness_unified_list_users`

List Harness users mapped to the StackOne IAM unified user schema, followed by account-level pending invitations with st...

Get Unified User`harness_unified_get_user`

Retrieve a single Harness user by UUID, or a pending invitation by the invitation\_ id unified\_list\_users returns, mapped...

List Invites`harness_list_invites`

Retrieve a paginated list of pending invitations at account, organization, or project scope, showing who has been invite...

Get Invite`harness_get_invite`

Retrieve a single pending invitation by its invite ID, returning the full invite details including email, role bindings,...

List Pending Users`harness_list_pending_users`

Retrieve a paginated list of pending (not yet accepted) user invitations with aggregated role assignment details, with o...

Resend Invite`harness_resend_invite`

Resend the invitation email for a pending invite that has not yet been accepted, optionally updating the invite's role b...

Delete Invite`harness_delete_invite`

Delete a pending invitation by its identifier, permanently canceling the invitation so the invitee can no longer accept...

List Organizations`harness_list_organizations`

Retrieve a paginated list of all organizations accessible under the authenticated account, with optional filtering by id...

Get Organization`harness_get_organization`

Retrieve the full details of a single organization by its unique identifier, including name, description, tags, and meta...

Create Organization`harness_create_organization`

Create a new organization in the Harness account with a unique identifier, name, and optional description and tags.

Update Organization`harness_update_organization`

Replace all fields of an existing organization. Provide values for every field, not just the fields being changed, as th...

Delete Organization`harness_delete_organization`

Permanently delete an organization and all its contained resources, including projects, feature flags, targets, and segm...

Create Project`harness_create_project`

Create a new project within an organization to serve as a container for feature flags, targets, segments, and other modu...

Update Project`harness_update_project`

Update an existing project by replacing all fields. Provide the complete project object with every field, not just the c...

List Projects`harness_list_projects`

Retrieve a paginated list of all projects the authenticated user is a member of, with optional filtering by organization...

Get Project`harness_get_project`

Retrieve the full details of a specific project by its unique identifier, including enabled modules, color, and tags.

Delete Project`harness_delete_project`

Permanently delete a project and all its contained resources including feature flags, targets, segments, and environment...

List Role Assignments`harness_list_role_assignments`

Retrieve a paginated list of role assignments at a given scope, showing which principals (users, user groups, service ac...

Get Role Assignment`harness_get_role_assignment`

Retrieve the full details of a single role assignment by its identifier, including the assigned role, resource group, pr...

Create Role Assignment`harness_create_role_assignment`

Assign a role to a principal (user, user group, or service account) within a resource group at a specific scope, grantin...

Delete Role Assignment`harness_delete_role_assignment`

Remove a role assignment, revoking the assigned role's permissions from the principal (user, user group, or service acco...

List Roles`harness_list_roles`

Retrieve a paginated list of roles with their permissions, scope levels, and assignment counts, with optional filtering...

Get Role`harness_get_role`

Retrieve the full details of a single role including its permission identifiers, allowed scope levels, and management me...

Create Role`harness_create_role`

Create a custom role with specific permissions and allowed scope levels for fine-grained access control.

Update Role`harness_update_role`

Update a role's name, permissions, scope levels, description, and tags via full replacement. Requires all fields to be p...

Delete Role`harness_delete_role`

Permanently delete a role by its identifier. Returns the deleted role object on success.

Create Target Group`harness_create_segment`

Create a new target group (segment) with explicit target inclusion/exclusion and rule-based targeting clauses for a give...

Update Target Group`harness_update_segment`

Modify a target group using instruction-based patch operations to add or remove included and excluded targets.

List Target Groups`harness_list_segments`

Retrieve all target groups (segments) for an environment with optional filtering by name or identifier and configurable...

Get Target Group`harness_get_segment`

Retrieve full details for a specific target group including its included/excluded targets, targeting rules, and version...

Delete Target Group`harness_delete_segment`

Delete a target group (segment) permanently from the specified environment, removing all target associations.

List Segment Flags`harness_list_segment_flags`

Retrieve all feature flags that reference the specified target group in their targeting rules.

List Service Accounts`harness_list_service_accounts`

Retrieve service accounts at account, organization, or project scope, resolving a service account's name or email to the...

Create Service Account`harness_create_service_account`

Create a service account at account, organization, or project scope, usable as a SERVICE\_ACCOUNT principal in role assig...

Delete Service Account`harness_delete_service_account`

Delete a service account by identifier, removing its role assignments and API keys.

Get Service Account`harness_get_service_account`

Retrieve a single service account by identifier, including its token count and role assignment metadata.

Update Service Account`harness_update_service_account`

Update a service account's name, email, description, or tags by replacing the full object.

Create Tag`harness_create_tag`

Create a new tag for organizing and categorizing feature flags within a project. Tags are auto-created when attached to...

List Tags`harness_list_tags`

Retrieve all tags available for categorizing feature flags in a given project and environment. Returns one row per tag-t...

Get Tag`harness_get_tag`

Retrieve a specific tag by identifier. Returns only the tag's identifier and name; to find which flags use the tag, call...

Delete Tag`harness_delete_tag`

Delete a tag and automatically remove it from all feature flags it was associated with.

Create Target`harness_create_target`

Create a new feature flag target representing a user, service, or entity for flag evaluation in a specific environment.

Modify Target`harness_modify_target`

Perform a full replacement update of a target, replacing its name, attributes, and all associations.

List Targets`harness_list_targets`

Retrieve a paginated list of all feature flag targets for a specific environment, with optional filtering and sorting.

Get Target`harness_get_target`

Retrieve the full details for a specific target, including its custom attributes and associated segments.

Delete Target`harness_delete_target`

Permanently remove a target from the environment, stopping all feature flag evaluations for this target.

Get Target Segments`harness_get_target_segments`

Retrieve all target groups (segments) that a specific target belongs to, including both explicit and rule-based membersh...

List User Groups`harness_list_user_groups`

Retrieve a paginated list of user groups at account, organization, or project scope, with optional filtering by name, sc...

Get User Group`harness_get_user_group`

Retrieve the full details of a single user group by its identifier, including the member user list, notification configu...

Create User Group`harness_create_user_group`

Create a new user group at account, organization, or project scope with optional initial members, notification channels,...

Update User Group`harness_update_user_group`

Update an existing user group via full replacement (PUT). All fields must be provided, not just the changed ones -- omit...

Delete User Group`harness_delete_user_group`

Permanently delete a user group by its identifier. Member users are not deleted from the account.

Add User To Group`harness_add_user_to_group`

Add a single user to an existing user group by their user UUID and group identifier. The user inherits all role assignme...

Remove User From Group`harness_remove_user_from_group`

Remove a single user from a user group by their user UUID and group identifier. The user's individual role assignments a...

List Users`harness_list_users`

Retrieve a paginated list of users in the account, organization, or project scope, with optional filtering by name, emai...

List Aggregated Users`harness_list_aggregated_users`

Retrieve users enriched with their role assignment metadata, including role names, resource groups, scope levels, and ma...

Get User`harness_get_user`

Retrieve a single user's full profile and role assignments by UUID, including every role binding with its resource group...

Add Users`harness_add_users`

Invite one or more users to the account, organization, or project by email address, with optional role bindings and user...

Update User`harness_update_user`

Update the authenticated caller's user profile by replacing the full user object. Call get\_user first, then resend all f...

Remove User`harness_remove_user`

Remove a user from the specified account, organization, or project scope, revoking all their role assignments and access...


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.