API Documentation
Everything you need to integrate with PlanetGraph.
Authentication
All API requests require a Bearer token. Create an API key in your account settings and include it in the Authorization header.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://planetgraph-api-570613127242.us-central1.run.app/api/v1/nodes Nodes
Create, read, update, and delete graph nodes.
/api/v1/nodesList all nodes with optional filtering by type, owner, status
/api/v1/nodesCreate a new node with a specified type
/api/v1/nodes/{id}Get a single node by ID including properties and edges
/api/v1/nodes/{id}Update a node type or status
/api/v1/nodes/{id}Soft-delete a node (owner only)
Edges
Create and manage relationships between nodes.
/api/v1/edgesList edges with optional filtering
/api/v1/edgesCreate a directed edge between two nodes
/api/v1/edges/{id}Get a single edge by ID
/api/v1/edges/{id}Delete an edge (owner only)
Properties
Manage properties on nodes and edges with granular access controls.
/api/v1/nodes/{id}/propertiesList properties on a node with access-level info
/api/v1/nodes/{id}/propertiesAdd a property to a node
/api/v1/properties/{id}Update a property value
/api/v1/properties/{id}Delete a property (owner only)
/api/v1/properties/{id}/purchasePurchase access to a locked property
Billing
Manage your token balance and view transaction history.
/api/v1/billing/balanceGet current token balance
/api/v1/billing/purchasePurchase tokens
/api/v1/billing/transactionsList transaction history
Access Control
Define and manage access policies for your data.
/api/v1/access-policiesList your access policies
/api/v1/access-policiesCreate a new access policy with pricing rules
/api/v1/access-policies/{id}Update an access policy
/api/v1/access-policies/{id}Delete an access policy
Queries
Execute Cypher queries and access query history.
/api/v1/queryExecute a Cypher query and return results
/api/v1/queries/historyGet your query execution history