Skip to main content
GET
Get Provider Options

Get Provider Options

Use this endpoint when an imports template column exposes options_source instead of inline options. It resolves backend-managed provider keys such as countries, logistics_tocs, and fuels into a simple list of selectable values:
  • value: the canonical value the backend validates and stores
  • label: the display label a client can show in dropdowns or selectors
This endpoint is especially useful for the Imports Mapping and Review steps, where a client needs to populate category dropdowns without hardcoding reference data.

Request

Path Parameters

string
required
Provider key declared by a template column’s options_source.Supported keys are defined by the template metadata. Common examples include:
  • countries
  • logistics_tocs
  • fuels

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Response

string
The provider key that was resolved.
array[object]
List of resolved option objects.

Example

Fetch country options

Successful Response

Typical Usage In The Imports Flow

  1. Call GET /v2/imports/templates/{template_id}.
  2. Inspect each column.
  3. If a category column has inline options, render those directly.
  4. If a category column has options_source, call GET /v2/imports/options/{source_key}.
  5. Render the returned value / label pairs in the UI.
For example:
  • country may use options_source="countries"
  • fuel may use options_source="fuels" for canonical logistics recharge fuel names
  • toc may use options_source="logistics_tocs"

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: Unknown source_key
Solution: Make sure the template actually uses that options_source key.

Get Template

Get the template that defines available options sources

Create Import Session

Start a new import session

Suggest Mapping

Auto-map columns using AI

Imports Overview

Learn about the Imports API