Make your first API request
Use the API base URL and workspace slug supplied by your Attma administrator. SetATTMA_API_URL to that base URL, ATTMA_WORKSPACE to the workspace slug, and load an Attma bearer access token as ATTMA_TOKEN from your secret manager.
This request lists up to ten items in the workspace’s Data root. It reads metadata without downloading file contents.
items array. A 401 means the request needs a valid token. Check workspace access and the path if the requested folder is unavailable.
CLI quickstart
attma:///example.txt resolves in the active workspace. attma://example-lab.account/example.txt names the workspace explicitly. Use attma --help or a command’s --help to check the options available in your installed version.
Python Data quickstart
- Use
/to join anLPathwith a child name, anditerdir()to list immediate children. - Read metadata with
name(),node_id(),type(),size(),size_recursive(),content_type(), andversion_id(). These methods fetch metadata when needed. Callfetch_metadata()to refresh it. - Use
exists()oris_dir()to check a path. HandleAttmaPathErrorwhen an operation fails. - Use
download(),upload_from(), andcopy_to()for transfers. Directory operations includemkdirp()and the recursive delete methodrmr().