---
title: "POST /#X-Amz-Target=AmazonAthena.GetCalculationExecutionCode"
method: POST
path: "/#X-Amz-Target=AmazonAthena.GetCalculationExecutionCode"
---

# POST /#X-Amz-Target=AmazonAthena.GetCalculationExecutionCode

`POST /#X-Amz-Target=AmazonAthena.GetCalculationExecutionCode`

Retrieves the unencrypted code that was executed for the calculation.

## Headers

- `X-Amz-Target` 'AmazonAthena.GetCalculationExecutionCode', required

## Request body

- GetCalculationExecutionCodeRequest
  - `CalculationExecutionId` string, required — The calculation execution UUID.

## Response `200`

Success

- GetCalculationExecutionCodeResponse
  - `CodeBlock` string — The unencrypted code that was executed for the calculation.

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — ResourceNotFoundException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
