> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-llms-scoped-indexes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Action Entity

> Action Entity — CometChat documentation.

Base class for defining the type of actions that can be performed on `BaseInteractiveElement`

Various types of Actions:

| Action | Description | Key |
| - | - | - |
| API Action | To perform Post, PUT , DELETE, PATCH type of API actions on the user-defined APIs with given payload | apiAction |
| URL Navigation | To open any defined action on given url | urlNavigation |
| Custom Action | To set custom action on front end | customAction |

**API Action**

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    APIAction(
        url: url,//Replace this with the required url
        method: APIRequestTypeConstants.post,//replace this with the type of method
        dataKey: "cometchatData",//replace this with the key , if you want to replace the key oin which all the data for form will be sent
        headers: header,//set the header for the request
        payload: payload//set the payloaf forn the request
    )
    ```
  </Tab>
</Tabs>

***

**URL Navigation**

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    URLNavigationAction( url: "https://www.cometchat.com/") // Replace this with the required url
    ```
  </Tab>
</Tabs>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.