Create Card Click Event
Log an EventLog for a client-side card click interaction.
POST
/api/v1/agents/test/{test_id}/card-clickAuthentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Path parameters
test_id
string
path
required
Request body
application/json
body
CardClickRequest
required
2 fields
action_idstringrequiredHuman-readable identifier for the card action.
Minimum length
1Maximum length 64Pattern ^[a-z0-9][a-z0-9_-]*$action_typeenum<string>requiredThe type of action triggers, either "action", or "cta".
Allowed values
["action","cta"]Request example
{
"action_id": "string",
"action_type": "action"
}Responses
200Successful Response
application/json
response
CardClickResponse
required
1 field
statusstringrequiredThe outcome of the request
Response example
{
"status": "string"
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
