provider external_data_sources POST
/api/projects/{project_id}/external_data_sources/draft_custom_manifest/ @utdk/posthog
/api/projects/{project_id}/external_data_sources/draft_custom_manifest/ external_data_sources_draft_custom_manifest_create
Draft a Custom REST source manifest from API documentation using an LLM.
Reads the docs (a URL fetched server-side, or pasted text / OpenAPI spec), asks the model to
author a RESTAPIConfig manifest, and validates it against the create-path checks — repairing
against validation errors up to a small budget. Returns the manifest for the user to review
and tweak in the builder before creating the source; it does NOT create anything. Gated by the
`dwh-custom-source-ai-builder` flag, and requires the org to have approved AI data processing,
since the docs are sent to the LLM gateway.
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.externalDataSourcesDraftCustomManifestCreate()