curl --location 'https://dashscope-intl.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/instruct' \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "encryptedTravelId": "{encryptedTravelId}", "content": "Smile and greet me, and ask how my day is going", "clientRequestId": "instruction_greeting_001", "userAgent": "HappyOyster-Web/1.2.0"}'
Copy
{ "code": 0, "message": null, "data": { "encryptedTravelId": "trvl_a1b2****", "content": "Smile and greet me, and ask how my day is going", "accepted": true }}
Idempotency key for instruction retries. Reuse the same value when retrying the same instruction to avoid duplicate billing. Recommended format [A-Za-z0-9_-]{1,32}. Being omitted or malformed does not return a parameter error: the server falls back to the gateway request_id, and uses a random idempotency key when that is still unavailable. This field is only used for billing deduplication; it does not guarantee that the instruction processing itself runs exactly once.
Whether the instruction has been accepted and entered the processing flow.
cURL - Send process instruction
Copy
curl --location 'https://dashscope-intl.aliyuncs.com/api/v2/apps/happyoyster-1.0-acting/openapi/v1/travels/instruct' \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "encryptedTravelId": "{encryptedTravelId}", "content": "Smile and greet me, and ask how my day is going", "clientRequestId": "instruction_greeting_001", "userAgent": "HappyOyster-Web/1.2.0"}'
Copy
{ "code": 0, "message": null, "data": { "encryptedTravelId": "trvl_a1b2****", "content": "Smile and greet me, and ask how my day is going", "accepted": true }}