Lookup API
A Lookup API field checks a value against your own API, which can correct it and add details.
Options
- Connector: An HTTP connector, whose base address fills in the endpoint. See HTTP.
- Context: Other fields whose values are sent along.
- Lookup, Autocomplete and Translation: The endpoints that check a value, suggest values while a reviewer types, and translate a value before it is checked.
These settings only apply to the Live environment.
What Send AI sends
Send AI sends one POST with a JSON list of all fields that share a connector and endpoint, with your connector's token in the Authorization header. Each item holds the value as read, its context fields and their IDs.
What your API answers
Your API answers with a list that matches the items by id. Each answer can hold a value, a description, extra details in meta, and an error_message or warning_message. Answers are kept for 60 seconds.
Enable outgoing transform and Enable incoming transform reshape the request and the answer with a short JavaScript function, when your API expects another shape.