Loading...
Loading...
Graphistry Hub REST API specialist for auth, upload lifecycle, URL controls, sessions, and sharing safety. Use for curl/requests endpoint guidance independent of SDK choice.
npx skill4agent add graphistry/graphistry-skills graphistry-rest-apireferences/hub-rest-docs-toc.mdreferences/hub-rest-docs-links.tsv200https://hub.graphistry.com/docs/api//api-token-auth//api-token-refresh//api-token-verify//api/v2/auth/pkey/jwt//api/v2/files//api/v2/upload/files//api/v2/upload/datasets//api/v2/datasets/?limit=100/api/v2/upload/datasets//api/v2/datasets/{dataset_id}/GET /api/v2/generate/single-use-url/?username=<username>&dataset_id=<dataset_id>GET /api/v2/logout-user/username/<username>//api/experimental/viz/sessions//api/experimental/viz/sessions/{session_id}//api/v2/o/<org>/functions/gfql//api/v2/o/<org>/functions/python//api/v2/o/<org>/run/gfql/<uuid_or_alias>/api/v2/o/<org>/run/python/<uuid_or_alias>/healthcheck//ht//healthz/streamgl-viz/health/pivot/health/streamgl-sessions/health/streamgl-gpu/primary/health/streamgl-gpu/secondary/cpu/health/streamgl-gpu/secondary/gpu/healthexport GRAPHISTRY_*/api/v2/upload/datasets//api/v2/upload/datasets/metadata{}/api/v2/files//api/v2/upload/files//api/v2/upload/datasets/nodes/jsonedges/jsonnodes/csvedges/csvnodes/parquetedges/parquetnodes/orcedges/orcnodes/arrowedges/arrow/functions/run/api/v2/files/?limit=100created_at/api/v2/files/?limit=100author/functions/.../run/...export GRAPHISTRY_HOST=${GRAPHISTRY_HOST:-https://hub.graphistry.com}
export GRAPHISTRY_USERNAME=${GRAPHISTRY_USERNAME:?set GRAPHISTRY_USERNAME}
export GRAPHISTRY_PASSWORD=${GRAPHISTRY_PASSWORD:?set GRAPHISTRY_PASSWORD}
GRAPHISTRY_TOKEN="$(curl -sS -X POST -H 'Content-Type: application/json' -d "{\"username\":\"${GRAPHISTRY_USERNAME}\",\"password\":\"${GRAPHISTRY_PASSWORD}\"}" "${GRAPHISTRY_HOST%/}/api-token-auth/" | jq -r '.token')"
curl -sS -H "Authorization: Bearer ${GRAPHISTRY_TOKEN}" "${GRAPHISTRY_HOST%/}/api/v2/files/"# /api/v2/upload/datasets/ payload fragment with encodings
curl -sS -X POST -H "Authorization: Bearer ${GRAPHISTRY_TOKEN}" -H 'Content-Type: application/json' \
-d '{"metadata":{},"node_encodings":{"bindings":{"node":"id","node_color":"risk","node_size":"score"}},"edge_encodings":{"bindings":{"source":"src","destination":"dst","edge_color":"etype"}}}' \
"${GRAPHISTRY_HOST%/}/api/v2/upload/datasets/"
# first-render URL tweak: append &play=0 (or &linLog=true)collectionsURL encodedwhitespacecollections=%5B%22teamA%22%2C%22fraud%22%5Dhttps://hub.graphistry.com/docs/api/experimental/rest/sessions/graph.html?dataset=<dataset_id>graph.html?dataset=<dataset_id>&session=<session_id>Authorization: BearerGET /api/v2/generate/single-use-url/?username=<username>&dataset_id=<dataset_id>GET /api/v2/logout-user/username/<username>/POST /api/v2/auth/pkey/jwt/Authorization: PersonalKey <id>:<secret>org_nameAuthorization: Bearer <jwt>https://hub.graphistry.com/docs/api//api/v2/upload/datasets/node_encodings.bindingsedge_encodings.bindings&play=0&linLog=truecollectionshttps://hub.graphistry.com/docs/api/experimental/rest/sessions/https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>&session=<session_id>Authorization: Bearer/docs/api/experimental/rest/sessions/graph.html?dataset=<dataset_id>graph.html?dataset=<dataset_id>&session=<session_id>/docs/api/2/rest/health//healthcheck//ht//healthz/streamgl-viz/health/pivot/health/streamgl-sessions/health/streamgl-gpu/primary/health/streamgl-gpu/secondary/cpu/health/secondary/gpu/healthgraph.html/api/v2/o/<org>/functions/{gfql|python}/.../api/v2/o/<org>/run/{gfql|python}/....gfql()pygraphistrypygraphistry-gfql/api/v2/gfql/queryhttps://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>&play=0&bg=%23000000&linLog=true&showCollections=true&info=false&pointsOfInterestMax=0&collections=%5B%7B%22name%22%3A%22risk%22%7D%5D&collectionsGlobalNodeColor=00FF00collectionscollectionsGlobalNodeColorcollectionsGlobalEdgeColor/api/v2/files//api/v2/upload/files//api/v2/upload/datasets//api/v2/upload/datasets/node_encodings.bindingsedge_encodings.bindingsnode_colornode_sizeedge_colorsourcedestination&play=0&linLog=truenodes/jsonedges/jsonnodes/csvedges/csvnodes/parquetedges/parquetnodes/orcedges/orcnodes/arrowedges/arrow/api/v2/upload/files//api/v2/upload/datasets/.gfql(...)gfql_remote(...)/api-token-auth//api/v2/upload/datasets//api/v2/gfql/querygraph.html?dataset=<dataset_id>&session=<session_id>/api-token-auth/GET /api/v2/files/?limit=100created_atcreated_at <= now-90dfile_idnamecreated_atGET /api/v2/files/?limit=100authorGET /api/v2/datasets/?limit=100GET /api/v2/users/https://hub.graphistry.com/docs/api//api/v2/upload/datasets/metadatanode_encodingsedge_encodingsPOST /api/v2/share/link/{"obj_pk":"<dataset_id>","obj_type":"dataset","mode":"private","notify":false,"message":"","invited_users":[]}{"email":"user@example.com","action":"10"}1020public/api/v2/o/<org>/functions/{gfql|python}/.../api/v2/o/<org>/run/{gfql|python}/.../api-token-auth//api/v2/auth/pkey/jwt//api-token-refresh//api-token-verify/Authorization: Bearer <token>https://hub.graphistry.com/graph/graph.html?dataset=<dataset_id>token=Authorization: Bearer <token>playlinLogscalingRatiopointsOfInterestMaxpointSizeshowCollectionsinfocollectionsGlobalNodeColorcollectionsGlobalEdgeColorcollectionscollections=%5B%22teamA%22%2C%22fraud%22%5Dhttps://hub.graphistry.com/docs/api/experimental/rest/sessions/graph.html?dataset=<dataset_id>graph.html?dataset=<dataset_id>&session=<session_id>/api/v2/query/api/v2/graph/query/api/v2/render/api/v2/graphql/api/v2/gfql/query/functions/.../run/.../api/v2/share/link/