The CloudBees Unify Feature Management API provides programmatic access to manage feature flags, target groups, and custom properties. Use this API to integrate feature management into CI/CD pipelines, automation scripts, and custom tooling.
Authentication
All API requests require authentication using a bearer token. Include the token in the Authorization header, as follows:
To obtain an API token:
-
Navigate to your organization settings in CloudBees Unify.
-
Select API tokens.
-
Create a new token with appropriate permissions.
API overview
The Feature Management API is organized around the following core resources:
| Resource | Description |
|---|---|
Create, read, update, and delete feature flags |
|
Manage per-environment flag settings, conditions, and rollouts |
|
Define reusable targeting rules for flag conditions |
|
Manage user properties used in targeting conditions |
Common patterns
Path parameters
Most endpoints require an applicationId path parameter to identify the FM application:
Response format
All responses are returned as JSON. Successful responses include the following requested data:
Error responses
Errors return a standard error object with details:
Common HTTP status codes:
| Code | Description |
|---|---|
|
Success |
|
Bad request - invalid parameters |
|
Unauthorized - invalid or missing token |
|
Forbidden - insufficient permissions |
|
Not found - resource does not exist |
|
Internal server error |
Rate limiting
This API enforces rate limits to ensure fair usage. When you exceed the limit, you will receive a 429 Too Many Requests response. To handle rate limiting, implement exponential backoff in your client application by progressively increasing the wait time between retry attempts.
Pagination
List endpoints support pagination through query parameters:
| Parameter | Type | Description |
|---|---|---|
|
integer |
Maximum number of items to return (default: 100) |
|
string |
Token for fetching the next page of results |
Testing the API
See Testing the API for information on using Postman, curl, and other tools to test API endpoints.
Quick reference
Flag operations
| Method | Endpoint | Description |
|---|---|---|
|
|
List all flags |
|
|
Create a new flag |
|
|
Get a flag by ID |
|
|
Get a flag by name |
|
|
Update a flag |
|
|
Delete a flag |
Flag configuration operations
| Method | Endpoint | Description |
|---|---|---|
|
|
Get flag configuration |
|
|
Update flag configuration |
|
|
Partially update configuration |
|
|
Clone configuration to another environment |
Target group operations
| Method | Endpoint | Description |
|---|---|---|
|
|
List all target groups |
|
|
Create a target group |
|
|
Get a target group by ID |
|
|
Update a target group |
|
|
Delete a target group |
Custom property operations
| Method | Endpoint | Description |
|---|---|---|
|
|
List all custom properties |
|
|
Create a custom property |
|
|
Get a custom property by ID |
|
|
Update a custom property |
|
|
Delete a custom property |