For the complete documentation index, see llms.txt. This page is also available as Markdown.

Lookup Tables

Manage lookup table files via the Scanner API. These endpoints are unstable and may change without notice.

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

Name
Type
Description

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.

The list endpoint returns summary objects that do not include the used_by field. Use the Get endpoint to retrieve dependency information for a specific lookup table.

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

Name
Type
Description

tenant_id required

string

Unique identifier for the tenant

Multipart form fields

Name
Type
Description

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. When limit is set, returns a flat CSV preview of the first N records instead, with Content-Type: text/csv.

Query parameters

Name
Type
Description

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

Name
Type
Description

file

file

Replacement CSV or MMDB file

description

string

Updated description

The name field cannot be changed after creation, as it is used as an identifier in lookup table references within VRL scripts.

The file format also cannot be changed: a replacement file must match the existing table's format (CSV or MMDB).

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.

Field
Type
Description

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).

Field
Type
Description

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.

Field
Type
Description

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

Last updated

Was this helpful?