The following guide explains how to create an API key in Langdock and share an assistant with the API key.
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).
Configure your assistant. To save it, at least enter a name.
Click “Share”
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.
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.
Switch to tab Assistant API - Documentation”
Enter the Assistant ID
Add a message with a content and the role “user”
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.