01Create an API key
Open the web app’s Settings and find the harbor0 API card. Click Create API key, give the key a name you’ll recognise, and choose its access and when it expires.

harbor0 shows the key once. Copy it, and keep it in an environment variable or a secrets manager rather than in your code. The dialog also gives a command to try it.

02Make your first request
Every route is under /v1, and every request sends the key as a bearer token:
export HARBOR0_TOKEN='h0_pat_...'
curl -s https://api.harbor0.com/v1/users/me \
-H "Authorization: Bearer $HARBOR0_TOKEN"The answer describes your account and storage. To list the top of My Drive, use the folder ID root:
curl -s "https://api.harbor0.com/v1/drive/folders/root/children?limit=100" \
-H "Authorization: Bearer $HARBOR0_TOKEN"Send a User-Agent such as my-backup-script/1.2. harbor0 shows it as the key’s app version, so you can tell which tool used a key last. The quickstart continues with uploading and downloading a file.
03Manage your keys
Each key is listed in the harbor0 API card with its access, when it was last used and when it expires. Revoke stops a key at once. Give each tool its own key, so you can revoke one without breaking the others.

04End-to-end encrypted accounts
On an encrypted account, harbor0 stores only encrypted names and contents, so your code does the decrypting, and the encrypting for uploads, with your passphrase or recovery key. File routes ask for this header as a promise that it does:
X-Harbor-E2EE: h0e1Without it they answer 403 E2EE_UNSUPPORTED. GET /v1/users/me works without the header, so a tool can check whether an account is encrypted first. The encryption guides cover the keys, the file format and uploads step by step, with complete examples in Node.js and Python.


