Prerequisites
For the terminal tutorials, you need a Chainabit account, curl, and jq. JavaScript and Python are alternatives; you do not need to install both languages or a JavaScript package manager to call the API.
Required checklist
- A verified Chainabit account.
- The credential accepted by the endpoint you want to call. The session and task tutorials use an interactive access token.
curlfor HTTP requests andjqto read JSON and capture returned IDs.- Any additional plan access or workspace permission listed in the tutorial.
Create your account
Create and verify your account at chainabit.com. Then follow authentication to obtain an interactive access token. For unattended automation, read developer access and check that the route accepts the token's scopes.
Check curl and jq
curl --version
jq --versionIf either command is missing, use the curl installation guide or jq downloads for your operating system.
JavaScript, if you choose it
The examples use Node.js and its built-in fetch. Use Node.js 22 or newer for the documented CLI workflow. Download Node.js from its official website, then check:
node --version
npm --version You do not need pnpm for the HTTP examples. The CLI installation guide explains package-manager choices for that product.
Python, if you choose it
Use Python 3.10 or newer and the HTTP library imported by the example. Most examples use requests; a few use httpx.
python3 --version
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install requests httpxOn Windows, activate the virtual environment with .venv\Scripts\Activate.ps1 in PowerShell. The command blocks in the terminal tutorials use a POSIX shell; Windows users can run them in WSL or adapt the commands to their HTTP client.
Shared environment
Set your access token in the same terminal where you will run the examples. Replace the placeholder with your own interactive access token. The examples already use the API address, so no other variable is needed:
export TOKEN="YOUR_ACCESS_TOKEN"The API address includes /api/v1 exactly once. Returned resource IDs are UUIDs; capture them from the response rather than copying the illustrative IDs shown in documentation.
Do not publish tokens in code, screenshots, or logs. This environment variable is available only to processes started from this terminal. JavaScript examples use process.env and Python examples use os.environ to read it.
Verify everything
Confirm that your chosen client starts and that your credentials are for the right endpoint. A 401 usually means authentication failed; a 403 can mean the request lacks a role, scope, entitlement, or workspace permission. See error handling.
Next step
Continue with the AI quickstart, or create a task if you want to start with work management.