---
title: "Translate stacktrace from minified to original source"
method: POST
path: "/api/{org_id}/sourcemaps/stacktrace"
tags: ["Sourcemaps"]
---

# Translate stacktrace from minified to original source

`POST /api/{org_id}/sourcemaps/stacktrace`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/sourcemaps/stacktrace`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/sourcemaps/stacktrace/post.ts> (a function with typed inputs; its response is checked against the schema)

Converts the stacktrace from the minified files into original source stacktrace based on uploaded sourcemaps

## Path parameters

- `org_id` string, required

## Request body

- object
  - `env` string, nullable
  - `service` string, nullable
  - `stacktrace` string, required
  - `version` string, nullable

## Response `200`

Success

- StacktraceResponse
  - `stacktrace` TranslatedStack, required
    - `error` string, required
    - `stack` TranslatedStackLine[], required
      - `line` string, required
      - `source_info` SourceData
        - `source` string, required
        - `source_line_end` integer, required
        - `source_line_start` integer, required
        - `stack_col` integer, required
        - `stack_line` integer, required

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
