Get content
Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable.
File, symlink, and directory responses include an optional metadata field with the path’s metadata when any is set; the field is omitted otherwise. Values are plain UTF-8 strings. Directory listings additionally surface per-entry metadata inline on each row in entries[] (also UTF-8 strings, omitted when empty). Reads at a historical change_id return today’s metadata for the resolved path, not the values as of that change (metadata is stored separately from Git history).
Directory listings can be filtered by metadata predicates: ?metadata[key]=value, repeatable. Multiple keys are AND-ed (exact-value match). Entries without metadata (or with mismatched values) are dropped from entries[]. The filter is ignored when the resolved path is a file or symlink.
readAuthorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Organization slug
1Repository name
1Query Parameters
Change id to read content from. Defaults to the current change at the default bookmark tip. You may also pass the virtual root change id (zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz) to read the empty tree.
^[zyxwvutsrqponmlk]{32}$Directory traversal depth: 0 for directory metadata only, 1 for direct children, up to 10
0 <= x <= 10Filter directory entries[] to rows whose metadata matches. Pass one param per key as a deepObject: ?metadata[<key>]=<value>, repeatable. Multiple keys are AND-ed (an entry must match every pair to survive; exact-value match). Ignored when the resolved path is a file or symlink. Example: ?metadata[tag]=archived&metadata[lang]=en.
Response
Content response
- Option 1
- Option 2
- Option 3
"file""base64"POSIX file mode for a regular file
100644, 100755 Metadata attached to this path. Values are UTF-8 strings. Always reflects current values; not snapshotted with change_id.

