Skip to content

Action Types

GET /actions/{action}/types

Returns type metadata for a specific action:

  • has_types: whether the action supports type filtering
  • types: list of currently available type values for that action

Use this endpoint to discover type support dynamically instead of hardcoding action-specific rules.

Field Type Description
action string Action name
has_types boolean Whether this action supports `type` filtering
types string[] Available type values for the action (empty when `has_types` is false)
Terminal window
curl https://api.gifukai.com/actions/kiss/types
{
"action": "kiss",
"has_types": true,
"types": ["cheek", "forehead", "mouth"]
}
Status Description
200 Successfully returned action type metadata
500 Internal server error