Account Lifecycle
Creating Accounts
curl https://app.graniot.com/api/accounts/ \
-X POST \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{"account_email": "[email protected]"}'import requests
GRANIOT_API_ENDPOINT = 'https://app.graniot.com/api/'
HEADERS = {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
}
data = {'account_email': '[email protected]'}
response = requests.post(f'{GRANIOT_API_ENDPOINT}accounts/', headers=HEADERS, json=data)
account = response.json()
# Save these values
account_id = account['id']
embedded_url = account['embedded_url']
account_access = account['account_access']Account States
State
Description
API Access
Visible in UI
Soft Delete vs Permanent Delete
Soft Delete (API)
Permanent Delete (Admin Panel)
Reactivating Accounts
Avoiding Orphan Resources
What Causes Orphans
Problems with Orphans
Best Practices
Cleaning Up Orphans
Complete Account Deletion Workflow
Last updated