This tutorial gets one sourced answer from the public API. Use the base URL of the LUCA agent site that you want to query.
- Open
/llms.txton that site. - Read the main product description and its limits.
- Ask a product question:
curl 'https://luca-pay-agents-preview.pages.dev/api/v1/answer?q=fees'
- Read the
review_stateandsource_checked_atfields. - Open the
sourcesURLs in the response. - Give the person a short answer with those links.
- If the pages conflict, tell the person and link the current terms.
The public API returns reviewed facts. Use the source links to check the answer. Do not call the answer credit approval.