# Returns all Targets Returns all the Targets for the given Account ID Endpoint: GET /cf/admin/targets Version: 1.0 Security: x-api-key ## Query parameters: - `accountIdentifier` (string, required) Account Identifier - `orgIdentifier` (string, required) Organization Identifier - `projectIdentifier` (string, required) The Project identifier - `environmentIdentifier` (string, required) Environment Identifier - `pageNumber` (integer) PageNumber - `pageSize` (integer) PageSize - `sortOrder` (string) SortOrder Enum: "ASC", "DESC" - `sortByField` (string) SortByField Enum: "createdAt", "name", "identifier" - `targetName` (string) Name of the target - `targetIdentifier` (string) Identifier of the target ## Response 200 fields (application/json): - `itemCount` (integer, required) The total number of items Example: 1 - `pageCount` (integer, required) The total number of pages Example: 100 - `pageIndex` (integer, required) The current page - `pageSize` (integer, required) The number of items per page Example: 1 - `version` (integer) The version of this object. The version will be incremented each time the object is modified Example: 5 - `targets` (array) - `targets.account` (string, required) The account ID that the target belongs to Example: "abcXDdffdaffd" - `targets.anonymous` (boolean) Indicates if this target is anonymous - `targets.attributes` (object) a JSON representation of the attributes for this target Example: {"age":20,"location":"Belfast"} - `targets.createdAt` (integer) The date and time in milliseconds when this Target was created - `targets.environment` (string, required) The identifier for the environment that the target belongs to - `targets.identifier` (string, required) The unique identifier for this target Example: "john-doe" - `targets.name` (string, required) The name of this Target Example: "John Doe" - `targets.org` (string, required) The identifier for the organization that the target belongs to - `targets.project` (string, required) The identifier for the project that this target belongs to - `targets.segments` (array) A list of Target Groups (Segments) that this Target belongs to - `targets.segments.createdAt` (integer) The data and time in milliseconds when the group was created - `targets.segments.environment` (string) The environment this target group belongs to Example: "Production" - `targets.segments.excluded` (array) A list of Targets who are excluded from this target group - `targets.segments.identifier` (string, required) Unique identifier for the target group. - `targets.segments.included` (array) A list of Targets who belong to this target group - `targets.segments.modifiedAt` (integer) The data and time in milliseconds when the group was last modified - `targets.segments.name` (string, required) Name of the target group. Example: "Beta Testers" - `targets.segments.rules` (array) - `targets.segments.rules.attribute` (string, required) The attribute to use in the clause. This can be any target attribute Example: "identifier" - `targets.segments.rules.id` (string) The unique ID for the clause Example: 32434243 - `targets.segments.rules.negate` (boolean, required) Is the operation negated? - `targets.segments.rules.op` (string, required) The type of operation such as equals, starts_with, contains Example: "starts_with" - `targets.segments.rules.values` (array, required) The values that are compared against the operator - `targets.segments.servingRules` (array) An array of rules that can cause a user to be included in this segment. - `targets.segments.servingRules.clauses` (array, required) A list of clauses to use in the rule - `targets.segments.servingRules.priority` (integer, required) The rules priority relative to other rules. The rules are evaluated in order with 1 being the highest Example: 1 - `targets.segments.servingRules.ruleId` (string, required) The unique identifier for this rule - `targets.segments.tags` (array) Tags for this target group - `targets.segments.tags.identifier` (string, required) The identifier of the tag Example: "feature-flag-tag-1" - `targets.segments.tags.name` (string, required) The name of the tag Example: "feature-flag-tag-1" - `targets.segments.version` (integer) The version of this group. Each time it is modified the version is incremented Example: 1 ## Response 401 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 403 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 404 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed ## Response 500 fields (application/json): - `code` (string, required) The http error code Example: "404" - `details` (object) Additional details about the error - `message` (string, required) The reason the request failed