---
updatedAt: 2026-06-11T21:38:37.000Z
agentTools:
  projectIndex: https://docs.atono.io/llms.txt
---

# Get feature flags

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atono API",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://api.atono.io",
      "description": "Atono API"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/api/v1/flags": {
      "get": {
        "tags": [
          "Flags"
        ],
        "summary": "Get feature flags",
        "operationId": "listFlags",
        "parameters": [
          {
            "name": "page[number]",
            "in": "query",
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int32",
              "description": "Returns a specific page of results, starting from page `0`. Use with `page[size]` to control how many items are returned per page. For example, if `page[size]` is `20`, then `page[number]=2` returns items 21-40.",
              "minimum": 0,
              "name": "page[number]"
            }
          },
          {
            "name": "page[size]",
            "in": "query",
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int32",
              "description": "Controls how many items are returned in each response page.",
              "minimum": 0,
              "name": "page[size]"
            }
          },
          {
            "name": "page[offset]",
            "in": "query",
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int32",
              "description": "Skips the specified number of items before starting the result set. For example, if `page[offset]` is `30` and `page[size]` is `10`, the response returns items 31-40.",
              "minimum": 0,
              "name": "page[offset]"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "Sorts the list of feature flags by one or more fields. Prefix a field name with a minus sign (`-`) to sort in descending order. Repeat the parameter to sort by multiple fields. Supported fields include:\n* `key`\n* `updatedAt`",
            "schema": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            },
            "example": "-updatedAt"
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the list of feature flags and their included relationships.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MultiResourceBody_FlagResource_"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FlagResource": {
        "description": "A feature flag controls the behavior of a feature in Atono. It includes a unique name (key), a list of possible variants, a summary of what the flag controls, and environment-specific configuration (slices) that determines how the flag evaluates across environments.",
        "properties": {
          "type": {
            "type": "string",
            "default": "flag",
            "description": "Identifies the type of resource.",
            "pattern": "flag",
            "defaultValue": "flag"
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier for the resource, typically a UUID."
          },
          "attributes": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlagResource.Attributes"
              }
            ],
            "description": "Contains the structured data fields that describe the resource, such as properties, settings, and timestamps."
          },
          "relationships": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FlagResource.Relationships"
              }
            ],
            "description": "Contains references to other related resources."
          }
        },
        "readOnly": true
      },
      "FlagResource.Attributes": {
        "description": "Contains the structured data fields that describe the resource, such as properties, settings, and timestamps.",
        "properties": {
          "key": {
            "type": "string",
            "description": "The flag name used to identify this feature flag in your codebase or SDK configuration. This name is unique within your workspace."
          },
          "summary": {
            "type": "string",
            "description": "A human-readable summary describing what this flag controls. Useful for understanding the intent or behavior behind the flag."
          },
          "variants": {
            "additionalProperties": true,
            "description": "A list of named variants the flag can evaluate to. Each variant maps to a value used in your application. For boolean flags, variants include `\"on\": true` and `\"off\": false`."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time the feature flag was created."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time the feature flag was last updated."
          }
        }
      },
      "FlagResource.Relationships": {
        "description": "Contains references to other related resources.",
        "properties": {
          "slices": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MultipleRelationships"
              }
            ],
            "description": "A relationship object linking to the environment-specific configurations for the flag. Includes a reference to each environment (slice), along with related links and metadata. Each slice defines the variant the flag will evaluate to in that environment."
          }
        }
      },
      "MultiResourceBody_FlagResource_": {
        "properties": {
          "data": {
            "type": "array",
            "description": "A list of returned resources, based on the request.",
            "items": {
              "$ref": "#/components/schemas/FlagResource",
              "description": "A feature flag controls the behavior of a feature in Atono. It includes a unique name (key), a list of possible variants, a summary of what the flag controls, and environment-specific configuration (slices) that determines how the flag evaluates across environments."
            }
          },
          "errors": {
            "type": "array",
            "description": "A list of errors returned with the response, if the request could not be completed. Each object includes details about a specific issue.",
            "items": {
              "$ref": "#/components/schemas/ProblemDetail",
              "description": "A problem detail object is a way to convey information about an error that occurred while processing a request."
            }
          },
          "meta": {
            "additionalProperties": true,
            "description": "Additional contextual information about the response. May include summary data such as item counts, timestamps, or other calculated values."
          },
          "included": {
            "type": "array",
            "description": "A list of related resources included in the response, either automatically by the API or in response to an `include` parameter in the request. Each item contains a full resource object (e.g., users, teams, acceptance criteria).",
            "items": {}
          },
          "links": {
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            },
            "description": "Pagination or navigation links related to the response. May include keys such as `self`, `next`, `prev`, `first`, or `last`."
          }
        },
        "readOnly": true
      },
      "MultipleRelationships": {
        "properties": {
          "links": {
            "$ref": "#/components/schemas/RelationshipLinks"
          },
          "data": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "$ref": "#/components/schemas/ResourceIdentifier"
            }
          },
          "meta": {
            "additionalProperties": true
          }
        },
        "required": [
          "data",
          "links",
          "meta"
        ]
      },
      "ProblemDetail": {
        "description": "A problem detail object is a way to convey information about an error that occurred while processing a request.",
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier for this specific error occurrence. Useful for debugging and support."
          },
          "links": {
            "additionalProperties": {
              "type": "string",
              "format": "uri"
            },
            "allOf": [
              {
                "type": [
                  "null",
                  "object"
                ]
              }
            ],
            "description": "Links related to the error. May include a URL to relevant documentation or support resources."
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "The HTTP status code associated with the error (e.g., 400, 404, 422)."
          },
          "code": {
            "type": "string",
            "description": "An internal code that identifies the type or category of the error."
          },
          "title": {
            "type": "string",
            "description": "A short summary of the problem."
          },
          "source": {
            "type": [
              "null",
              "object"
            ],
            "allOf": [
              {
                "$ref": "#/components/schemas/ProblemSource"
              }
            ],
            "readOnly": true
          },
          "detail": {
            "type": "string",
            "description": "Additional information about the error, intended to provide more context than the title."
          },
          "meta": {
            "additionalProperties": true,
            "description": "Additional information about the error, which may be useful for debugging. The contents vary depending on the error type."
          }
        },
        "readOnly": true
      },
      "ProblemSource": {
        "description": "Identifies the part of the request that caused the error. Only one source is present per error.",
        "properties": {
          "pointer": {
            "type": [
              "string",
              "null"
            ],
            "description": "Specifies the path to the field in the request body that caused the error."
          },
          "parameter": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifies a query parameter in the request URL that caused the error."
          },
          "header": {
            "type": [
              "string",
              "null"
            ],
            "description": "Identifies the request header that caused the error."
          }
        },
        "readOnly": true
      },
      "RelationshipLinks": {
        "properties": {
          "self": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "related": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        },
        "required": [
          "related",
          "self"
        ]
      },
      "ResourceIdentifier": {
        "properties": {
          "type": {
            "type": "string",
            "description": "Identifies the type of the linked resource."
          },
          "id": {
            "type": "string",
            "description": "The unique identifier of the linked resource."
          }
        },
        "required": [
          "id",
          "type"
        ]
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-KEY",
        "in": "header"
      }
    }
  }
}
```