--- title: 'Execute an asynchronous execution through API Gateway' weight: 95 --- 1. Go to the API Gateway console and select the API created for this module. ![API Console](/static/img/module-7/api-console-3.png) 2. From the list of resources find the `execution` resource and click on `POST` ![API Execution New](/static/img/module-7/api-execution-new.png) 3. Click on `Test` 4. At the bottom of the page you will find a field called `Request Body`, paste the following json there and replace the sample `stateMachineArn` with the ARN of your State Machine. :::code{showCopyAction=true language=json} { "input": "{\"data\": [20,40,60,10,9]}", "name": "MyExecution", "stateMachineArn": "arn:aws:states:us-east-1:123456789012:stateMachine:ParallelProcessingMachine" } ::: ![API Test](/static/img/module-7/api-test.png) 5. Click `Test`. 6. Look at the `Response Body`. Notice that it includes references to the `executionArn` and the `startDate`. These responses are returned because the State Machine was executed asynchronously. ![API Test Result](/static/img/module-7/api-test-result.png) ::alert[**Congratulations!** You just executed an asynchronous integration between API Gateway and Step Functions.]{type="success"}