# GET /v1/resolve-org — resolve the owning org for a resource id.

Source: <https://everruns.com/docs/api/operations/resolve_org/>

GET

/v1/resolve-org

Select code samplecURL (shell:curl)

```js
const url = 'https://app.everruns.com/api/v1/resolve-org?id=example';
const options = {method: 'GET'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url 'https://app.everruns.com/api/v1/resolve-org?id=example'
```

* Production APIapp.everruns.com/api/v1/resolve-org

Returns the owning organization only when it is one the authenticated caller already belongs to. For every other case (unknown id, unknown prefix, resource belongs to a non-member org) the endpoint returns 404 — this preserves the org-enumeration guarantee: callers cannot use this endpoint to probe for the existence of resources outside their own orgs.

## Parameters

### Query Parameters

**id**

required

string

Prefixed public ID of the resource

## Responses

### 200

Owning org resolved

Media typeapplication/json

Response body for the `resolve_org` operation.

object

**org\_id**

required

Public ID of the organization that owns the resource.

string

**org\_name**

required

Organization name (for UX messaging).

string

##### Examplegenerated

```json
{
  "org_id": "example",
  "org_name": "example"
}
```

### 401

Unauthorized

### 404

Unknown id, unknown prefix, or caller is not a member of the owning org