---
title: "Get Org By Id Route"
method: GET
path: "/api/orgs/by-id/{org_id}"
---

# Get Org By Id Route

`GET /api/orgs/by-id/{org_id}`

Fetch an org by its base62 id.

Used by the console's switch-org route for global admins jumping to an
org they aren't yet a member of. Membership is verified — for non-admin
callers a 403 falls out of `_require_org_access`.

## Path parameters

- `org_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/codag/apis/infra-logs-templater.md) · [All operations](https://skmtc.net/codag/apis/infra-logs-templater/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codag/infra-logs-templater/versions/a2c84c9154da/schema)
