Projects — Create & Manage
Projects attach spend to payment methods and gate ordering access. Most actions require a Super Admin key.
Create a project
- curl
- Python
- JavaScript
curl --location 'https://api.skywatch.co/earthcache/accounts/projects' \
--header 'x-api-key: {{Super_Admin_API_Key}}' \
--header 'Content-Type: application/json' \
--data '{
"name": "Example Project",
"organization_id": "{{Org_ID}}",
"start_date": "2025-01-15",
"payment_method_id": "{{Payment_Method_ID}}",
"users": ["{{User_ID_1}}","{{User_ID_2}}"]
}'
import requests, json
body = {
"name":"Example Project",
"organization_id":"{{Org_ID}}",
"start_date":"2025-01-15",
"payment_method_id":"{{Payment_Method_ID}}",
"users":["{{User_ID_1}}","{{User_ID_2}}"]
}
r = requests.post("https://api.skywatch.co/earthcache/accounts/projects",
headers={"x-api-key":"{{Super_Admin_API_Key}}","Content-Type":"application/json"},
data=json.dumps(body))
print(r.json())
await fetch("https://api.skywatch.co/earthcache/accounts/projects", {
method: "POST",
headers: {
"x-api-key": "{{Super_Admin_API_Key}}",
"Content-Type": "application/json"
},
body: JSON.stringify({
name: "Example Project",
organization_id: "{{Org_ID}}",
start_date: "2025-01-15",
payment_method_id: "{{Payment_Method_ID}}",
users: ["{{User_ID_1}}","{{User_ID_2}}"]
})
});
- Read, update, delete project; add/remove users; bulk add/remove projects for a user; and list projects attached to the current key are all supported.
See API Reference
For complete API documentation with interactive testing, see Hub Projects API Reference.