Skip to main content
Creates a prompt folder in your workspace. The key owner becomes the folder owner and can manage it in the Prompt Library.

Base URL

Dedicated deploymentsReplace api.langdock.com with <your-deployment-url>/api/public in all requests.

Required Scopes

This endpoint requires the PROMPT_API scope.
Sharing the folder with the workspace requires workspace editor access or the sharePrompts permission. Sharing with a group requires group editor or admin membership, or workspace admin access.

Parameters

Example

Response Format

Success Response (201 Created)

Error Handling

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.