KIVEX
Capabilities

action.get

Check whether a person confirmed an action you prepared.

Returns the current state of an action you prepared, such as an inquiry waiting for the person's confirmation. Only actions created with the same API key are visible.

Available to agents with an API key. It does not act for a particular person.

Request

Send the capability name and its input to the site's invoke endpoint.

curl https://api.kivex.chat/v1/sites/$SITE/invoke \
  -H "Authorization: Bearer $KIVEX_KEY" \
  -H "Content-Type: application/json" \
  -d '{"capability":"action.get","input":{"actionId":"act_01JA0Q"}}'

Prop

Type

Response

The answer is an envelope: data in the shape below, and evidence with the source and time of every value that has an evidenceRef.

Prop

Type

Good to know

  • Poll sparingly, e.g. when the person says they confirmed. The state changes only when they act or the action expires.

Errors

This capability can answer with BAD_REQUEST, NOT_SUPPORTED, NOT_ALLOWED, RATE_LIMITED, SOURCE_UNAVAILABLE.

Example: confirmed

{
  "actionId": "act_01JA0Q"
}

On this page