Quickstart
Create a project, issue an API key and read and write rows over REST.
1. Create an account and a project
Sign up at iam.openthink.app, then create a space in OpenThink. Every space you own appears as a project in console.openthink.app.
2. Add a table
In the space, choose New → Database and add a few columns, for example Name (title), Score (number) and Status (select).
3. Create an API key
In the console, open the project and go to API keys → Create key. Choose Read and write, an expiry and, optionally, the tables the key may reach. Copy the key: it is shown only once.
4. Check the key
export THK=thk_...
curl https://openthink.app/api/v1/me -H "Authorization: Bearer $THK"5. List tables and add a row
curl https://openthink.app/api/v1/tables -H "Authorization: Bearer $THK"
curl -X POST https://openthink.app/api/v1/tables/<table-id>/rows \
-H "Authorization: Bearer $THK" -H "Content-Type: application/json" \
-d '{ "values": { "Name": "An", "Score": 8.5, "Status": "Done" } }'6. Query with SQL
curl -X POST https://openthink.app/api/v1/sql \
-H "Authorization: Bearer $THK" -H "Content-Type: application/json" \
-d '{ "sql": "SELECT \"Name\", \"Score\" FROM \"Scores\" WHERE \"Score\" >= ?", "params": [8] }'Next steps
- Write a table policy before letting other people use the table.
- Deploy a service to put business rules on the server.
- Subscribe to webhooks to react to row changes.