Get Provider Options
Get Provider Options
Resolve an imports options_source key into selectable value/label pairs
GET
Get Provider Options
Get Provider Options
Use this endpoint when an imports template column exposesoptions_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 storeslabel: 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:countrieslogistics_tocsfuels
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faResponse
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
- Call
GET /v2/imports/templates/{template_id}. - Inspect each column.
- If a category column has inline
options, render those directly. - If a category column has
options_source, callGET /v2/imports/options/{source_key}. - Render the returned
value/labelpairs in the UI.
countrymay useoptions_source="countries"fuelmay useoptions_source="fuels"for canonical logistics recharge fuel namestocmay useoptions_source="logistics_tocs"
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: Unknownsource_key
options_source key.
Related Endpoints
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