API

Get Database

You can get information about the database on the / endpoint.

https://crm.db.ht/

{
"@context": "https://db.ht",
"@id": "https://crm.db.ht/",
"types": {
"Companies (12)": "https://crm.db.ht/companies",
"Customers (58)": "https://crm.db.ht/customers",
"Deals (3)": "https://crm.db.ht/deals",
"Emails (5230)": "https://crm.db.ht/emails",
"Tasks (12)": "https://crm.db.ht/tasks",
"Notes (91)": "https://crm.db.ht/notes",
"Users (247)": "https://crm.db.ht/users"
},
"stats": {
"today": {
"read": 0,
"write": 0
},
"month": {
"read": 0,
"write": 0
},
},
"user": {
"name": "John Doe",
"email": "[email protected]"
}
}

Increment & Decrement

Redirection

You can use a ?redirectTo= query parameter to redirect the user to a specific page after login.


<form action='https://app.db.ht/waitlist'>
<input type='hidden' name='redirectTo' value='https://example.com/thanks'>
<input type='email' name='email' placeholder='[email protected]'>
<input type='submit' value='Login'>
</form>

Updates

PUT

{
"user": {
"name": "John Doe",
"email": "[email protected]"
}
}