provider sandbox-custom-imagessandbox_custom_images POST /api/projects/{project_id}/sandbox_custom_images/
@utdk/posthog /api/projects/{project_id}/sandbox_custom_images/
sandbox_custom_images_create
Create a draft custom image and start its interactive image-builder agent task. The returned builder_task_id points at the conversation.
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
sandboxCustomImagesCreate
POST/api/projects/{project_id}/sandbox_custom_images/
Create a draft custom image and start its interactive image-builder agent task. The returned builder_task_id points at the conversation.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Display name for the custom image.

What should go into the image; seeds the image-builder agent conversation.

Optional 'org/repo' the builder session clones so it can verify the image brings up that repository's dependencies.

If true, only you can see and use this image; otherwise the whole team can.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.sandboxCustomImagesCreate({
  "private": false
})