API Reference
Describes the REST API that allows clients to manage and update apps, flags and related entities.
Retrieve all accessible applications
Organization identifier
Requested resource retrieved successfully
Bad Request
Unauthorized
Forbidden
Requested resource, or its parent, not found
GET /api/apps HTTP/1.1
Host: app.reflag.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"org": {
"id": "text",
"name": "text"
},
"id": "text",
"name": "text",
"demo": true,
"flagKeyFormat": "custom",
"environments": [
{
"id": "text",
"name": "text",
"isProduction": true,
"order": 1
}
]
}
]
}
Retrieve a specific application by its identifier
App identifier
Requested resource retrieved successfully
Bad Request
Unauthorized
Forbidden
Requested resource, or its parent, not found
GET /api/apps/{appId} HTTP/1.1
Host: app.reflag.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"org": {
"id": "text",
"name": "text"
},
"id": "text",
"name": "text",
"demo": true,
"flagKeyFormat": "custom",
"environments": [
{
"id": "text",
"name": "text",
"isProduction": true,
"order": 1
}
]
}
Retrieve all flags for a specific application
App identifier
Requested resource retrieved successfully
Bad Request
Unauthorized
Forbidden
Requested resource, or its parent, not found
GET /api/apps/{appId}/flags HTTP/1.1
Host: app.reflag.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"key": "text",
"name": "text",
"description": "text",
"permanent": true,
"archived": true,
"stage": {
"id": "text",
"name": "text",
"color": "text",
"order": 1
},
"owner": {
"id": "text",
"name": "text",
"email": "[email protected]",
"avatarUrl": "https://example.com"
}
}
]
}
Retrieve targeting for a flag in an environment
App identifier
Unique flag key
Environment identifier
Requested resource retrieved successfully
Bad Request
Unauthorized
Forbidden
Requested resource, or its parent, not found
GET /api/apps/{appId}/flags/{flagKey}/targeting/{envId} HTTP/1.1
Host: app.reflag.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"flagKey": "text",
"version": 1,
"updatedAt": "2025-10-22T17:12:26.430Z",
"specificTargets": {
"ANY_ADDITIONAL_PROPERTY": {
"companyIds": [
"text"
],
"userIds": [
"text"
]
}
}
}
Update specific companies and users for flags in an environment
App identifier
Environment identifier
Update the explicit value of multiple flags for a given audience
Whether to send notifications about the change to configured integration (eg. Slack, Linear, etc). Defaults to true.
true
The description of the change recorded in the change history
Requested resource retrieved successfully
Bad Request
Unauthorized
Forbidden
Requested resource, or its parent, not found
PATCH /api/apps/{appId}/flags/specific-targets/{envId} HTTP/1.1
Host: app.reflag.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 130
{
"updates": [
{
"flagKey": "text",
"value": "text",
"companyId": "text",
"userId": "text"
}
],
"notifications": true,
"changeDescription": "text"
}
{
"data": [
{
"flagKey": "text",
"version": 1,
"updatedAt": "2025-10-22T17:12:26.430Z",
"specificTargets": {
"ANY_ADDITIONAL_PROPERTY": {
"companyIds": [
"text"
],
"userIds": [
"text"
]
}
}
}
]
}
Last updated
Was this helpful?