> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arc.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Actions

> Overview of Admin API actions available in CData Arc for operations beyond standard resource CRUD.

API actions extend the set of operations that can be performed on [Admin API resources](https://docs.arc.cdata.com/26.4/cloud/en/admin-api/admin-api-resources.md). Actions can also execute operations unrelated to specific resources. Actions are always invoked using an HTTP POST.

Each action is exposed at a dedicated application endpoint using the following convention: `/api.rsc/actionName`. For example, if CData Arc is hosted on **mydomain.com** and listening on port 8001, the following endpoint would be used to access the **cleanup** Action:

```xml theme={null}
POST http://mydomain.com:8001/api.rsc/cleanup
```

The action parameters are specified in the JSON-formatted body of the HTTP post. The request must include the appropriate content-type header (such as application/json) for the POST body to be interpreted correctly. Find the available parameters for each action by clicking **API** on the CData Arc navbar.

The Admin API includes the following actions:

| Action | Description |
| - | - |
| **cleanup** | Archive or delete log files, transaction entries in the database, and, optionally, files in the Send, Sent, and Received folders, for the specified workspaces and connectors. |
| **copyConnector** | Create a new Arc connector using an existing connector configuration. |
| **copyWorkspace** | Create a new Arc workspace by making copies of all the connectors in an existing workspace. |
| **createCert** | Create a new digital certificate (public/private key pair) for encryption, signing, decryption, verification, SSL/TLS, and so on. |
| **exchangeCert** | Exchange the specified certificate public keys with a trading partner. Only applicable for AS2 and OFTP connectors. |
| **export** | Create a configuration file (`.arcflow`) out of profiles settings, connector settings, or workspace settings. |
| **exportDataEncryptionKey** | Export the master encryption key as an encrypted data block that contains the data encryption key and its associated cryptographic metadata. |
| **getMessageCount** | Retrieve a count of all the unsent messages across all connectors in one or more workspaces. |
| **getTransactionLogs** | Retrieve detailed transaction log data for a specific transaction. |
| **import** | Import profile, connector, or workspace settings to Arc from a configuration archive (`.arcflow`). |
| **importDataEncryptionKey** | Import an encryption key (typically exported from a production environment) into a development or test instance, enabling the development environment to decrypt configuration data and credentials from production backups or imports. |
| **moveConnector** | Move a connector (including its settings, state, credential references, and transaction history) from one workspace on the Flows page to another, or rename it in the same workspace. After a successful move, the original connector is removed. Connections to other connectors are severed when the connector moves to a different workspace. |
| **moveConnectors** | Move a group of connectors (including their settings, states, credential references, and transaction history) from one workspace on the Flows page to another, and preserve existing connections between the connectors. Connections to connectors outside the group are severed and listed in the response. After a successful move, the original connectors are removed. |
| **receiveFile** | Instruct a specific connector to trigger the connector's receive action to download/receive a specific file (available for FTP, SFTP, and S3 connectors) or all applicable files (based on the connector's configuration). |
| **refreshAPICredential** | Regenerate an authtoken or client secret for a user and return the new plaintext value. Regenerating a client secret requires the user to have OAuth access enabled. Only users with the [Admin role](https://docs.arc.cdata.com/26.4/cloud/en/getting-started/administration/settings/user-roles.md#admin-role) can invoke this action. |
| **requeueMessage** | Move a message back into the Send folder processing queue so it can be reprocessed. |
| **sendFile** | Instruct a connector to process (upload, send, transform, and so on) a file in that connector's Send folder. |
| **setFlow** | Set the flow connections for the specified workspace. |


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