Lookup Tables

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

triangle-exclamation

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.

{
  "lookup_table_files": [
    {
      "id": "00000000-0000-0000-0000-000000000001",
      "tenant_id": "00000000-0000-0000-0000-000000000000",
      "name": "employee_table",
      "description": "Employee directory lookup",
      "num_rows": 1234,
      "size_bytes": 98765,
      "sync_source": null,
      "created_at": "2026-01-15T12:00:00Z",
      "updated_at": "2026-01-15T12:00:00Z"
    }
  ]
}
circle-info

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 (CSV format) via multipart form data.

Path parameters

Name
Type
Description

tenant_id required

string

Unique identifier for the tenant

Multipart form fields

Name
Type
Description

file required

file

CSV 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 CSV data for a lookup table file.

Query parameters

Name
Type
Description

limit

integer

Maximum number of data rows to return (header row is always included)

Example

Response

Returns Content-Type: text/csv.

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 file

description

string

Updated description

circle-info

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

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

num_rows

integer

Number of data rows (excluding header)

size_bytes

integer

Size of the CSV data in bytes

sync_source

object | null

Sync source info if configured

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

num_rows

integer

Number of data rows (excluding header)

size_bytes

integer

Size of the CSV data 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?