Skip to content

Get one artifact by its id (fol_…) or its address (/acme/-/artifacts/q4-roadmap-fol_…): its kind, title, space, parent_id, owner, who made it, your role, general_access, whether it is private, how many it is shared with, its excerpt, whether it may be out of date with the code it cites (stale), and html_url.

GET/workspaces/{workspace}/artifacts/{artifact_id}

Not found when you cannot open it, as for one that does not exist. Opening a link-shared artifact this way counts as following its link.

artifact_id is the id, or the artifact’s address (q4-roadmap-fol_…, or its whole link). Not found when you cannot open it, the same as when it does not exist.

  • Authentication: Required. Send an access token as Authorization: Bearer.
  • MCP tool: artifact with action get, and the same inputs
  • Scope: An access token needs artifacts:read.
Name Type Required Description
workspace string Yes The workspace’s slug, e.g. “acme”.
artifact_id string Yes The artifact’s id (fol_…), or its address: /acme/-/artifacts/q4-roadmap-fol_…
curl https://api.g1t.sh/workspaces/acme/artifacts/fol_01kq7c4e6g8j0m2p4r6t8v0x2z \
-H "Authorization: Bearer $G1T_TOKEN"

A successful request answers 200 with:

{
"id": "fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
"kind": "doc",
"title": "Q4 roadmap",
"icon": "🗺️",
"slug": "q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z",
"space": {
"id": "spc_01kq1a3c5e7g9j1l3n5q7s9u1w",
"slug": "general",
"name": "General",
"kind": "workspace"
},
"parent_id": null,
"has_children": false,
"owner": {
"type": "user",
"id": "usr_01kkntcg1eeb98j62xjm7eh09q",
"username": "ana",
"display_name": "Ana Lima"
},
"created_by": {
"type": "user",
"id": "usr_01kkntcg1eeb98j62xjm7eh09q",
"username": "ana",
"display_name": "Ana Lima"
},
"created_at": "2026-10-06T09:12:00.000Z",
"updated_at": "2026-10-08T16:40:12.000Z",
"edited_by": {
"type": "user",
"id": "usr_01kmb2d4f6h8k0m2p4r6t8v0x2",
"username": "bo",
"display_name": "Bo Chen"
},
"edited_at": "2026-10-08T16:40:12.000Z",
"trashed_at": null,
"viewer_role": "manage",
"private": false,
"shared_count": 1,
"general_access": "workspace",
"general_role": "view",
"inherit": true,
"agent_mode": "suggest",
"excerpt": "What we ship this quarter, and what we leave for next.",
"source": null,
"stale": false,
"html_url": "https://g1t.sh/acme/-/artifacts/q4-roadmap-fol_01kq7c4e6g8j0m2p4r6t8v0x2z"
}

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.