The Assistants API will be deprecated in a future release.For new projects, we recommend using the Agents API. The Agents API provides native Vercel AI SDK compatibility and removes custom transformations.See the migration guide to learn about the differences.
Retrieves the complete configuration and details of an existing Assistant in your workspace.
Requires an API key with the AGENT_API scope and access to the Assistant you want to retrieve.
try { const response = await axios.get('https://api.langdock.com/assistant/v1/get', ...);} catch (error) { if (error.response) { switch (error.response.status) { case 400: console.error('Invalid Assistant ID format'); break; case 401: console.error('Invalid or missing API key'); break; case 403: console.error('Insufficient permissions - no access to this Assistant'); break; case 404: console.error('Assistant not found'); break; case 500: console.error('Server error'); break; } }}
The new Agents API offers improved compatibility with modern AI SDKs. The get endpoint has similar functionality with updated parameter names.See the equivalent endpoint in the Agents API:
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.