Lists all tags (SoT)
Returns all Source-of-Truth tags for an account. Supports legacy free-text search on tag value and categoryUuid exact match, plus a structured filters JSON array for filtering by metadata fields (originCountryISO, actorCategory, motive, priority, etc.). Country values may be passed as alpha-2, alpha-3, name, or common alias.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYAccepted Permissions (at least one required)
Cloudforce One WriteCloudforce One ReadQuery ParametersExpand Collapse
Cache strategy. ‘from-graph’ serves results from the graph-node KV cache when all requested UUIDs are cached; falls back to normal path on partial/zero hit.
filters: optional array of object { field, op, value } Structured filters as a JSON array of {field, op, value} objects. Searchable fields: uuid, value, categoryName, description, dateOfDiscovery, tlp, confidence, actorCategory, motive, attributionOrganization, originCountryISO, aliases, externalReferences, opsecLevel, sophisticationLevel, activeDuration, priority, lastSeen, aliasGroupNames. Operators: equals, not, contains, startsWith, endsWith, gt, lt, gte, lte, like, in, find. Use ‘in’ for bulk OR within a single field, e.g. filters=[{“field”:“originCountryISO”,“op”:“in”,“value”:[“IR”,“CN”]}]. Multiple entries are AND-joined. Max 10 entries per request, max 100 values per ‘in’. Per-field notes: uuid accepts only ‘equals’ and ‘in’ (other operators throw ValidationError) — matched against the canonical lowercase storage but callers may pass either case (the server lowercases before comparison); index-backed by the column’s UNIQUE constraint and intended for batched UUID → tag resolution. originCountryISO uses its B-tree index for equals/not/in. priority uses its B-tree index for numeric comparisons. Other string columns (actorCategory, motive, etc.) are case-insensitive and unindexed; current catalog size makes this a non-issue. endsWith and aliasGroupNames contains/like are leading-wildcard scans and slow on large result sets. aliasGroupNames matches on the JSON-encoded text, so substrings can cross alias boundaries (a search for “apt28” will also match “apt280” if both appear in the same tag’s alias list).
Structured filters as a JSON array of {field, op, value} objects. Searchable fields: uuid, value, categoryName, description, dateOfDiscovery, tlp, confidence, actorCategory, motive, attributionOrganization, originCountryISO, aliases, externalReferences, opsecLevel, sophisticationLevel, activeDuration, priority, lastSeen, aliasGroupNames. Operators: equals, not, contains, startsWith, endsWith, gt, lt, gte, lte, like, in, find. Use ‘in’ for bulk OR within a single field, e.g. filters=[{“field”:“originCountryISO”,“op”:“in”,“value”:[“IR”,“CN”]}]. Multiple entries are AND-joined. Max 10 entries per request, max 100 values per ‘in’. Per-field notes: uuid accepts only ‘equals’ and ‘in’ (other operators throw ValidationError) — matched against the canonical lowercase storage but callers may pass either case (the server lowercases before comparison); index-backed by the column’s UNIQUE constraint and intended for batched UUID → tag resolution. originCountryISO uses its B-tree index for equals/not/in. priority uses its B-tree index for numeric comparisons. Other string columns (actorCategory, motive, etc.) are case-insensitive and unindexed; current catalog size makes this a non-issue. endsWith and aliasGroupNames contains/like are leading-wildcard scans and slow on large result sets. aliasGroupNames matches on the JSON-encoded text, so substrings can cross alias boundaries (a search for “apt28” will also match “apt280” if both appear in the same tag’s alias list).
Tag field to search on. Allowed first-class fields: uuid, value, categoryName, description, dateOfDiscovery, tlp, confidence, actorCategory, motive, attributionOrganization, originCountryISO, aliases, externalReferences, opsecLevel, sophisticationLevel, activeDuration, priority, lastSeen, aliasGroupNames. Also supports properties.
Free-text substring match on tag value AND custom-field properties. Searches case-insensitively inside both Tag.value and the serialized Tag.properties JSON blob (keys, values, and annotation metadata like confidence/tlp are all searchable). Same serialized-text tradeoff as aliasGroupNames — substrings can cross JSON boundaries.
ReturnsExpand Collapse
tags: array of object { uuid, value, activeDuration, 34 more }
aliases: optional array of object { value, confidence, tlp } Structured aliases ({ value, confidence 1-10, tlp }). Public: returned to all accounts with per-entry TLP filtering (entries with tlp: purple are removed for non-CFONE accounts).
Structured aliases ({ value, confidence 1-10, tlp }). Public: returned to all accounts with per-entry TLP filtering (entries with tlp: purple are removed for non-CFONE accounts).
externalReferences: optional array of object { url, description } Structured external references ({ url, description }). Public: returned to all accounts.
Structured external references ({ url, description }). Public: returned to all accounts.
internalAliases: optional array of object { value, confidence, tlp } Internal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
Internal structured aliases ({ value, confidence 1-10, tlp }). CFONE-only: never returned to non-CFONE accounts.
ISO country code (alpha-2 or alpha-3). Normalized to uppercase on read. Null when stored value is blank/whitespace.
Parsed custom field values. Null when the tag has no custom fields.
Lists all tags (SoT)
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/cloudforce-one/events/tags \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"pagination": {
"page": 0,
"pageSize": 0,
"totalCount": 0,
"totalPages": 0
},
"tags": [
{
"uuid": "12345678-1234-1234-1234-1234567890ab",
"value": "APT28",
"activeDuration": "activeDuration",
"activeDuration_annotated": {
"value": "value",
"tlp": "red"
},
"actorCategory": "actorCategory",
"actorCategory_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"aliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"aliasGroupNames": [
"string"
],
"aliasGroupNamesInternal": [
"string"
],
"attributionOrganization": "attributionOrganization",
"attributionOrganization_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"categoryName": "Actor",
"categoryUuid": "12345678-1234-1234-1234-1234567890ab",
"confidence": 8,
"createdAt": "createdAt",
"dateOfDiscovery": "2024-01-15T00:00:00Z",
"description": "description",
"externalReferenceLinks": [
"string"
],
"externalReferences": [
{
"url": "https://example.com/report",
"description": "Vendor threat report"
}
],
"externalReferences_annotated": [
{
"value": "value",
"tlp": "red"
}
],
"internalAliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"internalDescription": "internalDescription",
"lastSeen": "lastSeen",
"motive": "motive",
"motive_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"opsecLevel": "opsecLevel",
"opsecLevel_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"originCountryISO": "originCountryISO",
"originCountryISO_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"priority": 0,
"priority_annotated": {
"value": 0,
"tlp": "red"
},
"properties": {
"foo": "bar"
},
"sophisticationLevel": "sophisticationLevel",
"sophisticationLevel_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"tlp": "amber",
"updatedAt": "updatedAt",
"version": 0
}
]
}Returns Examples
{
"pagination": {
"page": 0,
"pageSize": 0,
"totalCount": 0,
"totalPages": 0
},
"tags": [
{
"uuid": "12345678-1234-1234-1234-1234567890ab",
"value": "APT28",
"activeDuration": "activeDuration",
"activeDuration_annotated": {
"value": "value",
"tlp": "red"
},
"actorCategory": "actorCategory",
"actorCategory_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"aliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"aliasGroupNames": [
"string"
],
"aliasGroupNamesInternal": [
"string"
],
"attributionOrganization": "attributionOrganization",
"attributionOrganization_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"categoryName": "Actor",
"categoryUuid": "12345678-1234-1234-1234-1234567890ab",
"confidence": 8,
"createdAt": "createdAt",
"dateOfDiscovery": "2024-01-15T00:00:00Z",
"description": "description",
"externalReferenceLinks": [
"string"
],
"externalReferences": [
{
"url": "https://example.com/report",
"description": "Vendor threat report"
}
],
"externalReferences_annotated": [
{
"value": "value",
"tlp": "red"
}
],
"internalAliases": [
{
"value": "Fancy Bear",
"confidence": 8,
"tlp": "amber"
}
],
"internalDescription": "internalDescription",
"lastSeen": "lastSeen",
"motive": "motive",
"motive_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"opsecLevel": "opsecLevel",
"opsecLevel_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"originCountryISO": "originCountryISO",
"originCountryISO_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"priority": 0,
"priority_annotated": {
"value": 0,
"tlp": "red"
},
"properties": {
"foo": "bar"
},
"sophisticationLevel": "sophisticationLevel",
"sophisticationLevel_annotated": {
"value": "value",
"confidence": 0,
"tlp": "red"
},
"tlp": "amber",
"updatedAt": "updatedAt",
"version": 0
}
]
}