---
title: "Resolve an OAuth token plus an MCP endpoint to the Heron environment it may act on"
method: GET
path: "/api/hello_world/oauth/{endpoint_id}"
tags: ["Testing"]
---

# Resolve an OAuth token plus an MCP endpoint to the Heron environment it may act on

`GET /api/hello_world/oauth/{endpoint_id}`

## Request

- Base URL: `https://app.herondata.io`
- URL: `https://app.herondata.io/api/hello_world/oauth/{endpoint_id}`
- Auth: HTTP bearer

## Path parameters

- `endpoint_id` string, required

## Response `200`

The token's member may act on this environment

- object
  - `environment` string
  - `environment_type` string
  - `hello` string
  - `organization_slug` string
  - `subject` string

## Other responses

- `401`: Missing or invalid OAuth token
- `403`: Token lacks identity:read, or the member's roles do not cover the environment
- `404`: No MCP endpoint with that id belongs to the token's organization
- `503`: OAuth configuration, signing keys or member directory unavailable

## Changes

- **2026-11-03** `bd8008e49534`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/herondata/apis/heron-data-api/changes/api/hello_world/oauth/:endpoint_id/get.md)

---

[API](https://skmtc.dev/herondata/apis/heron-data-api.md) - [All operations](https://skmtc.dev/herondata/apis/heron-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/herondata/apis/heron-data-api/revisions/1ec936e17fef?raw)
