Skip to main content

Create List

Route

/v2/lists

Description

Create a new list containing string values for use in Cyberhaven policies and rules. Lists can contain domains, file paths, usernames, or other identifiers used for policy configuration.

Method

POST

Inputs

ParameterTypeRequiredDescription
namestringYesUnique name for the list (max 255 characters)
descriptionstringNoDescription of the list's purpose
itemsarray[string]NoInitial list items to include

Request Example

{
"name": "Sensitive Domains",
"description": "List of domains containing sensitive corporate data",
"items": [
"confidential.company.com",
"internal.acme.com",
"secure.example.org"
]
}

Output

FieldTypeDescription
idstringUnique list identifier
namestringList name
descriptionstringList description
typestringList type (always "unmanaged" for created lists)
sizeintegerNumber of items in the list
created_atstringCreation timestamp (ISO 8601)
created_bystringUser who created the list
updated_atstringLast update timestamp (ISO 8601)
updated_bystringUser who last updated the list

Rate Limit

  • 60 requests per minute per API key
  • 5 concurrent requests per endpoint

Example Response

{
"id": "list-123",
"name": "Sensitive Domains",
"description": "List of domains containing sensitive corporate data",
"type": "unmanaged",
"size": 3,
"created_at": "2024-01-15T10:30:00Z",
"created_by": "admin.user",
"updated_at": "2024-01-15T10:30:00Z",
"updated_by": "admin.user"
}