Make API requests

Updated at:

CloudFlow uses the RPC protocol. You can call API operations by sending HTTP GET or POST requests to a CloudFlow endpoint. Each request must include the required parameters and a valid signature for authentication.

Request syntax

Use the following URL format for GET requests. Encode the URL in UTF-8.

http(s)://Endpoint/?Action=xx&Parameters
  • Endpoint: The CloudFlow API endpoint for your region. See Endpoints.

  • Action: The API operation to perform. For example, set Action to StartExecution to start a workflow execution.

  • Parameters: Request parameters separated by ampersands (&). Include both common parameters and operation-specific parameters.

Example: Call the StartExecution operation:

https://<Endpoint>/?Action=StartExecution
&FlowName=Flow
&<Common request parameters>
Note

Send API requests over HTTPS for security.

Endpoints

CloudFlow API endpoints follow the format {region-id}.fnf.aliyuncs.com.

Region

Public endpoint

VPC endpoint

Classic network endpoint

China (Hangzhou)

cn-hangzhou.fnf.aliyuncs.com

cn-hangzhou-internal.fnf.aliyuncs.com

cn-hangzhou-classic.fnf.aliyuncs.com

China (Shanghai)

cn-shanghai.fnf.aliyuncs.com

cn-shanghai-internal.fnf.aliyuncs.com

cn-shanghai-classic.fnf.aliyuncs.com

China (Beijing)

cn-beijing.fnf.aliyuncs.com

cn-beijing-internal.fnf.aliyuncs.com

cn-beijing-classic.fnf.aliyuncs.com

China (Qingdao)

cn-qingdao.fnf.aliyuncs.com

cn-qingdao-internal.fnf.aliyuncs.com

cn-qingdao-classic.fnf.aliyuncs.com

China (Shenzhen)

cn-shenzhen.fnf.aliyuncs.com

cn-shenzhen-internal.fnf.aliyuncs.com

cn-shenzhen-classic.fnf.aliyuncs.com

Singapore

ap-southeast-1.fnf.aliyuncs.com

ap-southeast-1-internal.fnf.aliyuncs.com

ap-southeast-1-classic.fnf.aliyuncs.com

US (Silicon Valley)

us-west-1.fnf.aliyuncs.com

us-west-1-internal.fnf.aliyuncs.com

us-west-1-classic.fnf.aliyuncs.com

Common parameters

Include the following parameters in every GET request to a CloudFlow API endpoint.

Parameter

Type

Required

Example

Description

Action

String

Yes

StartExecution

The API operation to perform.

AccessKeyId

String

Yes

yourAccessKeyID

Your Alibaba Cloud AccessKey ID. For more information, see Obtain an AccessKey pair.

Signature

String

Yes

OLeaidS1JvxuMvnyHOwuJ%2BuX5qY%3D

The request signature. For more information, see Request syntax and signature method V3.

SignatureMethod

String

Yes

HMAC-SHA1

The signature encryption algorithm. Default: HMAC-SHA1.

SignatureVersion

String

Yes

1.0

The signature algorithm version. Default: 1.0.

SignatureNonce

String

Yes

3ee8c1b8-****-44af-****-4e0ad82fd6cf

A unique random value to prevent replay attacks. Use a different value for each request.

Timestamp

String

Yes

2024-01-01T12:00:00Z

The request timestamp in ISO 8601 format: yyyy-MM-ddTHH:mm:ssZ (UTC).

Version

String

Yes

2019-03-15

The API version in YYYY-MM-DD format. Default: 2019-03-15.

Format

String

No

json

The response format. Valid values: JSON, XML. Default: JSON.