---
title: "SN Decrypt Echo"
method: POST
path: "/openapi/v2.0/flight-task/sn-decrypt"
tags: ["Common/Security"]
---

# SN Decrypt Echo

`POST /openapi/v2.0/flight-task/sn-decrypt`

## Request

- Base URL: `` (relative, and it does not resolve against the document’s source URL)
- URL: `/openapi/v2.0/flight-task/sn-decrypt`
- Auth: none required

Restore encrypted SN in flight records to real SN

## Headers

- `X-User-Token` string, required
- `X-Project-Uuid` string, uuid, required
- `X-Request-Id` string
- `X-Language` string

## Request body

- object
  - `encrypted_sns` string[], required: Encrypted SN list (base64-encoded), max 100 per request

## Response `200`

Success

- object
  - `code` integer: Non-zero Indicates Exception
  - `data` object: Key is encrypted SN, value is plaintext SN
    - `mapping` object: mapping field
  - `message` string: Message Prompt

## Other responses

- `400`: Invalid request parameters (incorrect format, missing required fields, etc.)
- `401`: Authentication failed (token invalid or expired)
- `403`: Insufficient permission (token does not have the corresponding permission in this project/organization)
- `500`: Server Internal Error

---

[API](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud.md) - [All operations](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/dji/apis/flighthub-2-openapi-v2-0-public-cloud/revisions/aeef0010be34?raw)
