Create a widget for an agent
POST
https://server.heyrik.com/api/v1/widgetsHeaders
AuthorizationstringRequiredUse Bearer $HEYRIK_API_KEY with an account-scoped API key. Keep the key on your server.
Parameters 3
Fields documented for this operation. See the request example for placement and structure.
agency_idstringRequiredAgent that answers.
namestringLabel.
allowed_originsarrayDomains allowed to embed it — lock this down.
Response
No response example is documented for this operation yet.
Error referencePOST/widgets
cURL
curl -X POST https://server.heyrik.com/api/v1/widgets \
-H "Authorization: Bearer $HEYRIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agency_id": "agc_9f2a1c30",
"name": "Website chat",
"allowed_origins": ["https://acme.com"]
}'Illustrative examples · No live request is sent
