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).
  1. Navigate to https://app.langdock.com/chat

  2. Navigate to the workspace settings.

  3. Click on “API” under products.

  4. Create a new API key.

  5. Enter a name and click “Create API key”

  6. Copy your API Key to the clipboard.

  7. Click “Done”

  8. Leave the settings by clicking on “Settings” on the top left.

  9. Click “Assistants”

  10. Create a new assistant

  11. Configure your assistant. To save it, at least enter a name.

  12. Click “Share”

  13. Search for the name of your API key.

  14. Click “Share”

  15. Navigate to docs.langdock.com.

  16. Click “Assistant API”

  17. Click “Try it”

  18. Enter the API Key from your clipboard

  19. 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.

  20. Switch to tab Assistant API - Documentation”

  21. Enter the Assistant ID

  22. Add a message with a content and the role “user”

  23. 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.