Client API

Actions API

The Public Client API is designed for the JavaScript SDK and does not require authentication. It's primarily used for creating persons, sessions, and responses within the TypeflowAI platform. This API is ideal for client-side interactions, as it doesn't expose sensitive information.

This API can be used to:


POST/api/v1/client/<environment-id>/actions

Add Action for User

Adds an Actions for a given User by their User ID

Mandatory Body Fields

  • Name
    userId
    Type
    string
    Description

    The id of the user for whom the action is being created.

  • Name
    name
    Type
    string
    Description

    The name of the Action being created.

Request

POST
/api/v1/client/<environment-id>/actions
curl --location --request POST 'https://dashboard.typeflowai.com/api/v1/client/<environment-id>/actions' \
--data-raw '{
    "userId": "1",
    "name": "new_action_v2",
    "properties":{}

}'

Response

{
"data": {}
}

Was this page helpful?