provider agent_platformagent_applications GET
/api/projects/{project_id}/agent_applications/{id}/preview-token/ @utdk/posthog
/api/projects/{project_id}/agent_applications/{id}/preview-token/ agent_applications_preview_token
GET sibling of `preview_token_mint`. Same body and response
shape — exists because `EventSource` can't set headers, so SSE
callers fetch the token via GET and then attach `?preview_token=`
to the ingress URL. Behind the same URL (`url_path="preview-token"`)
thanks to DRF's `@<action>.mapping.get`; DRF resolves it to a
distinct `view.action`, but it is in `scope_object_write_actions`
alongside the POST sibling — both return a usable credential, so
both require `agents:write`.
- id path required
- A UUID string identifying this agent application.
- string
- 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
- revision_id query required
- Target draft revision. Must belong to this application and not be live.
- 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.agentApplicationsPreviewToken()