Skip to main content
Use the post command to perform POST HTTP requests to a specified endpoint of the WaaS 2.0 service. If the path argument is provided, the command initiates a POST request to that endpoint. Otherwise, it retrieves a list of all available POST operations or displays the description of a specified operation within the WaaS 2.0 API.
To make API requests via Cobo CLI, you need to authenticate your requests by logging in and using Org Access Tokens or API Keys as the authentication method. For more information, refer to Authenticate with Org Access Tokens and Authenticate with API Keys.

Usage

cobo post <path> [options]

Arguments

<path>: The URL of the endpoint to which the POST request will be sent.

Options

  • -d, --describe: Display the description of the specified POST operation, including its expected responses and error information (if any). You can use this option with parameter names to retrieve specific descriptions, for example:
    cobo post -d /wallets/mpc/vaults --name --vault_type
    
    This command displays the information about both the name and vault_type parameters for the API operation of creating a vault.
  • -l, --list: List all available POST operations of the WaaS 2.0 service.

Example

Create a new wallet

cobo post /wallets --name "My New Wallet" --wallet_type Custodial --wallet_subtype Asset
This command creates a new Custodial Wallet (Asset Wallet) named My New Wallet.

POST operation description

cobo post /wallets -d
This command retrieves the description of the Create wallet operation.

List all POST operations

cobo post -l
This command lists all available POST operations of the WaaS 2.0 service.

API Reference

For a complete list of available POST endpoints and their parameters, refer to the API reference.
Feel free to share your feedback to improve our documentation!