API Reference
Resolve job configuration picker options
Resolves one page of options for a schema-backed job config entry using its connector-backed OptionSource. side is source / target for a field mapping entry, or a form field key…
POST /api/jobs/{id}/config/{key}/options
Resolves one page of options for a schema-backed job_config entry using
its connector-backed OptionSource. side is source/target for a
field_mapping entry, or a form field key for a form select/multi_select.
Operation ID: resolveJobConfigOptions
Authentication
Option 1
- BearerAuth (
http bearer) API key token. Create via POST /api/api-keys. Format:envoy_<hex>
Option 2
- CookieAuth (
apiKey) Session cookie set after login + TOTP verification
Path parameters
id—integer,requiredResource IDkey—string,required
Request body
application/json
- Reference:
WidgetOptionsRequest- Type:
object - Description:
sideselects the option source: 'source' | 'target' for a field_mapping widget, or a fieldkeyfor a form widget.qis server-side search,cursoris the pagination cursor (omit for the first page).valueis the current draft widget value, used by dependent form option sources. - Properties:
side(string)q(string)cursor(string)value(unknown) — Current draft value for this input widget.
- Type:
Success responses
200
One page of options
Content type: application/json
- Reference:
WidgetOptionsResponse- Type:
object - Properties:
options(array<WidgetOption>,required)- Items:
- Reference:
WidgetOption- Type:
object - Properties:
label(string,required)value(string,required)subText(string)
- Type:
- Reference:
- Items:
next_cursor(string | null,required)- Nullable: yes
- Type:
Error responses
400
Validation error
Content type: application/json
- Reference:
Error- Type:
object - Properties:
error(string)- Example:
NOT_FOUND
- Example:
message(string)- Example:
Resource not found
- Example:
- Type:
Example:
{
"error": "VALIDATION_ERROR",
"message": "Invalid input"
}404
Resource not found
Content type: application/json
- Reference:
Error- Type:
object - Properties:
error(string)- Example:
NOT_FOUND
- Example:
message(string)- Example:
Resource not found
- Example:
- Type:
Example:
{
"error": "NOT_FOUND",
"message": "Resource not found"
}Examples
cURL
curl --request POST \
--url 'https://your-envoy.example.com/api/jobs/YOUR_ID/config/YOUR_KEY/options' \
--header 'Authorization: Bearer $API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"side": "string",
"q": "string",
"cursor": "string",
"value": "string"
}'JavaScript (fetch)
const response = await fetch('https://your-envoy.example.com/api/jobs/YOUR_ID/config/YOUR_KEY/options', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"side": "string",
"q": "string",
"cursor": "string",
"value": "string"
}),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = response.status === 204 ? null : await response.json();
console.log(data);