Lookup Tables
Manage lookup table files via the Scanner API. These endpoints are unstable and may change without notice.
These are legacy endpoints under /v1/unstable, and have been stabilized here: Lookup Tables
Please use the stable API for any future integrations; the unstable endpoints documented here are retained only for historical and back-compatibility reasons, and will be discontinued in the future.
All examples below assume the following environment variables are set:
$API_BASE— Your team API URL (found in Settings > API Keys)$API_KEY— Your Scanner API key (found in Settings > API Keys)$TENANT_ID— Your Team ID (found in Settings > General)
For details on authentication, see API.
List lookup table files
GET /v1/unstable/lookup_table_file/tenant/{tenant_id}
List all lookup table files for a tenant.
Path parameters
tenant_id required
string
Unique identifier for the tenant
Example
curl -G $API_BASE/v1/unstable/lookup_table_file/tenant/$TENANT_ID \
-H "Authorization: Bearer $API_KEY"Response
Returns a list of lookup table file summary objects.
Create a lookup table file
POST /v1/unstable/lookup_table_file/tenant/{tenant_id}
Upload a new lookup table file via multipart form data. CSV and MMDB (MaxMind DB) files are both supported — the format is auto-detected from the file's contents.
Path parameters
tenant_id required
string
Unique identifier for the tenant
Multipart form fields
file required
file
CSV or MMDB file to upload
name required
string
Name for the lookup table
description
string
Description of the lookup table
Example
Response
Returns the newly created lookup table file.
Get a lookup table file
GET /v1/unstable/lookup_table_file/{id}
Get metadata for a specific lookup table file, including dependency information.
Example
Response
Returns the lookup table file object.
Get lookup table file data
GET /v1/unstable/lookup_table_file/{id}/data
Download the raw data for a lookup table file. The response shape depends on the file format:
CSV: returns the CSV data with
Content-Type: text/csv.MMDB: returns the binary MaxMind DB file with
Content-Type: application/octet-stream. Whenlimitis set, returns a flat CSV preview of the first N records instead, withContent-Type: text/csv.
Query parameters
limit
integer
Maximum number of data rows to return. This does not include the header row, i.e limit=1 returns a 2-row CSV consisting of one header row and one data row.
Example
Response
Returns Content-Type: text/csv for CSV tables.
Update a lookup table file
PUT /v1/unstable/lookup_table_file/{id}
Update a lookup table file's data and/or metadata via multipart form data. All fields are optional — omit fields that don't need to change.
Multipart form fields
file
file
Replacement CSV or MMDB file
description
string
Updated description
Example (replace CSV data)
Example (update description only)
Response
Returns the updated lookup table file object.
Delete a lookup table file
DELETE /v1/unstable/lookup_table_file/{id}
Delete a lookup table file.
Example
Response
Returns the id and tenant_id for the deleted lookup table file.
Response object reference
LookupTableFile
Returned by Get, Create, and Update endpoints.
id
string
Unique identifier
tenant_id
string
Owning tenant
name
string
Name of the lookup table
description
string | null
Optional description
file_format
string
"csv" or "mmdb" (auto-detected on upload)
num_rows
integer
Number of data rows (excluding header) for CSV
size_bytes
integer
Size of the file in bytes
sync_source
object | null
Sync source info if configured (e.g. AlienVault OTX, IPinfo)
sync_info
object | null
Last sync info if applicable
created_at
string
ISO 8601 creation timestamp
updated_at
string
ISO 8601 last update timestamp
used_by
array
List of resources depending on this lookup table. Not returned by List.
LookupTableFileSummary
Returned by the List endpoint (does not include used_by or sync_info).
id
string
Unique identifier
tenant_id
string
Owning tenant
name
string
Name of the lookup table
description
string | null
Optional description
file_format
string
"csv" or "mmdb"
num_rows
integer
Number of data rows (excluding header) for CSV
size_bytes
integer
Size of the file in bytes
sync_source
object | null
Sync source info if configured
created_at
string
ISO 8601 creation timestamp
updated_at
string
ISO 8601 last update timestamp
LookupTableFileDependency
Entries in the used_by array.
type
string
Dependency type (e.g. "transformation")
id
string
Identifier of the dependent resource
name
string
Human-readable name of the dependent resource
Quick start script
End-to-end example that lists existing lookup tables, creates one, and deletes it.
See also
Lookup Table Enrichment — How to use lookup tables to enrich log data during ingestion
Custom Lookup Tables — Setting up and managing custom lookup tables in Scanner
Last updated
Was this helpful?