Authentication
What you'll get: an API key, how to send it, how to act in a workspace, and where to find the IDs the API needs.
Create an API key
Click API keys in the sidebar, under Personal, or go to app.biodock.ai/api-keys.
Click Create API key.
Give the key a Name you'll recognise, and choose when it Expires: Never, 30, 60 or 90 days, or 1 year.
Click Create, then copy the key.

The key is shown only once. Biodock stores only a hash of it, so nobody, including our support team, can show it to you again. If you lose it, create a new key and revoke the old one.
Keep your keys secret. A key can do anything the API offers on your behalf; there are no read-only keys. To revoke a key, click Revoke next to it on the API keys page. Revoking takes effect immediately. Give each key a different name, so you can tell them apart when you revoke one.
Send the key
Send the key in the X-API-KEY header of every request. A missing or unknown key gets a 401 response with the message Unauthorized.
Check that a key works with this endpoint:
Verify API key
GET https://app.biodock.ai/api/external/check
Headers
X-API-KEY*
String
API key.
Act in a workspace
API keys are personal. A key acts in your personal account, even one you created while inside a workspace.
To act in a workspace you're a member of, name it in the request, with either:
the header
X-Biodock-Workspace: <workspace-url>, orthe query parameter
?workspace=<workspace-url>.
<workspace-url> is the part of the workspace's address after /w/.
Keys that moved with your team. If Biodock moved your team into a workspace, your unexpired keys moved with it. They act in that workspace without naming it. The API keys page shows "Acts in <workspace>" under each such key's name. To script against your new personal account, create a new key.
403 "You do not have access to this workspace."
You named a workspace you're not an active member of, or a moved key was used after you left, were deactivated, or the workspace was archived. A moved key never falls back to your personal account.
403 "This workspace is suspended, so nobody can open it until Biodock reactivates it. Your own account is not affected. Contact support@biodock.ai if you have questions."
Biodock has suspended the workspace.
Find IDs
Several endpoints take the ID of a file, folder, pipeline or analysis job:
Files and folders: on the Files page, each item's ID appears under its name with a Copy ID button. IDs show only when every column of the list is visible, so widen the window and show any hidden columns. You can also get IDs from List filesystem items.
Pipelines: use List pipelines. Pipeline IDs aren't shown in the app.
Analysis jobs: use the
idreturned when you submit a job, or by List analysis jobs. Don't take it from the app's address bar: the ID in a result's URL is a different ID, and the API answers400"Invalid analysis job id".

Last updated