# Workflow Executions API

Execute workflows created with Workflows API.

- [REST Resource: projects.locations.workflows.executions.callbacks](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#projects.locations.workflows.executions.callbacks)
- [REST Resource: v1.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#v1.projects.locations.workflows)
- [REST Resource: v1.projects.locations.workflows.executions](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#v1.projects.locations.workflows.executions)
- [REST Resource: v1.projects.locations.workflows.executions.callbacks](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#v1.projects.locations.workflows.executions.callbacks)
- [REST Resource: v1.projects.locations.workflows.executions.stepEntries](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#v1.projects.locations.workflows.executions.stepEntries)
- [REST Resource: v1beta.projects.locations.workflows.executions](https://docs.cloud.google.com/workflows/docs/reference/executions/rest#v1beta.projects.locations.workflows.executions)

## Service: workflowexecutions.googleapis.com

To call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

### Discovery document

A [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery documents:

- <https://workflowexecutions.googleapis.com/$discovery/rest?version=v1>
- <https://workflowexecutions.googleapis.com/$discovery/rest?version=v1beta>

### Service endpoint

A [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

- `https://workflowexecutions.googleapis.com`

## REST Resource: [v1.projects.locations.workflows](https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows/triggerPubsubExecution` | `POST /v1/{workflow=projects/*/locations/*/workflows/*}:triggerPubsubExecution` Triggers a new execution using the latest revision of the given workflow by a Pub/Sub push notification. |

## REST Resource: [v1.projects.locations.workflows.executions](https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/cancel` | `POST /v1/{name=projects/*/locations/*/workflows/*/executions/*}:cancel` Cancels an execution of the given name. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/create` | `POST /v1/{parent=projects/*/locations/*/workflows/*}/executions` Creates a new execution using the latest revision of the given workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/deleteExecutionHistory` | `POST /v1/{name=projects/*/locations/*/workflows/*/executions/*}:deleteExecutionHistory` Deletes all step entries for an execution. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/exportData` | `GET /v1/{name=projects/*/locations/*/workflows/*/executions/*}:exportData` Returns all metadata stored about an execution, excluding most data that is already accessible using other API methods. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/get` | `GET /v1/{name=projects/*/locations/*/workflows/*/executions/*}` Returns an execution of the given name. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions/list` | `GET /v1/{parent=projects/*/locations/*/workflows/*}/executions` Returns a list of executions which belong to the workflow with the given name. |

## REST Resource: [v1.projects.locations.workflows.executions.callbacks](https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.callbacks)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.callbacks/list` | `GET /v1/{parent=projects/*/locations/*/workflows/*/executions/*}/callbacks` Returns a list of active callbacks which belong to the execution with the given name. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.callbacks/sendHttpCallback` | `NONE /v1/{workflow=projects/*/locations/*/workflows/*}/executions/{executionId}/callbacks/{callbackId}` Sends an HTTP callback to resume the corresponding workflow execution. |

## REST Resource: [v1.projects.locations.workflows.executions.stepEntries](https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.stepEntries)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.stepEntries/get` | `GET /v1/{name=projects/*/locations/*/workflows/*/executions/*/stepEntries/*}` Returns a step entry. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1/projects.locations.workflows.executions.stepEntries/list` | `GET /v1/{parent=projects/*/locations/*/workflows/*/executions/*}/stepEntries` Returns a list of step entries for the corresponding workflow execution. |

## REST Resource: [v1beta.projects.locations.workflows.executions](https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions/cancel` | `POST /v1beta/{name=projects/*/locations/*/workflows/*/executions/*}:cancel` Cancels an execution of the given name. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions/create` | `POST /v1beta/{parent=projects/*/locations/*/workflows/*}/executions` Creates a new execution using the latest revision of the given workflow. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions/get` | `GET /v1beta/{name=projects/*/locations/*/workflows/*/executions/*}` Returns an execution of the given name. |
| `https://docs.cloud.google.com/workflows/docs/reference/executions/rest/v1beta/projects.locations.workflows.executions/list` | `GET /v1beta/{parent=projects/*/locations/*/workflows/*}/executions` Returns a list of executions which belong to the workflow with the given name. |