{
"structured_data_field_types": [
{
"type": "text",
"description": "Free-text field; value is a string"
}
]
}
{
"code": 401,
"message": "invalid token"
}
{
"code": 403,
"message": "forbidden"
}
Use this endpoint to get the field types Suki supports in Embedded Form templates. Each field you send in sections[].precharted_content[].fields[] needs a type from this list. The same list is also returned as structured_data_field_types on System Information.
import requestsurl = "https://sdp.suki.ai/api/v1/info/structured-data-field-types"headers = { "sdp_suki_token": "<sdp_suki_token>", "sdp_provider_id": "<sdp_provider_id>",}response = requests.get(url, headers=headers)if response.status_code == 200: field_types = response.json().get("structured_data_field_types", []) supported = {item.get("type") for item in field_types} for item in field_types: print(f" {item.get('type')}: {item.get('description')}") # Validate a template field before you seed context print("radio supported:", "radio" in supported)else: print(f"Failed to get field types: {response.status_code}") print(response.json())
const response = await fetch( "https://sdp.suki.ai/api/v1/info/structured-data-field-types", { headers: { sdp_suki_token: "<sdp_suki_token>", sdp_provider_id: "<sdp_provider_id>", }, });if (response.ok) { const body: { structured_data_field_types?: Array<{ type: string; description?: string }> } = await response.json(); const fieldTypes = body.structured_data_field_types ?? []; const supported = new Set(fieldTypes.map((item) => item.type)); fieldTypes.forEach((item) => console.log(` ${item.type}: ${item.description}`)); // Validate a template field before you seed context console.log("radio supported:", supported.has("radio"));} else { const error = await response.json(); console.error(`Failed to get field types: ${response.status}`, error);}
Authorizations
sdp_suki_token
string
header
required
Suki access token (suki_token) from Login or Register. Expires after one hour.
Headers
sdp_provider_id
string
Optional for standard partners.
Required for:
Bearer authentication. Use the same provider_id returned by the Login or Register API.
Single Auth Token authentication. Include the same provider_id on every request as sdp_provider_id.
Example:
"provider-123"
Response
Request succeeded.
Response body for the /info/structured-data-field-types endpoint
structured_data_field_types
object[]
Supported field types for Embedded Form templates.