[Yandex Cloud documentation](../../../../index.md) > [Yandex Serverless Integrations](../../../index.md) > [Step-by-step guides](../../index.md) > Workflows > Managing a workflow execution > Starting a workflow execution > Using a link

# Executing a workflow via a link

## Getting a link for workflow execution {#get-link}

{% list tabs group=instructions %}

- Management console {#console}

    {% note info %}

    You can get a link for workflow execution using the management console only if the workflow is [public](../workflow/make-public.md).

    {% endnote %}

    1. In the [management console](https://console.yandex.cloud), select the folder containing the workflow.
    1. Navigate to **Serverless Integrations**.
    1. In the left-hand panel, click ![image](../../../../_assets/console-icons/graph-node.svg) **Workflows**.
    1. Select a workflow. The execution link will appear in the **Start URL** field.

- CLI {#cli}

    To get an execution link, run this command:

    ```bash
    yc serverless workflow get <container_name>
    ```

    The execution link will appear in the `execution_url` field.

- API {#api}

  To get a workflow execution link, use the [get](../../../workflows/api-ref/Workflow/get.md) REST API method for the [Workflow](../../../workflows/api-ref/Workflow/index.md) resource or the [WorkflowsService/Get](../../../workflows/api-ref/grpc/Workflow/get.md) gRPC API call. The execution link will appear in the `execution_url` field.

{% endlist %}

## Executing a workflow via HTTPS {#https}

If the workflow is:
* [Public](../workflow/make-public.md), any user can run it.
* Private, the user needs to get authenticated by providing an [IAM token](../../../../iam/concepts/authorization/iam-token.md) or [API key](../../../../iam/concepts/authorization/api-key.md) in the `Authorization` header.

To execute a workflow, send a POST request:

* Example of public workflow execution without providing the input data:

    ```bash
    curl -X POST "https://serverless-workflows.api.cloud.yandex.net/workflows/v1/execution/fd2g4pu20roc********/start"
    ```

*  Example of executing a private workflow without providing the input data and with IAM token authentication:

    ```bash
    IAM_TOKEN="<IAM_token>"
    curl -X POST \
    --header "Authorization: Bearer $IAM_TOKEN" \
    "https://serverless-workflows.api.cloud.yandex.net/workflows/v1/execution/dfq3l36kr2gh********/start"
    ```

*  Example of executing a private workflow without providing the input data and with API key authentication:

    ```bash
    API_KEY="<API_key>"
    curl -X POST \
    --header "Authorization: Api-Key $API_KEY" \
    "https://serverless-workflows.api.cloud.yandex.net/workflows/v1/execution/dfq3l36kr2gh********/start"
    ```

* Example of public workflow execution with providing input data (the input data is passed to the workflow input unchanged):

    ```bash
    curl "https://serverless-workflows.api.cloud.yandex.net/workflows/v1/execution/fd2g4pu20roc********/start" -d '{"hello": "world"}'
    ```

#### Useful links {#see-also}

* [Workflow execution](../../../concepts/workflows/execution.md)
* [Getting a list of workflow executions](get-list.md)