API Documentation
Everything you need to integrate with PlanetGraph.
Quick Start
Start with these prompts in your preferred coding agent, then iterate with follow-up questions.
Sign up to get your API key
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://api.planetgraph.ai/api/v1/nodes Nodes
Create, read, update, and delete graph nodes.
/api/v1/nodesList Nodes
/api/v1/nodesCreate Node
/api/v1/nodes/{node_id}Get Node
/api/v1/nodes/{node_id}Update Node
/api/v1/nodes/{node_id}Delete Node
/api/v1/nodes/typesList Node Types
Edges
Create and manage relationships between nodes.
/api/v1/edgesList Edges
/api/v1/edgesCreate Edge
/api/v1/edges/{edge_id}Get Edge
/api/v1/edges/{edge_id}Update Edge
/api/v1/edges/{edge_id}Delete Edge
/api/v1/edges/by-node/{node_id}List Edges For Node
Properties
Manage properties on nodes and edges with granular access controls.
/api/v1/admin/rotate-keys/{account_id}Rotate Keys
/api/v1/edges/{edge_id}/propertiesList Edge Properties
/api/v1/edges/{edge_id}/propertiesCreate Edge Property
/api/v1/nodes/{node_id}/propertiesList Node Properties
/api/v1/nodes/{node_id}/propertiesCreate Node Property
/api/v1/properties/{property_id}Update Property
/api/v1/properties/{property_id}Delete Property
Billing
Manage your token balance and view transaction history.
/api/v1/account/balanceAccount Balance
/api/v1/account/purchasePurchase Tokens
/api/v1/account/transactionsAccount Transactions
/api/v1/admin/pricingCreate Pricing
/api/v1/pricingGet Pricing
Access Control
Define and manage access policies for your data.
/api/v1/access-policiesList Access Policies
/api/v1/access-policiesCreate Access Policy
/api/v1/access-policies/{policy_id}Update Access Policy
/api/v1/access-policies/{policy_id}Delete Access Policy
/api/v1/feedback/{feedback_id}Update Feedback
/api/v1/feedback/{feedback_id}Delete Feedback
/api/v1/properties/{property_id}/access-policyAssign Access Policy
/api/v1/properties/{property_id}/feedbackList Feedback
/api/v1/properties/{property_id}/feedbackCreate Feedback
/api/v1/properties/{property_id}/purchasePurchase Property Access
Queries
Execute Cypher queries and access query history.
/api/v1/queries/historyQuery History
/api/v1/queryRun Query