Flagsmith
App · 24 actions
Manage Flagsmith feature flags, environments, segments and tags, turn flags on or off and change their values, read the audit log, and follow new flags, flag changes and audit log entries.
Actions
| Action | What it does |
|---|---|
| Create environment | Add an environment to a project. |
| Create feature flag | Create a feature flag in a project, with the state and value every environment starts with. |
| Create segment | Create a segment of users who match all, or any, of the conditions given on their traits. |
| Create tag | Create a tag for a project's feature flags. |
| Delete environment | Delete an environment and every flag setting in it. |
| Delete feature flag | Delete a feature flag from every environment of its project. |
| Delete segment | Delete a segment. |
| Delete tag | Delete a tag and take it off every flag that has it. |
| Get environment | Get an environment's name, SDK key and settings. |
| Get feature flag | Get a feature flag's settings, tags and owners. |
| Get project | Get a project's settings. |
| Get segment | Get a segment and its rules. |
| List audit log | List what changed and who changed it, newest first, optionally for one project or environment. |
| List environments | List a project's environments with their SDK keys. |
| List feature flags | List a project's feature flags, optionally searched by name or filtered by tag, type or archive state. |
| List flags in environment | List whether each feature flag is on in an environment, and its value. |
| List organisation users | List the people in an organisation, with their role and last sign-in. |
| List organisations | List the organisations the API key belongs to. |
| List projects | List the projects the API key can see. |
| List segments | List a project's segments and their rules. |
| List tags | List the tags a project's feature flags can carry. |
| Update feature flag | Change a feature flag's description or tags, or archive it. |
| Update flag in environment | Turn a feature flag on or off in one environment, or change its value there. |
| Update segment | Rename a segment or change its description. |
Create environment
Add an environment to a project. Its flags start from each feature's defaults.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Name
nametextRequired - The environment's name, such as Staging.
- Description
descriptiontext - What the environment is for.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"allow_client_traits": true,
"api_key": "example",
"description": "example",
"hide_disabled_flags": true,
"id": 1,
"name": "example",
"project": 1,
"use_v2_feature_versioning": true,
"uuid": "example"
}
}Create feature flag
Create a feature flag in a project, with the state and value every environment starts with.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Name
nametextRequired - The flag's name, used in code, such as new_checkout. It can't be changed later.
- Description
descriptiontext - What the flag is for.
- On by default
default_enabledtrue/false - Whether the flag starts on in every environment. Leave empty for off.
- Initial value
initial_valuetext - The value the flag starts with in every environment, for remote config.
- Tags
tag_idslist - Tags to put on the feature flag.
- Server-side only
is_server_key_onlytrue/false - Hide the flag from client-side SDKs, so only server-side keys can read it.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_date": "example",
"default_enabled": true,
"description": "example",
"environment_feature_state": {
"enabled": true,
"environment": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1
},
"group_owners": [
1
],
"id": 1,
"initial_value": "example",
"is_archived": true,
"is_server_key_only": true,
"last_modified_in_any_environment": "example",
"lifecycle_stage": "example",
"name": "example",
"num_identity_overrides": 1,
"num_segment_overrides": 1,
"owners": [
1
],
"project": 1,
"tags": [
1
],
"type": "example",
"uuid": "example"
}
}Create segment
Create a segment of users who match all, or any, of the conditions given on their traits.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Name
nametextRequired - The segment's name, such as beta_testers.
- Description
descriptiontext - Who the segment is.
- Users match
matchtext - Whether users must match all the conditions or any one of them. Leave empty for all.One of:
ALL(All of the conditions),ANY(Any of the conditions). - Conditions
conditionslistRequired - Each condition: the trait (property), how it compares (operator, such as EQUAL or CONTAINS) and the value.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_at": "example",
"description": "example",
"feature": 1,
"id": 1,
"name": "example",
"project": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"type": "example"
}
],
"type": "example"
}
],
"updated_at": "example",
"uuid": "example"
}
}Create tag
Create a tag for a project's feature flags.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Label
labeltextRequired - The tag's name, such as checkout.
- Color
colortext - The tag's color as a hex code, such as #3d4db6.
- Description
descriptiontext - What the tag marks.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"color": "example",
"description": "example",
"id": 1,
"is_permanent": true,
"is_system_tag": true,
"label": "example",
"project": 1,
"uuid": "example"
}
}Delete environment
Delete an environment and every flag setting in it.
Inputs
- Project
project_idnumberRequired - The project the environment is in.At least 1.
- Environment
environment_keytextRequired - The environment.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {}
}Delete feature flag
Delete a feature flag from every environment of its project.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Feature flag
feature_idnumberRequired - The feature flag.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {}
}Delete segment
Delete a segment. Flags that targeted it stop doing so.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Segment
segment_idnumberRequired - The segment.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {}
}Delete tag
Delete a tag and take it off every flag that has it.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Tag
tag_idnumberRequired - The tag.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {}
}Get environment
Get an environment's name, SDK key and settings.
Inputs
- Project
project_idnumberRequired - The project the environment is in.At least 1.
- Environment
environment_keytextRequired - The environment.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"allow_client_traits": true,
"api_key": "example",
"description": "example",
"hide_disabled_flags": true,
"id": 1,
"name": "example",
"project": 1,
"use_v2_feature_versioning": true,
"uuid": "example"
}
}Get feature flag
Get a feature flag's settings, tags and owners.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Feature flag
feature_idnumberRequired - The feature flag.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_date": "example",
"default_enabled": true,
"description": "example",
"environment_feature_state": {
"enabled": true,
"environment": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1
},
"group_owners": [
1
],
"id": 1,
"initial_value": "example",
"is_archived": true,
"is_server_key_only": true,
"last_modified_in_any_environment": "example",
"lifecycle_stage": "example",
"name": "example",
"num_identity_overrides": 1,
"num_segment_overrides": 1,
"owners": [
1
],
"project": 1,
"tags": [
1
],
"type": "example",
"uuid": "example"
}
}Get project
Get a project's settings.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"enable_realtime_updates": true,
"hide_disabled_flags": true,
"id": 1,
"name": "example",
"organisation": 1,
"prevent_flag_defaults": true,
"stale_flags_limit_days": 1,
"use_edge_identities": true,
"uuid": "example"
}
}Get segment
Get a segment and its rules.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Segment
segment_idnumberRequired - The segment.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_at": "example",
"description": "example",
"feature": 1,
"id": 1,
"name": "example",
"project": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"type": "example"
}
],
"type": "example"
}
],
"updated_at": "example",
"uuid": "example"
}
}List audit log
List what changed and who changed it, newest first, optionally for one project or environment.
Inputs
- Project
project_idnumber - Only changes in this project.At least 1.
- Environment IDs
environment_idslist - Only changes in these environments, by their numeric ID.
- Search
searchtext - Only entries whose text contains this (at least 3 characters).
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first.At least 1.
- Results per page
page_sizenumber - How many results a page holds, up to 100. Leave empty for 100.From 1 to 100.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"author": {
"email": "example",
"first_name": "example",
"id": 1,
"last_name": "example"
},
"created_date": "example",
"environment": {
"api_key": "example",
"id": 1,
"name": "example"
},
"id": 1,
"is_system_event": true,
"log": "example",
"project": {
"id": 1,
"name": "example"
},
"related_object_id": 1,
"related_object_type": "example"
}
]
}
}List environments
List a project's environments with their SDK keys.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"allow_client_traits": true,
"api_key": "example",
"description": "example",
"hide_disabled_flags": true,
"id": 1,
"name": "example",
"project": 1,
"use_v2_feature_versioning": true,
"uuid": "example"
}
]
}
}List feature flags
List a project's feature flags, optionally searched by name or filtered by tag, type or archive state.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Search
searchtext - Only flags whose name contains this.
- Tags
tag_idslist - Only flags with these tags.
- Archived
is_archivedtrue/false - Only archived flags, or only flags that are not archived.
- Type
typetext - Only standard or only multivariate flags.One of:
STANDARD,MULTIVARIATE. - Sort by
sort_fieldtext - What to sort by. Leave empty for date created.One of:
created_date(Date created),name. - Sort order
sort_directiontext - Which come first. Leave empty for oldest first.One of:
ASC(Oldest or A to Z first),DESC(Newest or Z to A first). - Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first.At least 1.
- Results per page
page_sizenumber - How many results a page holds, up to 100. Leave empty for 100.From 1 to 100.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"created_date": "example",
"default_enabled": true,
"description": "example",
"environment_feature_state": {
"enabled": true,
"environment": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1
},
"group_owners": [
1
],
"id": 1,
"initial_value": "example",
"is_archived": true,
"is_server_key_only": true,
"last_modified_in_any_environment": "example",
"lifecycle_stage": "example",
"name": "example",
"num_identity_overrides": 1,
"num_segment_overrides": 1,
"owners": [
1
],
"project": 1,
"tags": [
1
],
"type": "example",
"uuid": "example"
}
]
}
}List flags in environment
List whether each feature flag is on in an environment, and its value.
Inputs
- Project
project_idnumberRequired - The project the environment is in.At least 1.
- Environment
environment_keytextRequired - The environment.
- Feature flag
feature_idnumber - Only this feature flag.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"created_at": "example",
"enabled": true,
"environment": 1,
"feature": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1,
"live_from": "example",
"updated_at": "example",
"uuid": "example"
}
]
}
}List organisation users
List the people in an organisation, with their role and last sign-in.
Inputs
- Organisation
organisation_idnumberRequired - The organisation.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"users": [
{
"date_joined": "example",
"email": "example",
"first_name": "example",
"id": 1,
"last_login": "example",
"last_name": "example",
"role": "example"
}
]
}
}List organisations
List the organisations the API key belongs to.
Inputs
None.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"created_date": "example",
"id": 1,
"name": "example",
"num_seats": 1,
"uuid": "example"
}
]
}
}List projects
List the projects the API key can see.
Inputs
None.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"projects": [
{
"enable_realtime_updates": true,
"hide_disabled_flags": true,
"id": 1,
"name": "example",
"organisation": 1,
"prevent_flag_defaults": true,
"stale_flags_limit_days": 1,
"use_edge_identities": true,
"uuid": "example"
}
]
}
}List segments
List a project's segments and their rules.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Search
searchtext - Only segments whose name contains this.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first.At least 1.
- Results per page
page_sizenumber - How many results a page holds, up to 100. Leave empty for 100.From 1 to 100.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"created_at": "example",
"description": "example",
"feature": 1,
"id": 1,
"name": "example",
"project": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"type": "example"
}
],
"type": "example"
}
],
"updated_at": "example",
"uuid": "example"
}
]
}
}List tags
List the tags a project's feature flags can carry.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Page
pagenumber - Which page of results to return, starting at 1. Leave empty for the first.At least 1.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"count": 1,
"next": "example",
"previous": "example",
"results": [
{
"color": "example",
"description": "example",
"id": 1,
"is_permanent": true,
"is_system_tag": true,
"label": "example",
"project": 1,
"uuid": "example"
}
]
}
}Update feature flag
Change a feature flag's description or tags, or archive it.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Feature flag
feature_idnumberRequired - The feature flag.At least 1.
- Description
descriptiontext - What the flag is for.
- Tags
tag_idslist - The flag's tags. These replace the tags it has.
- Archived
is_archivedtrue/false - Archive the flag, or bring it back from the archive.
- Server-side only
is_server_key_onlytrue/false - Hide the flag from client-side SDKs, so only server-side keys can read it.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_date": "example",
"default_enabled": true,
"description": "example",
"environment_feature_state": {
"enabled": true,
"environment": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1
},
"group_owners": [
1
],
"id": 1,
"initial_value": "example",
"is_archived": true,
"is_server_key_only": true,
"last_modified_in_any_environment": "example",
"lifecycle_stage": "example",
"name": "example",
"num_identity_overrides": 1,
"num_segment_overrides": 1,
"owners": [
1
],
"project": 1,
"tags": [
1
],
"type": "example",
"uuid": "example"
}
}Update flag in environment
Turn a feature flag on or off in one environment, or change its value there.
Inputs
- Project
project_idnumberRequired - The project the environment is in.At least 1.
- Environment
environment_keytextRequired - The environment.
- Feature flag
feature_idnumberRequired - The feature flag.At least 1.
- On
enabledtrue/false - Whether the flag is on in this environment. Leave empty to keep it as it is.
- Value
valuetext - The flag's value in this environment, for remote config. Leave empty to keep it.
- Value type
value_typetext - How the value is kept. Leave empty for text.One of:
string(Text),integer(Whole number),boolean(True or false).
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_at": "example",
"enabled": true,
"environment": 1,
"feature": 1,
"feature_segment": 1,
"feature_state_value": "example",
"id": 1,
"identity": 1,
"live_from": "example",
"updated_at": "example",
"uuid": "example"
}
}Update segment
Rename a segment or change its description. Its rules stay as they are.
Inputs
- Project
project_idnumberRequired - The project.At least 1.
- Segment
segment_idnumberRequired - The segment.At least 1.
- Name
nametext - The segment's new name.
- Description
descriptiontext - Who the segment is.
Outputs
dataobject- The response from Flagsmith.
Example output
{
"data": {
"created_at": "example",
"description": "example",
"feature": 1,
"id": 1,
"name": "example",
"project": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"rules": [
{
"conditions": [
{
"description": "example",
"operator": "example",
"property": "example",
"value": "example"
}
],
"id": 1,
"type": "example"
}
],
"type": "example"
}
],
"updated_at": "example",
"uuid": "example"
}
}