Get a catalog entry
One entry of a workspace's catalog, by kind and its id or key (a project's slug, a package as npm:<name>, an owner's username), with every relation it has: what it depends on, who owns it, where it deploys, what documents it, what it exposes and uses. search_context finds entries.
/workspaces/{workspace}/context/{kind}/{id}id is the entry’s id, or its key: a project’s or app’s slug, npm:<name> (or cargo:, go:, pypi:) for a package, a username for an owner, <project>/production for an environment. data depends on the kind: a package’s version and dependencies, an API’s routes, an app’s production address.
- Authentication: Required. Send an access token as
Authorization: Bearer. - MCP tool:
get_entity, with the same inputs
Path parameters
Section titled “Path parameters”| Name | Type | Required | Description |
|---|---|---|---|
workspace |
string | Yes | The workspace’s slug, e.g. “flagon-io”. |
kind |
string | Yes | One of project, app, api, package, language, owner, environment, integration, doc. |
id |
string | Yes | Its id (ent_…), or its key: a project’s slug, npm:<name>, a username. |
Example request
Section titled “Example request”curl https://api.g1t.sh/workspaces/acme/context/project/web \ -H "Authorization: Bearer $G1T_TOKEN"Example response
Section titled “Example response”A successful request answers 200 with:
{ "entity": { "id": "ent_9b1d6f0a2c3e4b5d6e7f8a9b", "workspace": "acme", "kind": "project", "key": "web", "name": "web", "summary": "The storefront. Written in TypeScript. Packages: @acme/web. Uses api. Owned by ana.", "project": "web", "private": true, "data": { "repo": "acme/web", "root_dir": "", "default_branch": "main", "languages": [ "TypeScript" ], "owners": [ "ana" ], "tests": true, "test_commands": [ "npm test" ], "production_url": "https://web--acme.g1t.page" }, "source": "scan", "ref": "/acme/web", "updated_at": "2026-10-04T20:58:41.000Z" }, "relations": [ { "kind": "depends_on", "direction": "out", "entity": { "id": "ent_0a7c3e5b9d1f2a4c6e8b0d2f", "workspace": "acme", "kind": "project", "key": "api", "name": "api", "summary": "The public API. Written in Rust.", "project": "api", "private": true, "data": {}, "source": "scan", "ref": "/acme/api", "updated_at": "2026-10-04T20:57:12.000Z" } }, { "kind": "owned_by", "direction": "out", "entity": { "id": "ent_3c5e7a9b1d2f4a6c8e0b2d4f", "workspace": "acme", "kind": "owner", "key": "ana", "name": "ana", "summary": null, "project": null, "private": false, "data": {}, "source": "scan", "ref": "/u/ana", "updated_at": "2026-10-04T20:58:41.000Z" } } ]}Errors
Section titled “Errors”A failed request answers with one of these statuses and a body like {"error": {"code": "not_found", "message": "Repository not found."}}. See errors.
| Status | Code | When |
|---|---|---|
| 401 | unauthenticated |
A token is required, or the one sent is not valid. |
| 403 | forbidden |
The token is valid but not allowed to do this, such as a member-only change or an agent token outside its repository. |
| 404 | not_found |
It does not exist, or you cannot see it. |
| 422 | invalid |
The input is not valid. message says which field and why. |