Harness
69 actions · 1 auth method
PreviewIAM
Authentication
API Key
Guides: Connector Profile, Link Account
Actions
69 actions
Action
Description
Create SDK API Key
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
Retrieve all Feature Flags SDK API keys for a specific environment, including their type, name, and metadata.
Get SDK API Key
Retrieve detailed metadata for a specific SDK API key, including its type, name, and expiration status.
Delete SDK API Key
Delete an SDK API key, immediately revoking access for all Feature Flag SDKs that use it.
Create Environment
Create a new environment in a project to serve as a deployment target for feature flag targeting and release management.
Update Environment
Update an existing environment by replacing all fields. Provide complete values for every field, not just the ones being…
List Environments
Retrieve a paginated list of all environments in a project, providing the environment identifiers needed for feature fla…
Get Environment
Retrieve full details for a specific environment by its identifier, including name, type, tags, and configuration metada…
Delete Environment
Delete an environment from a project, permanently removing all environment-specific feature flag states, targeting rules…
List Feature Flags
Retrieve all feature flags for a project with optional filtering by name, kind, status, and pagination support.
Create Feature Flag
Create a new feature flag in a project with specified variations, kind, and default serving behavior.
Get Feature Flag
Retrieve a single feature flag by identifier with full configuration details including variations, targeting rules, and…
Update Feature Flag
Modify a feature flag using instruction-based patching to toggle state, update targeting rules, add targets to variation…
Delete Feature Flag
Delete a feature flag by identifier, removing it from the project and all SDK evaluations.
List Feature Flag Dependants
List all feature flags that depend on the specified flag as a prerequisite.
Restore Feature Flag
Restore a previously deleted feature flag back to active state with its original configuration.
List Invites
Retrieve a paginated list of pending invitations at account, organization, or project scope, showing who has been invite…
Get Invite
Retrieve a single pending invitation by its invite ID, returning the full invite details including email, role bindings,…
List Pending Users
Retrieve a paginated list of pending (not yet accepted) user invitations with aggregated role assignment details, with o…
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
Delete a pending invitation by its identifier, permanently canceling the invitation so the invitee can no longer accept…
List Organizations
Retrieve a paginated list of all organizations accessible under the authenticated account, with optional filtering by id…
Get Organization
Retrieve the full details of a single organization by its unique identifier, including name, description, tags, and meta…
Create Organization
Create a new organization in the Harness account with a unique identifier, name, and optional description and tags.
Update Organization
Replace all fields of an existing organization. Provide values for every field, not just the fields being changed, as th…
Delete Organization
Permanently delete an organization and all its contained resources, including projects, feature flags, targets, and segm…
Create Project
Create a new project within an organization to serve as a container for feature flags, targets, segments, and other modu…
Update Project
Update an existing project by replacing all fields. Provide the complete project object with every field, not just the c…
List Projects
Retrieve a paginated list of all projects the authenticated user is a member of, with optional filtering by organization…
Get Project
Retrieve the full details of a specific project by its unique identifier, including enabled modules, color, and tags.
Delete Project
Permanently delete a project and all its contained resources including feature flags, targets, segments, and environment…
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
Retrieve the full details of a single role assignment by its identifier, including the assigned role, resource group, pr…
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
Remove a role assignment, revoking the assigned role’s permissions from the principal (user, user group, or service acco…
List Roles
Retrieve a paginated list of roles with their permissions, scope levels, and assignment counts, with optional filtering…
Get Role
Retrieve the full details of a single role including its permission identifiers, allowed scope levels, and management me…
Create Role
Create a custom role with specific permissions and allowed scope levels for fine-grained access control.
Update Role
Update a role’s name, permissions, scope levels, description, and tags via full replacement. Requires all fields to be p…
Delete Role
Permanently delete a role by its identifier. Returns the deleted role object on success.
Create Target Group
Create a new target group (segment) with explicit target inclusion/exclusion and rule-based targeting clauses for a give…
Update Target Group
Modify a target group using instruction-based patch operations to add or remove included and excluded targets.
List Target Groups
Retrieve all target groups (segments) for an environment with optional filtering by name or identifier and configurable…
Get Target Group
Retrieve full details for a specific target group including its included/excluded targets, targeting rules, and version…
Delete Target Group
Delete a target group (segment) permanently from the specified environment, removing all target associations.
List Segment Flags
Retrieve all feature flags that reference the specified target group in their targeting rules.
Create Tag
Create a new tag for organizing and categorizing feature flags within a project. Tags are auto-created when attached to…
List Tags
Retrieve all tags available for categorizing feature flags in a given project and environment. Supports filtering by tag…
Get Tag
Retrieve detailed information for a specific tag, including the feature flags associated with it.
Delete Tag
Delete a tag and automatically remove it from all feature flags it was associated with.
Create Target
Create a new feature flag target representing a user, service, or entity for flag evaluation in a specific environment.
Modify Target
Perform a full replacement update of a target, replacing its name, attributes, and all associations.
List Targets
Retrieve a paginated list of all feature flag targets for a specific environment, with optional filtering and sorting.
Get Target
Retrieve the full details for a specific target, including its custom attributes and associated segments.
Delete Target
Permanently remove a target from the environment, stopping all feature flag evaluations for this target.
Get Target Segments
Retrieve all target groups (segments) that a specific target belongs to, including both explicit and rule-based membersh…
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
Retrieve the full details of a single user group by its identifier, including the member user list, notification configu…
Create User Group
Create a new user group at account, organization, or project scope with optional initial members, notification channels,…
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
Permanently delete a user group by its identifier. Member users are not deleted from the account.
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
Remove a single user from a user group by their user UUID and group identifier. The user’s individual role assignments a…
List Users
Retrieve a paginated list of users in the account, organization, or project scope, with optional filtering by name, emai…
List Aggregated Users
Retrieve users enriched with their role assignment metadata, including role names, resource groups, scope levels, and ma…
Get User
Retrieve a single user’s full profile and role assignments by UUID, including every role binding with its resource group…
Add Users
Invite one or more users to the account, organization, or project by email address, with optional role bindings and user…
Update User
Update a user’s profile information by replacing the full user object. Always call get_user first to retrieve current va…
Remove User
Remove a user from the specified account, organization, or project scope, revoking all their role assignments and access…
Getting Started
Create or Select a Project
Set up a new project or select an existing one. See the Projects Guide.
Configure the Connector
Enable the connector and set up a connector profile in your project. See Managing Connectors.
Connector Profile
Harness - API Key
Link an Account
Connect an account using StackOne Hub or Auth Link.
Link Account
Harness - API Key
Use Actions
Invoke actions using one of the methods below:
- MCP – Model Context Protocol for AI assistants
- A2A – Agent-to-Agent protocol
- AI Toolset (TypeScript) – TypeScript SDK for AI agents
- AI Toolset (Python) – Python SDK for AI agents
- Actions RPC – Direct API calls
- Playground – Test actions in the dashboard