---
title: "Resolve Org For Trace"
method: GET
path: "/internal/traces/resolve-org"
---

# Resolve Org For Trace

`GET /internal/traces/resolve-org`

Resolve which org a playback_id, session_id, or view_session_id
belongs to, for the purpose of bootstrapping a trace-viewer deep link
without forcing the viewer through the org picker.

Authorization:
- Super admins: allowed unconditionally (they have cross-org access).
- Multi-org users: allowed iff they belong to the resolved org.
- Single-org users: allowed iff the resolved org matches their JWT's org_id.

This endpoint does NOT require the `X-Org-Id` header — that's the whole
point (the caller is asking which org to use). Portal JWT only; secret
keys are rejected since secret-key callers already know their org.

## Query parameters

- `playback_id` string, nullable
- `session_id` string, nullable
- `view_session_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/shortkit/apis/shortkit-api.md) · [All operations](https://skmtc.net/shortkit/apis/shortkit-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shortkit/shortkit-api/revisions/675c3a41f394/schema)
