Web

For instructions on how to authenticate to use this endpoint, see API overview.

Endpoints

GET

Retrieve web vitals

Get web vitals for a specific pathname. Toolbar accesses this via OAuth (handled by TeamAndOrgViewSetMixin.get_authenticators).

Required API key scopes

query:read

Path parameters

  • project_id
    string

Query parameters

  • pathname
    string

Example request

GET /api/environments/:project_id/web_vitals
export POSTHOG_PERSONAL_API_KEY=[your personal api key]
curl \
-H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \
<ph_app_host>/api/environments/:project_id/web_vitals/

Example response

Status 200 No response body

Community questions

Questions about this page? or post a community question.