{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/cloud:aliyun-smqproxy/batch-delete-message":{"post":{"operationId":"cloud_aliyun_smqproxy_batch_delete_message","summary":"Deletes up to 16 messages from a queue in a single batch","description":"DELETE /queues/{queueName}/messages","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["queueName"],"properties":{"queueName":{"type":"string","description":"The name of the queue"},"ReceiptHandles":{"type":"array","description":"The receipt handles of multiple messages"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/batch-peek-message":{"get":{"operationId":"cloud_aliyun_smqproxy_batch_peek_message","summary":"Batch peeks at messages in a queue without changing the message status","description":"GET /queues/{queueName}/messages","tags":["cloud"],"parameters":[{"name":"queueName","in":"query","required":true,"description":"The queue name","schema":{"type":"string","description":"The queue name"}},{"name":"peekonly","in":"query","required":false,"description":"Indicates that this request only peeks at messages at the top of the queue without changing the message status. Fixed value: true","schema":{"type":"string","description":"Indicates that this request only peeks at messages at the top of the queue without changing the message status. Fixed value: true"}},{"name":"numOfMessages","in":"query","required":false,"description":"The maximum number of messages to peek at in this BatchPeekMessage request","schema":{"type":"integer","description":"The maximum number of messages to peek at in this BatchPeekMessage request"},"example":"16"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/batch-receive-message":{"get":{"operationId":"cloud_aliyun_smqproxy_batch_receive_message","summary":"Receives up to 16 messages in a batch from a specified queue for consumption","description":"GET /queues/{queueName}/messages","tags":["cloud"],"parameters":[{"name":"queueName","in":"query","required":true,"description":"The name of the queue","schema":{"type":"string","description":"The name of the queue"}},{"name":"numOfMessages","in":"query","required":false,"description":"The maximum number of messages to receive in this request","schema":{"type":"integer","description":"The maximum number of messages to receive in this request"},"example":"10"},{"name":"waitseconds","in":"query","required":false,"description":"The maximum polling wait time for this request, in seconds. A value of 0 indicates that the request returns immediately","schema":{"type":"integer","description":"The maximum polling wait time for this request, in seconds. A value of 0 indicates that the request returns immediately"},"example":"0"}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/batch-send-message":{"post":{"operationId":"cloud_aliyun_smqproxy_batch_send_message","summary":"Sends up to 16 messages in a batch to a specified queue, with a total size not exceeding 64 KB","description":"POST /queues/{queueName}/messages","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["queueName"],"properties":{"queueName":{"type":"string","description":"The name of the queue"},"Messages":{"type":"array","description":"The list of messages"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/change-message-visibility":{"post":{"operationId":"cloud_aliyun_smqproxy_change_message_visibility","summary":"Extends or shortens the invisibility period of a message in the Inactive state","description":"PUT /queues/{queueName}/messages","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["queueName"],"properties":{"queueName":{"type":"string","description":"The name of the queue"},"receiptHandle":{"type":"string","description":"The temporary handle of the message returned after the last consumption"},"visibilityTimeout":{"type":"integer","description":"The countdown from the current time until the message becomes Active again. Valid values: 1 to 43200. Unit: seconds, which ranges from 1…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/publish-message":{"post":{"operationId":"cloud_aliyun_smqproxy_publish_message","summary":"Publishes a message to a specified topic. The message is pushed to all subscribed endpoints","description":"POST /topics/{topicName}/messages","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["topicName"],"properties":{"topicName":{"type":"string","description":"The topic name"},"MessageAttributes":{"type":"object","description":"The message attributes. This parameter is not required when pushing messages to queue or HTTP endpoints"},"MessageBody":{"type":"string","description":"The message content. Base64-encode the content in advance. Maximum size: 64 KB"},"MessageGroupId":{"type":"string","description":"The MessageGroupId"},"MessageTag":{"type":"string","description":"The message tag, which is used for message filtering in subscriptions. Maximum length: 64 characters"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/send-message":{"post":{"operationId":"cloud_aliyun_smqproxy_send_message","summary":"Sends a message to a specified queue with configurable delay and priority","description":"POST /queues/{queueName}/messages","tags":["cloud"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["queueName"],"properties":{"queueName":{"type":"string","description":"The queue name"},"DelaySeconds":{"type":"integer","description":"The delay period before the message can be consumed after it is sent, in seconds. The maximum value is 7 days"},"MessageBody":{"type":"string","description":"The message body. Base64-encode the message body in advance to avoid issues with special characters"},"MessageGroupId":{"type":"string","description":"The message group ID. This ensures ordered delivery of messages within the same group. Valid only for FIFO queues"},"Priority":{"type":"integer","description":"The message priority. A smaller value indicates a higher priority, where 1 is the highest priority"},"UserProperties":{"type":"object","description":"The user-defined properties"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}},"/v1/cloud:aliyun-smqproxy/version":{"post":{"operationId":"cloud_aliyun_smqproxy_version","summary":"version","description":"POST /","tags":["cloud"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"byok"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}