Skip to main content
An admin needs to create the API key and share the assistant with the API key. Invite an admin as an editor to your assistant with the “Share” button in the top right corner (skip this step if you are a Langdock admin yourself).

How to create an API key

  1. Navigate to Langdock. Get to settings
  2. Navigate to the workspace settings. Get to Workspace Settings
  3. Click on “API” under products. Go to API Settings
  4. Create a new API key. Create new Key
  5. Enter a name and click “Create API key” Copy to clipboard
  6. Copy your API Key to the clipboard. Click on Done
  7. Click “Done” Click on Done
  8. Leave the settings by clicking on “Settings” on the top left. Leave Settings

How to share an assistant with the API key

  1. Click “Assistants” Go to Assistants
  2. Create a new assistant Create new Assistant
  3. Configure your assistant. To save it, at least enter a name. Configure your assistant
  4. Click “Share” Click on the "Share" button
Only admins can connect an assistant with an API key. To find the API key in the “Share” menu, you have to be an admin or ask an admin to perform steps 13 and 14 for you.
  1. Search for the name of your API key. Search for your API Key
  2. Click “Share” Click on "Share"
  3. Navigate to docs.langdock.com.
  4. Click “Assistant API” Click "Assistant API"
  5. Click “Try it” Click "Try it"
  6. Enter the API Key from your clipboard ter the API Key from your clipboard
  7. Navigate back to the Langdock application and copy the Assistant ID from the URL. The URL is structured as follows: https://app.langdock.com/assistants/ASSISTANT_ID/edit. You only need the ASSISTANT_ID. vigate back to the Langdock application and copy the Assistant ID
  8. Switch to tab Assistant API - Documentation”
  9. Enter the Assistant ID Enter the Assistant ID
  10. Add a message with a content and the role “user” Add a message with a content and the role "user"
  11. Click “Send”. You should receive a response from the Assistant API with the status code 200. If your API Key is invalid, the status code will be 401. Click "Send"
I