# Alibaba Cloud MPServerless API

> Alibaba Cloud MPServerless API on Apizie: 84 endpoints (Adds a CORS domain to a service space, Add DingTalk Open Platform configuration, Call the AttachWebHostingCertificate operation to attach a certificate, Deletes files from static website hosting in bulk, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:aliyun-mpserverless`
- Category: Cloud
- Status: byok
- Source: https://api.alibabacloud.com/product/mpserverless
- Page: https://zieapi.vercel.app/api/cloud/aliyun-mpserverless
- OpenAPI: https://zieapi.vercel.app/api/cloud/aliyun-mpserverless/openapi.json

Alibaba Cloud OpenAPI for MPServerless (mpserverless, version 2019-06-15). Calls are signed with ACS3-HMAC-SHA256 using your AccessKey ID and secret.

## Endpoints

### Adds a CORS domain to a service space
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/add-cors-domain` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Domain | string | yes | The domain name. Wildcards are supported for the prefix and port |
| SpaceId | string | yes | The ID of the service space |

### Add DingTalk Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/add-dingtalk-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| AppId | string | yes | DingTalk miniapp ID |
| AppSecret | string | yes | DingTalk miniapp key |
| SpaceId | string | yes | Service Space ID |

### Call the AttachWebHostingCertificate operation to attach a certificate
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/attach-web-hosting-certificate` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The workspace ID |
| Domain | string | yes | The custom domain name |
| CertType | string | yes | The certificate type. Valid values: upload: Upload a certificate. cas: Use an existing certificate |
| CertName | string | no | The name of the certificate |
| ServerCertificate | string | yes | The content of the certificate |
| PrivateKey | string | yes | The private key of the certificate |

### Deletes files from static website hosting in bulk
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/batch-delete-web-hosting-files` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | ID of the service space |
| FilePaths | string | yes | Paths of the files to delete (JSON-encoded) |

### Binds a custom domain name
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/bind-web-hosting-custom-domain` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The service space ID |
| CustomDomain | string | yes | The custom domain name that has an ICP filing |

### Checks whether an Alibaba Cloud user has the required permission
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/check-mp-serverless-role-exists` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| RoleName | string | yes | Required parameter. Set to AliyunServiceRoleForMPServerless |

### Creates a database export task
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-dbexport-task` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the workspace |
| Collection | string | no | The name of the collection |
| FileType | string | no | The type of the exported file. Valid values: JSON CSV |
| Fields | string | no | The list of fields to export, separated by commas (,). This parameter is required when the file type is CSV |

### Create a database import job.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-dbimport-task` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The service space ID. |
| Collection | string | yes | Collection name. |
| FileType | string | yes | The type of the import file. Valid values: JSON CSV |
| Mode | string | no | The conflict handling mode. Valid values: INSERT (default): Ignore the record if a conflict occurs during import. UPSERT: Update the… |

### Creates a collection rollback task. After the task is created, the task ID is returned
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-dbrestore-task` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |
| BackupId | string | yes | The ID of the backup file |
| OriginCollections | string | yes | The names of the collections to roll back. Separate multiple collection names with commas (,), such as `coll1,coll2` |
| NewCollections | string | no | The names of the collections after the rollback. The names cannot be the same as existing document names in the database. The names… |
| Mode | string | no | The task mode. The value is case-sensitive. Valid values: RESTORE: Creates a collection rollback task. You must specify OriginCollections… |

### Create a cloud function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | yes | The function name. The name must be 1 to 30 characters long and can contain only letters, digits, underscores (_), and hyphens (-). It… |
| Desc | string | no | Description of the cloud function |
| SpaceId | string | yes | The ID of the service space to which the cloud function belongs |
| Runtime | string | no | Execution runtime of the cloud function. The default value is nodejs14. Valid values include nodejs12, nodejs14, and others. For more… |
| Memory | integer | no | Memory specification for the function. The value must be a multiple of 64, with a minimum of 128 MB and a maximum of 2048 MB |
| Timeout | integer | no | The function timeout, in seconds. Default value is 5. Valid values range from 1 to 7200 |

### Creates a function deployment
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-function-deployment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | yes | The name of the deployment |
| SpaceId | string | yes | The ID of the space where the function is located |

### Create a miniapp Serverless service space
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-space` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | no | Service Space Name. It must start with a letter and can only contain letters, digits, and characters |
| Desc | string | no | Description of the service space |
| WorkspaceId | integer | no | Workspace ID |

### Creates a service space and places an order
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/create-space-with-order` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | yes | The name of the service space |
| Desc | string | no | The description of the service space |
| SubscriptionType | string | yes | The billing method. Valid values: Subscription: Subscription. PayAsYouGo: Pay-as-you-go |
| Period | integer | no | The subscription duration in months. Valid values are 1, 2, 3, 6, and 12. This parameter is required when the billing method is subscription |
| PackageVersion | string | no | The specification of the subscription package. This parameter is required when the billing method is subscription |
| UseCoupon | string | no | Specifies whether to use a cash coupon. Valid values: true: Use a cash coupon. false: Do not use a cash coupon. The default value is false |

### Delete Alipay Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-ant-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| AppId | string | yes | Miniapp ID |

### Deletes a CORS domain
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-cors-domain` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| DomainId | string | yes | Domain ID |
| SpaceId | string | yes | Service space ID |

### Delete a database collection via the API
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-dbcollection` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| Body | string | yes | The dataset to delete. The format is a JSON string where the static field "command" is set to "drop" and the "collection" value is the… |

### Delete the DingTalk Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-dingtalk-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| AppId | string | yes | DingTalk miniapp ID |
| SpaceId | string | yes | Service Space ID |

### Delete a file
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Id | string | yes | Delete a single file by its UUID, for example: ef69b85f-****-4942-8a0f-211a82b48ec7 Delete files by folder structure by providing a prefix… |
| SpaceId | string | yes | Service Space ID |

### Delete a cloud function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | yes | Function Name |
| SpaceId | string | yes | Service Space ID |

### Deletes a service space
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-space` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |

### Detaches the certificate and disables HTTPS access
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-web-hosting-certificate` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |
| Domain | string | yes | The domain name |

### Delete a file from static website hosting
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-web-hosting-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Space ID |
| FilePath | string | yes | File Path |

### Delete the WeChat Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/delete-wechat-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| AppId | string | yes | WeChat mini program ID |

### Trigger function deployment
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/deploy-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| DeploymentId | string | yes | Deployment ID |
| SpaceId | string | yes | Service Space ID to which the function belongs |

### Query an Alibaba Cloud CDN accelerated domain name.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-cdn-domain` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| TenantId | string | no | Tenant ID. |
| SpaceId | string | yes | Service space ID |
| Type | string | yes | Supports management of custom domain names for cloud storage and static websites: FILE: Alibaba Cloud CDN for cloud storage WEB: Alibaba… |

### View whether the Alibaba Cloud Function Compute service has been enabled
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-fcopen-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |

### Retrieves the signed URL required to upload a file
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-file-upload-signed-url` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Filename | string | yes | The original file name. If the name ends with a forward slash (/), an empty folder is created. Subfolders are supported. When you create a… |
| Size | integer | yes | The file size in bytes |
| SpaceId | string | yes | The service space ID |
| ContentType | string | yes | The file type. Examples: .pdf, .xls, .xlsx, .doc, .docx, .ppt, .pptx, and .txt |
| FileId | string | no | The custom path to upload the file. Subfolders are supported. The path can contain letters, digits, Chinese characters, hyphens (-),… |

### Queries the details of a cloud function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Name | string | yes | The name of the cloud function |
| SpaceId | string | yes | The ID of the service space to which the cloud function belongs |

### Queries the HTTP trigger configuration of a cloud function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-http-trigger-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |

### Queries the resource thresholds for a service space
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-resource-quota` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |

### Query resource usage
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-resource-usage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID. |
| PageNumber | integer | no | Page number. Valid values: any integer greater than 1. |
| PageSize | integer | no | Page size. The default value is 30, and the maximum value is 1000. Valid values: 1 to 1000. |
| StartTime | string | no | The start time for retrieving resource usage. The date format follows the ISO 8601 notation and uses UTC+8, in the format… |
| EndTime | string | no | The end time for retrieving resource usage. The date format follows the ISO8601 notation and uses UTC+8. The format is… |
| Format | string | no | The Format |

### Query permission rules
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-service-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Space ID |
| ServiceName | string | yes | Service Name. Valid values: db file |
| CollectionName | string | no | Collection name. This parameter is optional and is meaningful only when serviceName is db |

### Query the details of a service space.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-space-client-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | no | Service space ID. |
| Detail | string | no | Whether to return detailed information. The default value is false. |
| WorkspaceId | integer | no | Workspace ID |

### Query space instance information by spaceId, tenant ID, EMAS project space, or Package Tier.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-spaces` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNum | integer | no | Page number, starting from 0. |
| PageSize | integer | no | Page size. Default value is 10. |
| SpaceIds | string | no | List of service space IDs. (JSON-encoded) |
| TenantId | string | no | Tenant ID. |
| EmasWorkspaceId | integer | no | EMAS project Space ID. |
| SpecCode | string | no | Package Tier |

### Query the details of a file under static website hosting
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/describe-web-hosting-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| FilePath | string | yes | File Path, a required parameter |

### Enable an extension capability
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/enable-extension` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| ExtensionId | string | yes | UUID of the extension capability |

### Queries the certificate details for a custom domain name
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/get-web-hosting-certificate-detail` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |
| CustomDomain | string | yes | Custom domain name |

### Query the static website hosting configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/get-web-hosting-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |

### Obtain the domain ownership validation content
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/get-web-hosting-domain-verification-content` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| Domain | string | yes | Domain name |

### Query the activation status of the static website hosting feature
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/get-web-hosting-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |

### Obtain upload credentials for static website hosting.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/get-web-hosting-upload-credential` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The Space ID |
| FilePath | string | yes | File Path |

### Query CORS domain names
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-cors-domains` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |

### Query DingTalk Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-dingtalk-open-platform-configs` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |

### Query extension capabilities
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-extensions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNumber | integer | no | Page number. Default value is 1 |
| PageSize | integer | no | Page size. Default value is 10 |

### Query the file list.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Space ID |
| PageSize | integer | no | Number of entries per page. Default Value is 10 |
| Keyword | string | no | Keyword |
| FileId | string | no | ID or URL of the file(s) to query. You can query multiple files simultaneously by separating their IDs or URLs with commas (,). You can… |
| NextToken | string | no | Used to mark the position from which reading starts. An empty value indicates reading from the beginning. This feature is supported only… |
| Mode | string | no | File list pattern. Valid values: DEFAULT (default): Default pattern. All files are displayed in descending order by upload time.… |
| Prefix | string | no | Path prefix. By default, queries the root directory |
| AuthDelta | integer | no | Authentication validity duration, in seconds. This parameter takes effect only when you have enabled the authentication feature in Alibaba… |

### Retrieve a list of created cloud functions
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNum | integer | no | The page number. Starts from page 1 |
| PageSize | integer | no | The number of rows displayed per page. Default is 10 |
| FilterBy | string | no | Query conditions |
| SpaceId | string | yes | The service space ID to which the cloud function belongs |

### Queries a list of function deployments
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-function-deployment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNum | integer | no | The page number of the list. The value starts from 1. The default value is 1 |
| PageSize | integer | no | The number of entries per page. The maximum value is 100. The default value is 10 |
| Name | string | yes | The name of the deployment |
| SpaceId | string | yes | The ID of the workspace |
| Status | string | no | The status of the deployment. Valid values: DEPLOY_SUCCESS: Queries successful deployments. DEPLOY_FAILED: Queries failed deployments. If… |

### Query the execution logs of aggregation functions.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-function-log` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNum | integer | no | Page number. Default value is 1 |
| PageSize | integer | no | Page size. Default value is 10 |
| Name | string | yes | Function Name |
| SpaceId | string | yes | Space ID of the service space |
| LogRequestId | string | no | Request ID during function runtime |
| FromDate | integer | no | Start Time |
| ToDate | integer | no | End Time |
| Status | string | no | Status. Valid values: SUCCESS: Succeeded FAIL: Failed If empty, all statuses are returned |

### Query the Alipay and WeChat Open Platform configuration.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID. |
| Platform | string | yes | Platform. Valid values: Alipay WeChat |

### Queries the list of service workspaces
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-space` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| PageNum | integer | no | The page number, starting from 0 |
| PageSize | integer | no | The number of entries per page. Default value: 10 |
| SpaceIds | string | no | The list of service workspace IDs (JSON-encoded) |
| EmasWorkspaceId | string | no | The ID of the EMAS project workspace |

### Query the custom domain names attached to the current static website.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-web-hosting-custom-domains` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID. |

### Retrieve static website files with paging
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/list-web-hosting-files` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| Prefix | string | yes | Path prefix |
| Marker | string | no | Pagination cursor. Set this to the value of NextMarker returned from the previous page. For the first page, use an empty string |
| PageSize | integer | no | Page size. Default is 50, maximum is 500 |

### Update the static website configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/modify-web-hosting-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| IndexPath | string | yes | Home page path |
| ErrorPath | string | no | 404 error page path |
| AllowedIps | string | no | The whitelist of IP addresses allowed to access the test domain name for static website hosting. Access from IPs not on the whitelist may… |
| ErrorHttpStatus | string | no | The HTTP status code corresponding to the error page after ErrorPath is configured. Valid values are 404 and 200. The default value is 404 |

### Activate a Serverless product
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/open-service` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The service space ID to which the cloud function belongs |
| ServiceName | string | yes | Serverless product. Product categories include cloud function, cloud storage, and static website hosting. Valid values are CLOUD_FUNCTION,… |

### Enables the static website hosting feature
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/open-web-hosting-service` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |

### Query a backup collection by backup ID
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-dbbackup-collections` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |
| BackupId | string | yes | Backup file ID |

### Queries the backup time and backup ID. By default, backup records from the last 7 days are retained.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-dbbackup-dump-times` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID. |

### Queries the status of a database export task. If the task succeeds, the file download URL is returned. If…
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-dbexport-task-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The workspace ID |
| TaskId | string | yes | The task ID |

### Query the database import status
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-dbimport-task-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| TaskId | string | yes | Job ID |

### Queries the status of a collection rollback task
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-dbrestore-task-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |
| TaskId | string | yes | The task ID |

### Query the status of a Serverless product service.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-service-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID. |
| ServiceName | string | yes | Serverless product. Product categories include Cloud Function, Cloud Storage, and Static Website Hosting. Valid values are CLOUD_FUNCTION,… |

### Query the current month's usage and consumption of the service space.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-space-consumption` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | no | Service space ID |

### Queries the details of a plan based on the plan specifications
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-space-spec-detail` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpecCode | string | yes | Valid values: FREE: Developer Edition. BASE: Basic Edition. STANDARD: Standard Edition. PROFESSIONAL: Professional Edition. ENTERPRISE:… |

### Retrieves details about service space resource usage
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/query-space-usage` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The service space ID |
| StartTime | string | yes | The start time in UTC |
| EndTime | string | yes | The end time in UTC. The end time must be later than the start time. If the time range is within one day, hourly metering data is returned… |
| Interval | integer | no | This field is optional. If omitted, data granularity varies based on the query time span. For spans longer than one day, data is returned… |

### Purges the Alibaba Cloud CDN cache for a custom accelerated domain name used in static website hosting, so…
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/refresh-web-hosting-custom-domain-cache` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| DomainName | string | yes | Custom domain name for static website hosting |

### Register a file
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/register-file` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Id | string | yes | The UUID. The value is the ID returned by the DescribeFileUploadSignedUrl API |
| SpaceId | string | yes | The service Space ID |

### Rename a collection
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/rename-dbcollection` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The service Space ID |
| OriginCollection | string | yes | The name of the existing collection to be renamed. You must specify the name of a collection that already exists |
| NewCollection | string | yes | The new collection name. The new name must not be the same as any existing collection name |

### Reset the server key for the API
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/reset-server-secret` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |

### Execute a database command
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/run-dbcommand` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |
| Body | string | yes | The command for the database request, formatted as a JSON string. It contains two required fields: command: includes collection… |

### Execute a function. Synchronous execution supports a maximum duration of 60 seconds.
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/run-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID. |
| Body | string | yes | Formatted as a JSON string. The functionTarget field specifies the function name, and functionArgs contains the parameters passed to the… |

### Save the Alipay Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-ant-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| AppId | string | yes | Miniapp ID |
| PublicKey | string | no | Public key |
| PrivateKey | string | yes | Private key |
| SignMode | string | yes | Signature mode. Valid values are as follows: PUBLIC_KEY: public key. CERT: public key certificate |
| AppCert | string | no | Application public key certificate |
| PublicCert | string | no | Alipay public key certificate |
| RootCert | string | no | Alipay root certificate |

### Authorizes access in ISV mode
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-app-auth-token` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | ID of the service space |
| IsvAppId | string | yes | App ID of the ISV |
| AppId | string | yes | App ID of the miniapp |
| AppAuthToken | string | yes | Authorization token for the miniapp |

### Configure a CDN domain
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-cdn-domain-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| TenantId | string | no | The tenant ID |
| SpaceId | string | yes | The service space ID |
| Type | string | yes | FILE: Configures cloud storage CDN. WEB: Configures static website hosting CDN |
| CorsConfig | string | no | Set cross-domain: \`{"allowOrigin":"https\://\*.example.com", "accessOriginControl": true}\`. Delete cross-domain: Method 1:… |
| RefererConfig | string | no | Set whitelist: \`{"type":"white", "referList":"example.com", "allowEmpty":"off", "disableAst":"off"}\` Set blacklist: \`{"type":"black",… |
| IpConfig | string | no | Set whitelist: \`{"type":"white", "ipList":"192.168.2.0/24"}\` Set blacklist: \`{"type":"black", "ipList":"192.168.2.0/24"}\` Delete… |
| UaConfig | string | no | Set whitelist: \`{"type":"white", "uaList":"\*IE\*/\*firefox\*"}\` Set blacklist: \`{"type":"black", "uaList":"\*IE\*/\*firefox\*"}\`… |
| AuthConfig | string | no | Configure the authentication pattern. This is only valid in FILE pattern. After enabling authentication, complete URL signature… |

### Save domain configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-web-hosting-custom-domain-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| ForceRedirectType | string | yes | Force redirect options. HTTPS_FORCE: Force redirect. OFF: Do not redirect (default) |
| DomainName | string | yes | Domain name |

### Configure cross-origin settings for a static website
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-web-hosting-custom-domain-cors-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |
| DomainName | string | yes | Domain name |
| EnableCors | string | yes | Specifies whether to enable the cross-domain feature. Valid values: true: Enables the cross-domain feature. false: Disables the… |
| AccessControlAllowOrigin | string | no | Specifies the cross-origin validation rule. The default value is "*". The cross-origin validation rules are as follows: If set to "*", the… |
| AccessOriginControl | string | no | When cross-origin verification is enabled, specifies whether to validate the Origin field. true: Returns cross-origin headers only after… |

### Save the WeChat Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/save-wechat-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| AppId | string | yes | WeChat mini program ID |
| AppSecret | string | yes | WeChat mini program key |

### Deletes a custom domain name
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/unbind-web-hosting-custom-domain` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | The ID of the service space |
| CustomDomain | string | yes | The custom domain name |

### Update the DingTalk Open Platform configuration
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/update-dingtalk-open-platform-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| AppId | string | yes | DingTalk miniapp ID |
| AppSecret | string | yes | DingTalk miniapp key |
| SpaceId | string | yes | Service Space ID |

### Update a function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/update-function` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| Desc | string | no | Function description |
| Name | string | yes | Function name |
| SpaceId | string | yes | Service space ID |
| Memory | integer | no | Function memory size. Must be a multiple of 64 MB. Minimum is 128 MB. Maximum is 2048 MB |
| Timeout | integer | no | Function timeout period in seconds. Default is 5. Valid range is 1 to 7200 |
| HttpTriggerPath | string | no | HTTP trigger path. To disable this feature, set this parameter to an empty string. The path must start with /http. It cannot end with /.… |
| TimingTriggerConfig | string | no | Scheduled trigger configuration. To disable this feature, set this parameter to an empty string. For configuration rules, see Use… |
| TimingTriggerUserPayload | string | no | Custom input parameter for scheduled tasks. This feature is supported only in the commercial edition |
| InstanceConcurrency | integer | no | Maximum concurrent invocations per instance. Default is 1. Valid range is 1 to 20. Setting a value greater than 1 reduces cold starts. Use… |
| Runtime | string | no | Function runtime environment. Supported values include nodejs12 and nodejs14. For the full list, see Supported runtimes… |

### Updates the HTTP trigger configuration for a cloud function
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/update-http-trigger-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| EnableService | string | yes | Sets whether to enable the HTTP trigger feature. Values: true: Enables the HTTP trigger feature. false: Disables the HTTP trigger feature |
| SpaceId | string | yes | Service Space ID |
| CustomDomain | string | no | Custom domain name. If you do not pass this field, the custom domain name is not updated. If you set it to an empty string, the custom… |
| CustomDomainCertificate | string | no | The HTTPS certificate for the custom domain name. Use this with CustomDomainPrivateKey. If you do not pass these two fields, the… |
| CustomDomainPrivateKey | string | no | The private key for the custom domain name's HTTPS certificate. Use this with CustomDomainCertificate. If you do not pass these two… |

### Update permissions
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/update-service-policy` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| ServiceName | string | yes | Service Name. Valid values: db file |
| Policy | string | no | Permission rule. Required when PolicyName is EXTENDED |
| CollectionName | string | no | Collection Name. Required when ServiceName is db |
| PolicyName | string | no | Policy Name. Required when ServiceName is db. Valid values: PUBLICREAD: All users can read; only the creator and administrator can write.… |

### Update a service space
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/update-space` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service space ID |
| Desc | string | no | Description of the service space |
| Status | string | no | Service status. Valid values: IN_SERVICE: in service. PAUSED: pause |

### Authenticate the owner of the web host domain name
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/verify-web-hosting-domain-owner` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |
| SpaceId | string | yes | Service Space ID |
| Domain | string | yes | Domain name |
| VerifyType | string | yes | DNS validation method |

### version
`POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/version` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| endpoint | string | no | Regional endpoint, for example https://mpserverless.aliyuncs.com |

## Example
```
curl "https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/add-cors-domain" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Alibaba Cloud MPServerless API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/cloud:aliyun-mpserverless/add-cors-domain with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Alibaba Cloud MPServerless API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Alibaba Cloud MPServerless itself also needs your own key from aliyuncs.com.

### Can AI agents use the Alibaba Cloud MPServerless API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:aliyun-mpserverless.

### What is the status of the Alibaba Cloud MPServerless API?
Needs your own provider key (bring your own key)
